dtaction: Coverity 88210 and 87787
This commit is contained in:
@@ -626,8 +626,9 @@ AddSuLog(
|
|||||||
* take away write access from SULog
|
* take away write access from SULog
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if (stat (SULog, &st) == 0)
|
if(chmod (SULog, (int) (st.st_mode & 07777) & ~0222) == -1) {
|
||||||
chmod (SULog, (int) (st.st_mode & 07777) & ~0222);
|
fprintf(stderr, "Error on chmod of '%s', %s\n", SULog, strerror(errno));
|
||||||
|
}
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user