Even on non-BSD systems, the "-R all" option should disable printing of
the "time" attribute. Noticed by Malcolm Herbert on tech-pkg.
This commit is contained in:
parent
0f2ad14fc7
commit
50e4f54b4c
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user