aboutsummaryrefslogtreecommitdiff
path: root/coreutils/chown.c
diff options
context:
space:
mode:
Diffstat (limited to 'coreutils/chown.c')
-rw-r--r--coreutils/chown.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/coreutils/chown.c b/coreutils/chown.c
index 0c77529ec..985d18d6f 100644
--- a/coreutils/chown.c
+++ b/coreutils/chown.c
@@ -55,7 +55,7 @@
55/* This is a NOEXEC applet. Be very careful! */ 55/* This is a NOEXEC applet. Be very careful! */
56 56
57 57
58#define OPT_STR ("Rh" IF_DESKTOP("vcfLHP")) 58#define OPT_STR "Rh" IF_DESKTOP("vcfLHP")
59#define BIT_RECURSE 1 59#define BIT_RECURSE 1
60#define OPT_RECURSE (opt & 1) 60#define OPT_RECURSE (opt & 1)
61#define OPT_NODEREF (opt & 2) 61#define OPT_NODEREF (opt & 2)
@@ -127,11 +127,10 @@ int chown_main(int argc UNUSED_PARAM, char **argv)
127 int opt, flags; 127 int opt, flags;
128 struct param_t param; 128 struct param_t param;
129 129
130 opt_complementary = "-2";
131#if ENABLE_FEATURE_CHOWN_LONG_OPTIONS 130#if ENABLE_FEATURE_CHOWN_LONG_OPTIONS
132 opt = getopt32long(argv, OPT_STR, chown_longopts); 131 opt = getopt32long(argv, "^" OPT_STR "\0" "=2", chown_longopts);
133#else 132#else
134 opt = getopt32(argv, OPT_STR); 133 opt = getopt32(argv, "^" OPT_STR "\0" "=2");
135#endif 134#endif
136 argv += optind; 135 argv += optind;
137 136