aboutsummaryrefslogtreecommitdiff
path: root/coreutils/chown.c
diff options
context:
space:
mode:
Diffstat (limited to 'coreutils/chown.c')
-rw-r--r--coreutils/chown.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/coreutils/chown.c b/coreutils/chown.c
index 1bfc725cc..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)
@@ -128,10 +128,10 @@ int chown_main(int argc UNUSED_PARAM, char **argv)
128 struct param_t param; 128 struct param_t param;
129 129
130#if ENABLE_FEATURE_CHOWN_LONG_OPTIONS 130#if ENABLE_FEATURE_CHOWN_LONG_OPTIONS
131 applet_long_options = chown_longopts; 131 opt = getopt32long(argv, "^" OPT_STR "\0" "=2", chown_longopts);
132#else
133 opt = getopt32(argv, "^" OPT_STR "\0" "=2");
132#endif 134#endif
133 opt_complementary = "-2";
134 opt = getopt32(argv, OPT_STR);
135 argv += optind; 135 argv += optind;
136 136
137 /* This matches coreutils behavior (almost - see below) */ 137 /* This matches coreutils behavior (almost - see below) */