diff options
author | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2013-05-02 14:06:10 +0000 |
---|---|---|
committer | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2013-05-02 14:06:10 +0000 |
commit | 8f47b2831392da526acf1208ad0cab44b0f26299 (patch) | |
tree | db66d8a117799b56073773023e224c5241dc9704 /scripts | |
parent | 6cee99178079e5fe02f942bc0b05dc50d89e2b25 (diff) |
scripts/config: fix an option processing error that caused duplication in diffconfig.sh output (#13384)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36522 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/config/conf.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/config/conf.c b/scripts/config/conf.c index 1f94816cf..b769654a8 100644 --- a/scripts/config/conf.c +++ b/scripts/config/conf.c @@ -502,7 +502,6 @@ int main(int ac, char **av) tty_stdio = isatty(0) && isatty(1) && isatty(2); while ((opt = getopt_long(ac, av, "r:w:", long_opts, NULL)) != -1) { - input_mode = (enum input_mode)opt; switch (opt) { case silentoldconfig: sync_kconfig = 1; @@ -537,15 +536,16 @@ int main(int ac, char **av) break; case 'r': input_file = optarg; - break; + continue; case 'w': output_file = optarg; - break; + continue; case '?': conf_usage(progname); exit(1); break; } + input_mode = (enum input_mode)opt; } if (ac == optind) { printf(_("%s: Kconfig file missing\n"), av[0]); |