Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/sup/source Don't omit third argument to open(2).



details:   https://anonhg.NetBSD.org/src/rev/1a83297b9d42
branches:  trunk
changeset: 535064:1a83297b9d42
user:      soren <soren%NetBSD.org@localhost>
date:      Fri Aug 09 11:06:43 2002 +0000

description:
Don't omit third argument to open(2).
PR bin/17885 from mjl.

diffstat:

 usr.sbin/sup/source/supcmeat.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r b3ec2aeace3c -r 1a83297b9d42 usr.sbin/sup/source/supcmeat.c
--- a/usr.sbin/sup/source/supcmeat.c    Fri Aug 09 10:13:07 2002 +0000
+++ b/usr.sbin/sup/source/supcmeat.c    Fri Aug 09 11:06:43 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: supcmeat.c,v 1.25 2002/07/10 21:28:13 wiz Exp $        */
+/*     $NetBSD: supcmeat.c,v 1.26 2002/08/09 11:06:43 soren Exp $      */
 
 /*
  * Copyright (c) 1992 Carnegie Mellon University
@@ -1278,7 +1278,7 @@
                av[ac++] = "gzip";
                av[ac++] = "-d";
                av[ac++] = NULL;
-               if ((infd = open(tname, O_RDONLY)) == -1 ||
+               if ((infd = open(tname, O_RDONLY, 0)) == -1 ||
                    unlink(tname) == -1 ||
                    (outfd = open(tname, O_WRONLY | O_CREAT | O_TRUNC)) == -1 ||
                    runiofd(av, infd, outfd, 2) != 0) {



Home | Main Index | Thread Index | Old Index