diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2018-03-11 23:02:50 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2018-03-11 23:02:50 +0100 |
commit | bbe47d9b9aee3824845f1ce08c9caeb262c15059 (patch) | |
tree | 1a5ab8a2b9827f3447994cbaba8fe9bca138a88c | |
parent | 0e09ded2f1ab4b2e941cb29bed6c5dca7ecb9b53 (diff) | |
download | busybox-w32-bbe47d9b9aee3824845f1ce08c9caeb262c15059.tar.gz busybox-w32-bbe47d9b9aee3824845f1ce08c9caeb262c15059.tar.bz2 busybox-w32-bbe47d9b9aee3824845f1ce08c9caeb262c15059.zip |
tcpsvd: fix fallout from opt_complementary removal
text data bss dec hex filename
933035 473 6836 940344 e5938 busybox_old
933051 473 6836 940360 e5948 busybox_unstripped
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | networking/tcpudp.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/networking/tcpudp.c b/networking/tcpudp.c index a90e3f80a..c914221ae 100644 --- a/networking/tcpudp.c +++ b/networking/tcpudp.c | |||
@@ -270,17 +270,22 @@ int tcpudpsvd_main(int argc UNUSED_PARAM, char **argv) | |||
270 | 270 | ||
271 | tcp = (applet_name[0] == 't'); | 271 | tcp = (applet_name[0] == 't'); |
272 | 272 | ||
273 | /* "+": stop on first non-option */ | ||
273 | #ifdef SSLSVD | 274 | #ifdef SSLSVD |
274 | opts = getopt32(argv, "^+" | 275 | opts = getopt32(argv, "^+" |
275 | "c:+C:i:x:u:l:Eb:+hpt:vU:/:Z:K:" /* -c NUM, -b NUM */ | 276 | "c:+C:i:x:u:l:Eb:+hpt:vU:/:Z:K:" /* -c NUM, -b NUM */ |
277 | "\0" | ||
276 | /* 3+ args, -i at most once, -p implies -h, -v is a counter */ | 278 | /* 3+ args, -i at most once, -p implies -h, -v is a counter */ |
277 | "\0" "-3:i--i:ph:vv", | 279 | "-3:i--i:ph:vv", |
278 | &cmax, &str_C, &instructs, &instructs, &user, &preset_local_hostname, | 280 | &cmax, &str_C, &instructs, &instructs, &user, &preset_local_hostname, |
279 | &backlog, &str_t, &ssluser, &root, &cert, &key, &verbose | 281 | &backlog, &str_t, &ssluser, &root, &cert, &key, &verbose |
280 | ); | 282 | ); |
281 | #else | 283 | #else |
282 | /* "+": stop on first non-option */ | 284 | opts = getopt32(argv, "^+" |
283 | opts = getopt32(argv, "+c:+C:i:x:u:l:Eb:hpt:v", | 285 | "c:+C:i:x:u:l:Eb:+hpt:v" /* -c NUM, -b NUM */ |
286 | "\0" | ||
287 | /* 3+ args, -i at most once, -p implies -h, -v is a counter */ | ||
288 | "-3:i--i:ph:vv", | ||
284 | &cmax, &str_C, &instructs, &instructs, &user, &preset_local_hostname, | 289 | &cmax, &str_C, &instructs, &instructs, &user, &preset_local_hostname, |
285 | &backlog, &str_t, &verbose | 290 | &backlog, &str_t, &verbose |
286 | ); | 291 | ); |