summaryrefslogtreecommitdiff
path: root/scripts/config/conf.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2013-05-02 14:06:10 +0000
committerFelix Fietkau <nbd@openwrt.org>2013-05-02 14:06:10 +0000
commitf935d800bf5c6ecebc3d4519041661d60484ded9 (patch)
tree6ed2ed4336a749653cfb7e527356267a2abac0ab /scripts/config/conf.c
parent4bba31b64c70cba75a8301b979ae3ec2226f2c57 (diff)
downloadmtk-20170518-f935d800bf5c6ecebc3d4519041661d60484ded9.zip
mtk-20170518-f935d800bf5c6ecebc3d4519041661d60484ded9.tar.gz
mtk-20170518-f935d800bf5c6ecebc3d4519041661d60484ded9.tar.bz2
scripts/config: fix an option processing error that caused duplication in diffconfig.sh output (#13384)
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 36522
Diffstat (limited to 'scripts/config/conf.c')
-rw-r--r--scripts/config/conf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/config/conf.c b/scripts/config/conf.c
index 1f94816..b769654 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]);