=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/at/at.c,v retrieving revision 1.81 retrieving revision 1.82 diff -u -r1.81 -r1.82 --- src/usr.bin/at/at.c 2017/06/15 19:37:10 1.81 +++ src/usr.bin/at/at.c 2019/06/28 13:35:00 1.82 @@ -1,4 +1,4 @@ -/* $OpenBSD: at.c,v 1.81 2017/06/15 19:37:10 tb Exp $ */ +/* $OpenBSD: at.c,v 1.82 2019/06/28 13:35:00 deraadt Exp $ */ /* * at.c : Put file into atrun queue @@ -353,7 +353,7 @@ /* * Set the x bit so that we're ready to start executing */ - if (fchmod(fileno(fp), S_IRUSR | S_IWUSR | S_IXUSR) < 0) + if (fchmod(fileno(fp), S_IRUSR | S_IWUSR | S_IXUSR) == -1) fatal("fchmod"); (void)fclose(fp);