Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/fstat Fix output for -A -f ...



details:   https://anonhg.NetBSD.org/src/rev/e9a9807cd6aa
branches:  trunk
changeset: 792006:e9a9807cd6aa
user:      mlelstv <mlelstv%NetBSD.org@localhost>
date:      Sun Dec 15 18:56:59 2013 +0000

description:
Fix output for -A -f ...

diffstat:

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

diffs (27 lines):

diff -r 7c7aaef5363b -r e9a9807cd6aa usr.bin/fstat/fstat.c
--- a/usr.bin/fstat/fstat.c     Sun Dec 15 18:50:25 2013 +0000
+++ b/usr.bin/fstat/fstat.c     Sun Dec 15 18:56:59 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fstat.c,v 1.105 2013/12/15 09:21:03 wiz Exp $  */
+/*     $NetBSD: fstat.c,v 1.106 2013/12/15 18:56:59 mlelstv Exp $      */
 
 /*-
  * Copyright (c) 1988, 1993
@@ -39,7 +39,7 @@
 #if 0
 static char sccsid[] = "@(#)fstat.c    8.3 (Berkeley) 5/2/95";
 #else
-__RCSID("$NetBSD: fstat.c,v 1.105 2013/12/15 09:21:03 wiz Exp $");
+__RCSID("$NetBSD: fstat.c,v 1.106 2013/12/15 18:56:59 mlelstv Exp $");
 #endif
 #endif /* not lint */
 
@@ -502,7 +502,7 @@
                    i, fdfile.ff_file, Pid);
                return;
        }
-       if (Aflg && file.f_type != DTYPE_VNODE)
+       if (Aflg && file.f_type != DTYPE_VNODE && checkfile == 0)
                (void)printf("%*lx ",
                        2*(int)(sizeof(void*)), (long)fdfile.ff_file);
        switch (file.f_type) {



Home | Main Index | Thread Index | Old Index