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:
parent
2a988f5ad3
commit
f470e4303e
1 changed files with 3 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue