Module Name: src
Committed By: mlelstv
Date: Sun Dec 15 18:56:59 UTC 2013
Modified Files:
src/usr.bin/fstat: fstat.c
Log Message:
Fix output for -A -f ...
To generate a diff of this commit:
cvs rdiff -u -r1.105 -r1.106 src/usr.bin/fstat/fstat.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.bin/fstat/fstat.c
diff -u src/usr.bin/fstat/fstat.c:1.105 src/usr.bin/fstat/fstat.c:1.106
--- src/usr.bin/fstat/fstat.c:1.105 Sun Dec 15 09:21:03 2013
+++ src/usr.bin/fstat/fstat.c Sun Dec 15 18:56:59 2013
@@ -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 @@ __COPYRIGHT("@(#) Copyright (c) 1988, 19
#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 @@ ftrans(fdfile_t *fp, int i)
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) {