=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/ftp/util.c,v retrieving revision 1.89 retrieving revision 1.90 diff -u -r1.89 -r1.90 --- src/usr.bin/ftp/util.c 2019/05/16 12:44:18 1.89 +++ src/usr.bin/ftp/util.c 2019/06/28 05:35:34 1.90 @@ -1,4 +1,4 @@ -/* $OpenBSD: util.c,v 1.89 2019/05/16 12:44:18 florian Exp $ */ +/* $OpenBSD: util.c,v 1.90 2019/06/28 05:35:34 deraadt Exp $ */ /* $NetBSD: util.c,v 1.12 1997/08/18 10:20:27 lukem Exp $ */ /*- @@ -404,7 +404,7 @@ if (temp[len-1] != '/') temp[len++] = '/'; (void)strlcpy(&temp[len], TMPFILE, sizeof temp - len); - if ((fd = mkstemp(temp)) < 0) { + if ((fd = mkstemp(temp)) == -1) { warn("unable to create temporary file: %s", temp); return (NULL); }