dtaction:: Resolve uninitialized warnings, use a set access more for the SULog file
This commit is contained in:
committed by
Jon Trulson
parent
93a0b4bc7e
commit
8844150d7f
@@ -622,7 +622,7 @@ AddSuLog(
|
|||||||
* take away write access from SULog
|
* take away write access from SULog
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if(chmod (SULog, (int) (st.st_mode & 07777) & ~0222) == -1) {
|
if(chmod (SULog, 0400) == -1) {
|
||||||
fprintf(stderr, "Error on chmod of '%s', %s\n", SULog, strerror(errno));
|
fprintf(stderr, "Error on chmod of '%s', %s\n", SULog, strerror(errno));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user