Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-4]: src/usr.bin/wall pullup 1.11->1.12 (christos): bogus check ...



details:   https://anonhg.NetBSD.org/src/rev/7389be16a06c
branches:  netbsd-1-4
changeset: 468820:7389be16a06c
user:      perry <perry%NetBSD.org@localhost>
date:      Mon Jun 21 16:30:00 1999 +0000

description:
pullup 1.11->1.12 (christos): bogus check for mkstemp() return code

diffstat:

 usr.bin/wall/wall.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 9d3e27a5a3b1 -r 7389be16a06c usr.bin/wall/wall.c
--- a/usr.bin/wall/wall.c       Mon Jun 21 16:20:13 1999 +0000
+++ b/usr.bin/wall/wall.c       Mon Jun 21 16:30:00 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: wall.c,v 1.11 1998/07/26 23:15:38 mycroft Exp $        */
+/*     $NetBSD: wall.c,v 1.11.2.1 1999/06/21 16:30:00 perry Exp $      */
 
 /*
  * Copyright (c) 1988, 1990, 1993
@@ -43,7 +43,7 @@
 #if 0
 static char sccsid[] = "@(#)wall.c     8.2 (Berkeley) 11/16/93";
 #endif
-__RCSID("$NetBSD: wall.c,v 1.11 1998/07/26 23:15:38 mycroft Exp $");
+__RCSID("$NetBSD: wall.c,v 1.11.2.1 1999/06/21 16:30:00 perry Exp $");
 #endif /* not lint */
 
 /*
@@ -142,7 +142,7 @@
        char *p, hostname[MAXHOSTNAMELEN+1], lbuf[100], tmpname[15];
 
        (void)snprintf(tmpname, sizeof tmpname, "%s/wall.XXXXXX", _PATH_TMP);
-       if (!(fd = mkstemp(tmpname)) || !(fp = fdopen(fd, "r+")))
+       if ((fd = mkstemp(tmpname)) == -1 || !(fp = fdopen(fd, "r+")))
                err(1, "can't open temporary file");
        (void)unlink(tmpname);
 



Home | Main Index | Thread Index | Old Index