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:
gad 2002-07-12 01:37:06 +00:00
parent 793db011bb
commit e2696cc497

View File

@ -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) {
/*