Fix set_qstate() so it correctly checks for any error from chmod().
Note that set_qstate() is only called from several 'lpc' commands. MFC after: 3 days
This commit is contained in:
parent
793db011bb
commit
e2696cc497
@ -349,7 +349,7 @@ set_qstate(int action, const char *lfname)
|
||||
errsav = errno;
|
||||
seteuid(uid);
|
||||
res = SQS_CHGOK;
|
||||
if (res < 0)
|
||||
if (chres < 0)
|
||||
res = SQS_CHGFAIL;
|
||||
} else if (newbits == LOCK_FILE_MODE) {
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user