svn commit: r188841 - stable/7/usr.bin/stat

Maxim Konovalov maxim at FreeBSD.org
Thu Feb 19 23:10:34 PST 2009


Author: maxim
Date: Fri Feb 20 07:10:33 2009
New Revision: 188841
URL: http://svn.freebsd.org/changeset/base/188841

Log:
  MFC r188481: print an octal representation of suid, sgid and
  sticky bits with -x flag.

Modified:
  stable/7/usr.bin/stat/   (props changed)
  stable/7/usr.bin/stat/stat.c

Modified: stable/7/usr.bin/stat/stat.c
==============================================================================
--- stable/7/usr.bin/stat/stat.c	Fri Feb 20 06:10:12 2009	(r188840)
+++ stable/7/usr.bin/stat/stat.c	Fri Feb 20 07:10:33 2009	(r188841)
@@ -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" \


More information about the svn-src-stable-7 mailing list