aboutsummaryrefslogtreecommitdiff
path: root/coreutils/stat.c
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2017-08-22 14:56:12 +0100
committerRon Yorston <rmy@pobox.com>2017-08-22 14:56:12 +0100
commitce9af1cc5ea23f754587448cf35b5120c77bfeef (patch)
tree69e5eaba5e75ab909ed92d5045393471b8ff3c13 /coreutils/stat.c
parentc170026700eabb10147dd848c45c06995b43a32e (diff)
parente837a0dbbebf4229306df98fe9ee3b9bb30630c4 (diff)
downloadbusybox-w32-ce9af1cc5ea23f754587448cf35b5120c77bfeef.tar.gz
busybox-w32-ce9af1cc5ea23f754587448cf35b5120c77bfeef.tar.bz2
busybox-w32-ce9af1cc5ea23f754587448cf35b5120c77bfeef.zip
Merge branch 'busybox' into merge
Diffstat (limited to 'coreutils/stat.c')
-rw-r--r--coreutils/stat.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/coreutils/stat.c b/coreutils/stat.c
index 96efa1d5d..177ced2f9 100644
--- a/coreutils/stat.c
+++ b/coreutils/stat.c
@@ -35,7 +35,7 @@
35//config: Without this, stat will not support the '-f' option to display 35//config: Without this, stat will not support the '-f' option to display
36//config: information about filesystem status. 36//config: information about filesystem status.
37 37
38//applet:IF_STAT(APPLET(stat, BB_DIR_BIN, BB_SUID_DROP)) 38//applet:IF_STAT(APPLET_NOEXEC(stat, stat, BB_DIR_BIN, BB_SUID_DROP, stat))
39 39
40//kbuild:lib-$(CONFIG_STAT) += stat.o 40//kbuild:lib-$(CONFIG_STAT) += stat.o
41 41
@@ -761,11 +761,13 @@ int stat_main(int argc UNUSED_PARAM, char **argv)
761 unsigned opts; 761 unsigned opts;
762 statfunc_ptr statfunc = do_stat; 762 statfunc_ptr statfunc = do_stat;
763 763
764 opt_complementary = "-1"; /* min one arg */ 764 opts = getopt32(argv, "^"
765 opts = getopt32(argv, "tL" 765 "tL"
766 IF_FEATURE_STAT_FILESYSTEM("f") 766 IF_FEATURE_STAT_FILESYSTEM("f")
767 IF_SELINUX("Z") 767 IF_SELINUX("Z")
768 IF_FEATURE_STAT_FORMAT("c:", &format) 768 IF_FEATURE_STAT_FORMAT("c:")
769 "\0" "-1" /* min one arg */
770 IF_FEATURE_STAT_FORMAT(,&format)
769 ); 771 );
770#if ENABLE_FEATURE_STAT_FILESYSTEM 772#if ENABLE_FEATURE_STAT_FILESYSTEM
771 if (opts & OPT_FILESYS) /* -f */ 773 if (opts & OPT_FILESYS) /* -f */