aboutsummaryrefslogtreecommitdiff
path: root/coreutils/stat.c
diff options
context:
space:
mode:
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 */