From 50e4f54b4c34aa176ffc851b1db8bfc94479b89c Mon Sep 17 00:00:00 2001 From: rillig Date: Mon, 19 Nov 2007 08:42:24 +0000 Subject: [PATCH] Even on non-BSD systems, the "-R all" option should disable printing of the "time" attribute. Noticed by Malcolm Herbert on tech-pkg. --- usr.sbin/mtree/create.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/usr.sbin/mtree/create.c b/usr.sbin/mtree/create.c index c9d5fbac66b0..ac530bb480b4 100644 --- a/usr.sbin/mtree/create.c +++ b/usr.sbin/mtree/create.c @@ -1,4 +1,4 @@ -/* $NetBSD: create.c,v 1.52 2007/10/18 02:28:22 christos Exp $ */ +/* $NetBSD: create.c,v 1.53 2007/11/19 08:42:24 rillig 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.52 2007/10/18 02:28:22 christos Exp $"); +__RCSID("$NetBSD: create.c,v 1.53 2007/11/19 08:42:24 rillig Exp $"); #endif #endif /* not lint */ @@ -186,8 +186,8 @@ statf(FTSENT *p) output(&indent, "nlink=%u", p->fts_statp->st_nlink); if (keys & F_SIZE && S_ISREG(p->fts_statp->st_mode)) output(&indent, "size=%lld", (long long)p->fts_statp->st_size); -#if defined(BSD4_4) && !defined(HAVE_NBTOOL_CONFIG_H) if (keys & F_TIME) +#if defined(BSD4_4) && !defined(HAVE_NBTOOL_CONFIG_H) output(&indent, "time=%ld.%ld", (long)p->fts_statp->st_mtimespec.tv_sec, p->fts_statp->st_mtimespec.tv_nsec);