Module Name: src
Committed By: christos
Date: Wed Oct 16 17:24:20 UTC 2013
Modified Files:
src/usr.sbin/mtree: create.c
Log Message:
Restore old behavior of not printing sizes for directories, since it varies
depending on filesystem implementation. (Brooks Davis)
To generate a diff of this commit:
cvs rdiff -u -r1.70 -r1.71 src/usr.sbin/mtree/create.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.sbin/mtree/create.c
diff -u src/usr.sbin/mtree/create.c:1.70 src/usr.sbin/mtree/create.c:1.71
--- src/usr.sbin/mtree/create.c:1.70 Mon Sep 9 19:27:43 2013
+++ src/usr.sbin/mtree/create.c Wed Oct 16 13:24:20 2013
@@ -1,4 +1,4 @@
-/* $NetBSD: create.c,v 1.70 2013/09/09 23:27:43 christos Exp $ */
+/* $NetBSD: create.c,v 1.71 2013/10/16 17:24:20 christos Exp $ */
/*-
* Copyright (c) 1989, 1993
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)create.c 8.1 (Berkeley) 6/6/93";
#else
-__RCSID("$NetBSD: create.c,v 1.70 2013/09/09 23:27:43 christos Exp $");
+__RCSID("$NetBSD: create.c,v 1.71 2013/10/16 17:24:20 christos Exp $");
#endif
#endif /* not lint */
@@ -221,7 +221,7 @@ statf(int indent, FTSENT *p)
if (keys & F_NLINK && p->fts_statp->st_nlink != 1)
output(indent, &offset, "nlink=%u", p->fts_statp->st_nlink);
if (keys & F_SIZE &&
- (flavor != F_NETBSD6 || S_ISREG(p->fts_statp->st_mode)))
+ (flavor == F_FREEBSD9 || S_ISREG(p->fts_statp->st_mode)))
output(indent, &offset, "size=%ju",
(uintmax_t)p->fts_statp->st_size);
if (keys & F_TIME)