=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/mail/edit.c,v retrieving revision 1.20 retrieving revision 1.21 diff -u -r1.20 -r1.21 --- src/usr.bin/mail/edit.c 2017/03/28 09:14:43 1.20 +++ src/usr.bin/mail/edit.c 2019/06/28 13:35:01 1.21 @@ -1,4 +1,4 @@ -/* $OpenBSD: edit.c,v 1.20 2017/03/28 09:14:43 natano Exp $ */ +/* $OpenBSD: edit.c,v 1.21 2019/06/28 13:35:01 deraadt Exp $ */ /* $NetBSD: edit.c,v 1.5 1996/06/08 19:48:20 christos Exp $ */ /* @@ -172,7 +172,7 @@ while ((t = getc(fp)) != EOF) (void)putc(t, nf); (void)fflush(nf); - if (fstat(fileno(nf), &statb) < 0) + if (fstat(fileno(nf), &statb) == -1) modtime = 0; else modtime = statb.st_mtime; @@ -211,7 +211,7 @@ (void)rm(tempname); goto out; } - if (stat(tempname, &statb) < 0) { + if (stat(tempname, &statb) == -1) { warn("%s", tempname); goto out; }