1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-03-09 15:50:02 +00:00

dtaction:: Resolve uninitialized warnings, use a set access more for the SULog file

This commit is contained in:
Peter Howkins 2021-12-22 01:28:41 +00:00 committed by Jon Trulson
parent 93a0b4bc7e
commit 8844150d7f

View file

@ -622,7 +622,7 @@ AddSuLog(
* 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));
}