aboutsummaryrefslogtreecommitdiff
path: root/networking
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2019-03-08 15:12:52 +0000
committerRon Yorston <rmy@pobox.com>2019-03-08 15:12:52 +0000
commit3eaaac2f84e580246724725da380ac47e0ebc07e (patch)
tree5b5c2630ccbc1e09f30bfb6e4fb83de193028028 /networking
parent5627c61f0b382593fa74757036dcd1ffbd9d9ad3 (diff)
downloadbusybox-w32-3eaaac2f84e580246724725da380ac47e0ebc07e.tar.gz
busybox-w32-3eaaac2f84e580246724725da380ac47e0ebc07e.tar.bz2
busybox-w32-3eaaac2f84e580246724725da380ac47e0ebc07e.zip
su, wget: use magic '--busybox' flag
I've been a bit lax about ensuring the --busybox flag is passed in command lines. It's needed to avoid problems if the binary is called something like sh.exe.
Diffstat (limited to 'networking')
-rw-r--r--networking/wget.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/networking/wget.c b/networking/wget.c
index bb70039f9..d907cee30 100644
--- a/networking/wget.c
+++ b/networking/wget.c
@@ -789,7 +789,8 @@ static void spawn_ssl_client(const char *host, int network_fd, int flags)
789 789
790 fflush_all(); 790 fflush_all();
791 791
792 cmd = xasprintf("%s ssl_client -h %p -n %s%s", bb_busybox_exec_path, 792 cmd = xasprintf("%s --busybox ssl_client -h %p -n %s%s",
793 bb_busybox_exec_path,
793 (void *)_get_osfhandle(network_fd), servername, 794 (void *)_get_osfhandle(network_fd), servername,
794 flags & TLSLOOP_EXIT_ON_LOCAL_EOF ? " -e" : ""); 795 flags & TLSLOOP_EXIT_ON_LOCAL_EOF ? " -e" : "");
795 796