1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-02-15 04:32:24 +00:00

dtaction: Coverity 88210 and 87787

This commit is contained in:
Peter Howkins 2018-07-03 17:55:28 +01:00
parent 2a988f5ad3
commit f470e4303e

View file

@ -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;
}