From: Martin Matuska Date: Fri, 14 Jul 2023 06:52:06 +0000 (+0200) Subject: Fix call to setenv() in unzip/bsdunzip.c X-Git-Tag: v3.7.0~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=996cf87addecf739ac420ad927f6250797fb6389;p=thirdparty%2Flibarchive.git Fix call to setenv() in unzip/bsdunzip.c --- diff --git a/unzip/bsdunzip.c b/unzip/bsdunzip.c index e1b9ca5aa..319e7eaa6 100644 --- a/unzip/bsdunzip.c +++ b/unzip/bsdunzip.c @@ -1116,7 +1116,7 @@ main(int argc, char *argv[]) #ifdef __GLIBC__ /* Prevent GNU getopt(3) from rearranging options. */ - setenv("POSIXLY_CORRECT", ""); + setenv("POSIXLY_CORRECT", "", 1); #endif /* * Info-ZIP's unzip(1) expects certain options to come before the