Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/mtree Restore old behavior of not printing sizes fo...
details: https://anonhg.NetBSD.org/src/rev/b45da7d9cab6
branches: trunk
changeset: 790520:b45da7d9cab6
user: christos <christos%NetBSD.org@localhost>
date: Wed Oct 16 17:24:20 2013 +0000
description:
Restore old behavior of not printing sizes for directories, since it varies
depending on filesystem implementation. (Brooks Davis)
diffstat:
usr.sbin/mtree/create.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r ccfed8b9180b -r b45da7d9cab6 usr.sbin/mtree/create.c
--- a/usr.sbin/mtree/create.c Wed Oct 16 15:28:27 2013 +0000
+++ b/usr.sbin/mtree/create.c Wed Oct 16 17:24:20 2013 +0000
@@ -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 @@
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)
Home |
Main Index |
Thread Index |
Old Index