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:
Garance A Drosehn 2002-07-12 01:37:06 +00:00
parent 4c2a399167
commit 722915cdec
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=99845

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