diff --git a/cde/programs/dtaction/Main.c b/cde/programs/dtaction/Main.c index 287db2c47..f262a5eee 100644 --- a/cde/programs/dtaction/Main.c +++ b/cde/programs/dtaction/Main.c @@ -626,8 +626,9 @@ AddSuLog( * take away write access from SULog */ - if (stat (SULog, &st) == 0) - chmod (SULog, (int) (st.st_mode & 07777) & ~0222); + if(chmod (SULog, (int) (st.st_mode & 07777) & ~0222) == -1) { + fprintf(stderr, "Error on chmod of '%s', %s\n", SULog, strerror(errno)); + } return; }