diff options
Diffstat (limited to 'util-linux/setpriv.c')
-rw-r--r-- | util-linux/setpriv.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/util-linux/setpriv.c b/util-linux/setpriv.c index 0f85428ab..5c532d637 100644 --- a/util-linux/setpriv.c +++ b/util-linux/setpriv.c @@ -421,9 +421,12 @@ int setpriv_main(int argc UNUSED_PARAM, char **argv) int opts; IF_FEATURE_SETPRIV_CAPABILITIES(char *inh_caps, *ambient_caps;) - applet_long_options = setpriv_longopts; - opts = getopt32(argv, "+"IF_FEATURE_SETPRIV_DUMP("d") - IF_FEATURE_SETPRIV_CAPABILITIES("\xfe:\xfd:", &inh_caps, &ambient_caps)); + opts = getopt32long(argv, + "+"IF_FEATURE_SETPRIV_DUMP("d") + IF_FEATURE_SETPRIV_CAPABILITIES("\xfe:\xfd:"), + setpriv_longopts + IF_FEATURE_SETPRIV_CAPABILITIES(, &inh_caps, &ambient_caps) + ); argv += optind; #if ENABLE_FEATURE_SETPRIV_DUMP |