Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/gzip oops. fix previous by keeping the stat() inside...



details:   https://anonhg.NetBSD.org/src/rev/79018c8e2185
branches:  trunk
changeset: 584408:79018c8e2185
user:      mrg <mrg%NetBSD.org@localhost>
date:      Thu Sep 15 18:51:33 2005 +0000

description:
oops. fix previous by keeping the stat() inside #ifndef SMALL.  pointed
out by dsl.

diffstat:

 usr.bin/gzip/gzip.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (31 lines):

diff -r 068dbcb3adb9 -r 79018c8e2185 usr.bin/gzip/gzip.c
--- a/usr.bin/gzip/gzip.c       Thu Sep 15 18:34:03 2005 +0000
+++ b/usr.bin/gzip/gzip.c       Thu Sep 15 18:51:33 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: gzip.c,v 1.75 2005/09/15 09:30:21 mrg Exp $    */
+/*     $NetBSD: gzip.c,v 1.76 2005/09/15 18:51:33 mrg Exp $    */
 
 /*
  * Copyright (c) 1997, 1998, 2003, 2004 Matthew R. Green
@@ -32,7 +32,7 @@
 #ifndef lint
 __COPYRIGHT("@(#) Copyright (c) 1997, 1998, 2003, 2004 Matthew R. Green\n\
      All rights reserved.\n");
-__RCSID("$NetBSD: gzip.c,v 1.75 2005/09/15 09:30:21 mrg Exp $");
+__RCSID("$NetBSD: gzip.c,v 1.76 2005/09/15 18:51:33 mrg Exp $");
 #endif /* not lint */
 
 /*
@@ -1156,10 +1156,12 @@
                return -1;
        }
 
+#ifndef SMALL
        if (stat(file, &isb) != 0) {
                maybe_warn("cannot stat %s -- skipping", file);
                return -1;
        }
+#endif
        if (cflag == 0) {
 #ifndef SMALL
                if (isb.st_nlink > 1 && fflag == 0) {



Home | Main Index | Thread Index | Old Index