projects
/
oweals
/
cde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2a988f5
)
dtaction: Coverity 88210 and 87787
author
Peter Howkins
<flibble@users.sf.net>
Tue, 3 Jul 2018 16:55:28 +0000
(17:55 +0100)
committer
Peter Howkins
<flibble@users.sf.net>
Tue, 3 Jul 2018 16:55:28 +0000
(17:55 +0100)
cde/programs/dtaction/Main.c
patch
|
blob
|
history
diff --git
a/cde/programs/dtaction/Main.c
b/cde/programs/dtaction/Main.c
index 287db2c47853fda23ad828a8b7363292251ab462..f262a5eeeb7457ea4c4dee1c14806d96efb26505 100644
(file)
--- 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;
}