summaryrefslogtreecommitdiff
path: root/src/runcon.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2007-03-18 18:04:30 +0100
committerJim Meyering <jim@meyering.net>2007-03-29 21:37:06 +0200
commit848bd19d21a760c4e49a83913c9a7aea83b30ad2 (patch)
tree031fca289834add20d8ead09b7df0b15d6fa7a44 /src/runcon.c
parentaefac2c02e471a09880603738aa97d7cc422b6ef (diff)
downloadcoreutils-848bd19d21a760c4e49a83913c9a7aea83b30ad2.tar.xz
* src/runcon.c (main): Don't reorder arguments. Reported by
Ulrich Drepper in <http://bugzilla.redhat.com/232652>. * tests/misc/runcon-no-reorder: New file. Test for the above. * tests/misc/Makefile.am (TESTS): Add runcon-no-reorder.
Diffstat (limited to 'src/runcon.c')
-rw-r--r--src/runcon.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/runcon.c b/src/runcon.c
index a8ddb7474..1d79ef6ff 100644
--- a/src/runcon.c
+++ b/src/runcon.c
@@ -114,9 +114,9 @@ main (int argc, char **argv, char **envp)
while (1)
{
- int c;
int option_index = 0;
- c = getopt_long (argc, argv, "r:t:u:l:c", long_options, &option_index);
+ int c = getopt_long (argc, argv, "+r:t:u:l:c", long_options,
+ &option_index);
if (c == -1)
break;
switch (c)