=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/uudecode/uudecode.c,v retrieving revision 1.26 retrieving revision 1.27 diff -u -r1.26 -r1.27 --- src/usr.bin/uudecode/uudecode.c 2019/03/10 20:49:24 1.26 +++ src/usr.bin/uudecode/uudecode.c 2019/06/28 13:35:05 1.27 @@ -1,4 +1,4 @@ -/* $OpenBSD: uudecode.c,v 1.26 2019/03/10 20:49:24 schwarze Exp $ */ +/* $OpenBSD: uudecode.c,v 1.27 2019/06/28 13:35:05 deraadt Exp $ */ /* $FreeBSD: uudecode.c,v 1.49 2003/05/03 19:44:46 obrien Exp $ */ /*- @@ -295,7 +295,7 @@ warn("%s: %s", infile, outfile); return (1); } - if ((fd = open(outfile, flags, mode)) < 0 || + if ((fd = open(outfile, flags, mode)) == -1 || (outfp = fdopen(fd, "w")) == NULL) { warn("%s: %s", infile, outfile); return (1);