From 848bd19d21a760c4e49a83913c9a7aea83b30ad2 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sun, 18 Mar 2007 18:04:30 +0100 Subject: * src/runcon.c (main): Don't reorder arguments. Reported by Ulrich Drepper in . * tests/misc/runcon-no-reorder: New file. Test for the above. * tests/misc/Makefile.am (TESTS): Add runcon-no-reorder. --- src/runcon.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/runcon.c') 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) -- cgit v1.2.3-54-g00ecf