summaryrefslogtreecommitdiff
path: root/usr.bin/stat
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>2017-09-20 01:23:37 +0000
committerchristos <christos@NetBSD.org>2017-09-20 01:23:37 +0000
commitc4c9656d7b5fc2792b9ae6d45d43bbf15df908fe (patch)
treef1d7721ed7a6851cae8e979f35d4f1fcea092f79 /usr.bin/stat
parentac9124d0a168144ef8000655926e544b6b927f40 (diff)
- add the sticky bits to mode
- fix linux Birth for the havenots code review via email from @@@
Diffstat (limited to 'usr.bin/stat')
-rw-r--r--usr.bin/stat/stat.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/usr.bin/stat/stat.c b/usr.bin/stat/stat.c
index 97b1ce1493c..f78645f7f6b 100644
--- a/usr.bin/stat/stat.c
+++ b/usr.bin/stat/stat.c
@@ -1,4 +1,4 @@
-/* $NetBSD: stat.c,v 1.39 2017/09/19 21:45:28 christos Exp $ */
+/* $NetBSD: stat.c,v 1.40 2017/09/20 01:23:37 christos Exp $ */
/*
* Copyright (c) 2002-2011 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
#include <sys/cdefs.h>
#if !defined(lint)
-__RCSID("$NetBSD: stat.c,v 1.39 2017/09/19 21:45:28 christos Exp $");
+__RCSID("$NetBSD: stat.c,v 1.40 2017/09/20 01:23:37 christos Exp $");
#endif
#if ! HAVE_NBTOOL_CONFIG_H
@@ -79,10 +79,12 @@ __RCSID("$NetBSD: stat.c,v 1.39 2017/09/19 21:45:28 christos Exp $");
#define DEF_B "\"%SB\" "
#define RAW_B "%B "
#define SHELL_B "st_birthtime=%SB "
+#define LINUX_B "%n Birth: %SB"
#else /* HAVE_STRUCT_STAT_ST_BIRTHTIME */
#define DEF_B
#define RAW_B
#define SHELL_B
+#define LINUX_B
#endif /* HAVE_STRUCT_STAT_ST_BIRTHTIME */
#if HAVE_STRUCT_STAT_ST_ATIM
@@ -107,11 +109,11 @@ __RCSID("$NetBSD: stat.c,v 1.39 2017/09/19 21:45:28 christos Exp $");
" File: \"%N\"%n" \
" Size: %-11z Blocks: %-11b IO Block: %-11k %HT%n" \
"Device: %Hd,%Ld Inode: %i Links: %l%n" \
- " Mode: (%04OLp/%.10Sp) Uid: (%5u/%8Su) Gid: (%5g/%8Sg)%n" \
+ " Mode: (%Mp%03OLp/%.10Sp) Uid: (%5u/%8Su) Gid: (%5g/%8Sg)%n" \
"Access: %Sa%n" \
"Modify: %Sm%n" \
- "Change: %Sc%n" \
- " Birth: %SB"
+ "Change: %Sc" \
+ LINUX_B
#define TIME_FORMAT "%b %e %T %Y"