diff options
Diffstat (limited to 'selinux/runcon.c')
-rw-r--r-- | selinux/runcon.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/selinux/runcon.c b/selinux/runcon.c index 199da25c6..a5a394427 100644 --- a/selinux/runcon.c +++ b/selinux/runcon.c | |||
@@ -126,9 +126,12 @@ int runcon_main(int argc UNUSED_PARAM, char **argv) | |||
126 | 126 | ||
127 | selinux_or_die(); | 127 | selinux_or_die(); |
128 | 128 | ||
129 | opt_complementary = "-1"; | 129 | opts = getopt32long(argv, "^" |
130 | opts = getopt32long(argv, "r:t:u:l:ch", runcon_longopts, | 130 | "r:t:u:l:ch" |
131 | &role, &type, &user, &range); | 131 | "\0" "-1", |
132 | runcon_longopts, | ||
133 | &role, &type, &user, &range | ||
134 | ); | ||
132 | argv += optind; | 135 | argv += optind; |
133 | 136 | ||
134 | if (!(opts & OPTS_CONTEXT_COMPONENT)) { | 137 | if (!(opts & OPTS_CONTEXT_COMPONENT)) { |