=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/newsyslog/newsyslog.c,v retrieving revision 1.110 retrieving revision 1.111 diff -u -r1.110 -r1.111 --- src/usr.bin/newsyslog/newsyslog.c 2019/01/25 00:19:26 1.110 +++ src/usr.bin/newsyslog/newsyslog.c 2019/06/28 05:35:34 1.111 @@ -1,4 +1,4 @@ -/* $OpenBSD: newsyslog.c,v 1.110 2019/01/25 00:19:26 millert Exp $ */ +/* $OpenBSD: newsyslog.c,v 1.111 2019/06/28 05:35:34 deraadt Exp $ */ /* * Copyright (c) 1999, 2002, 2003 Todd C. Miller @@ -850,7 +850,7 @@ if (noaction) { printf("\tmktemp %s\n", file2); } else { - if ((fd = mkstemp(file2)) < 0) + if ((fd = mkstemp(file2)) == -1) err(1, "can't start '%s' log", file2); if (fchmod(fd, ent->permissions)) err(1, "can't chmod '%s' log file", file2);