diff --git a/cde/programs/dtaction/Main.c b/cde/programs/dtaction/Main.c index 222735725..74b767f78 100644 --- a/cde/programs/dtaction/Main.c +++ b/cde/programs/dtaction/Main.c @@ -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)); }