summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
authormaxim <maxim@FreeBSD.org>2009-02-11 10:50:26 +0000
committermaxim <maxim@FreeBSD.org>2009-02-11 10:50:26 +0000
commit2638667dddf83da1ef439be8009c092f342cbfc3 (patch)
tree5b52e62677b455dde57aaf3477aff76166e13cfa /usr.bin
parentfe70f373f05ab68a07cce0f8006f4070d4301deb (diff)
downloadFreeBSD-src-2638667dddf83da1ef439be8009c092f342cbfc3.zip
FreeBSD-src-2638667dddf83da1ef439be8009c092f342cbfc3.tar.gz
o Print an octal representation of suid, sgid and sticky bits with -x flag.
PR: bin/131569 Submitted by: Jaakko Heinonen Reported by: Yannick Cadin MFC after: 1 week
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/stat/stat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/stat/stat.c b/usr.bin/stat/stat.c
index b67627e..1f6d114 100644
--- a/usr.bin/stat/stat.c
+++ b/usr.bin/stat/stat.c
@@ -108,7 +108,7 @@ __FBSDID("$FreeBSD$");
#define LINUX_FORMAT \
" File: \"%N\"%n" \
" Size: %-11z FileType: %HT%n" \
- " Mode: (%04OLp/%.10Sp) Uid: (%5u/%8Su) Gid: (%5g/%8Sg)%n" \
+ " Mode: (%OMp%03OLp/%.10Sp) Uid: (%5u/%8Su) Gid: (%5g/%8Sg)%n" \
"Device: %Hd,%Ld Inode: %i Links: %l%n" \
"Access: %Sa%n" \
"Modify: %Sm%n" \
OpenPOWER on IntegriCloud