[git commit] ssl_client: fix option parsing
Denys Vlasenko
vda.linux at googlemail.com
Tue Mar 20 10:41:51 UTC 2018
commit: https://git.busybox.net/busybox/commit/?id=b5820d9fd88bb6cb1dfd1a934a3d346336d5cac2
branch: https://git.busybox.net/busybox/commit/?id=refs/heads/master
The wrong character was used to indicate options taking an integer
parameter.
Signed-off-by: Ron Yorston <rmy at pobox.com>
Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
networking/ssl_client.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/networking/ssl_client.c b/networking/ssl_client.c
index eb84e7726..875352d18 100644
--- a/networking/ssl_client.c
+++ b/networking/ssl_client.c
@@ -30,7 +30,7 @@ int ssl_client_main(int argc UNUSED_PARAM, char **argv)
// INIT_G();
tls = new_tls_state();
- opt = getopt32(argv, "es:#r:#n:", &tls->ofd, &tls->ifd, &sni);
+ opt = getopt32(argv, "es:+r:+n:", &tls->ofd, &tls->ifd, &sni);
if (!(opt & (1<<2))) {
/* -r N defaults to -s N */
tls->ifd = tls->ofd;
More information about the busybox-cvs
mailing list