chown: fix a mistake in opt_complementary change
authorDenys Vlasenko <vda.linux@googlemail.com>
Sun, 31 Dec 2017 16:59:16 +0000 (17:59 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sun, 31 Dec 2017 16:59:16 +0000 (17:59 +0100)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
coreutils/chown.c

index 985d18d6f43b5a58d01e39c5a867c581ea2f2024..6429fd030067452af8d3dded05f4cb6350f5a365 100644 (file)
@@ -128,9 +128,9 @@ int chown_main(int argc UNUSED_PARAM, char **argv)
        struct param_t param;
 
 #if ENABLE_FEATURE_CHOWN_LONG_OPTIONS
-       opt = getopt32long(argv, "^" OPT_STR "\0" "=2", chown_longopts);
+       opt = getopt32long(argv, "^" OPT_STR "\0" "-2", chown_longopts);
 #else
-       opt = getopt32(argv, "^" OPT_STR "\0" "=2");
+       opt = getopt32(argv, "^" OPT_STR "\0" "-2");
 #endif
        argv += optind;