diff options
author | Philip Guenthe <guenther@cvs.openbsd.org> | 2010-10-29 05:36:26 +0000 |
---|---|---|
committer | Philip Guenthe <guenther@cvs.openbsd.org> | 2010-10-29 05:36:26 +0000 |
commit | 8437f413dc1cd1057749d3a0c935fd4665c70de6 (patch) | |
tree | 5afcc19589cada6fba54f28d99d4afcc69005694 /usr.bin | |
parent | c565153c470898cbc1e8567f6407739297e37767 (diff) |
Include the octet of the mode that contains the setuid/setgid/sticky bits
in the output format used for the -x option.
Problem observed by LEVAI Daniel
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/stat/stat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/stat/stat.c b/usr.bin/stat/stat.c index 550428f4cdd..b499141c216 100644 --- a/usr.bin/stat/stat.c +++ b/usr.bin/stat/stat.c @@ -1,4 +1,4 @@ -/* $OpenBSD: stat.c,v 1.16 2010/09/01 06:35:05 lum Exp $ */ +/* $OpenBSD: stat.c,v 1.17 2010/10/29 05:36:25 guenther Exp $ */ /* $NetBSD: stat.c,v 1.19 2004/06/20 22:20:16 jmc Exp $ */ /* @@ -60,7 +60,7 @@ #define LINUX_FORMAT \ " File: \"%N\"%n" \ " Size: %-11z FileType: %HT%n" \ - " Mode: (%04OLp/%.10Sp) Uid: (%5u/%8Su) Gid: (%5g/%8Sg)%n" \ + " Mode: (%01Mp%03OLp/%.10Sp) Uid: (%5u/%8Su) Gid: (%5g/%8Sg)%n" \ "Device: %Hd,%Ld Inode: %i Links: %l%n" \ "Access: %Sa%n" \ "Modify: %Sm%n" \ |