From 2ec47dc1b2019c5b375f85115c2d6477bc3fdfee Mon Sep 17 00:00:00 2001 From: Alexander M Pickering Date: Thu, 7 Nov 2024 14:56:42 -0600 Subject: Set flags in config no need to do it in init with sed. --- test.patch | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) (limited to 'test.patch') diff --git a/test.patch b/test.patch index 0f89645..38728ef 100644 --- a/test.patch +++ b/test.patch @@ -88,7 +88,7 @@ index 9f1dd67ec..7e8da6df2 100644 static void tls_xwrite(tls_state_t *tls, int len) { diff --git a/networking/wget.c b/networking/wget.c -index 6a64836fb..b92f22d3e 100644 +index 6a64836fb..6a82f1fa4 100644 --- a/networking/wget.c +++ b/networking/wget.c @@ -689,6 +689,7 @@ static void reset_beg_range_to_zero(void) @@ -117,7 +117,7 @@ index 6a64836fb..b92f22d3e 100644 + fflush_all(); + + struct tls *ctx = tls_client(); -+ if(tls == NULL) ++ if(ctx == NULL) + bb_error_msg_and_die("Out of memory"); + struct tls_config *config = tls_config_new(); + if(config == NULL) @@ -134,3 +134,21 @@ index 6a64836fb..b92f22d3e 100644 #endif #if ENABLE_FEATURE_WGET_HTTPS +diff --git a/win32/mingw.c b/win32/mingw.c +index 87e7ca602..7bad3e4fa 100644 +--- a/win32/mingw.c ++++ b/win32/mingw.c +@@ -1214,11 +1214,13 @@ elevation_state(void) + return elevated | (enabled << 1); + } + ++/* + int getuid(void) + { + return elevation_state() == (ELEVATED_PRIVILEGE | ADMIN_ENABLED) ? + 0 : DEFAULT_UID; + } ++*/ + + struct passwd *getpwnam(const char *name) + { -- cgit v1.2.3-55-g6feb