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
4c2a399167
commit
722915cdec
|
@ -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