From: Jairo Date: Sun, 6 Feb 2022 23:13:18 +0000 (+0100) Subject: Update untar.c X-Git-Tag: v3.6.0~11^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F1170%2Fhead;p=thirdparty%2Flibarchive.git Update untar.c --- diff --git a/contrib/untar.c b/contrib/untar.c index e4d3a3fba..4d10c2641 100644 --- a/contrib/untar.c +++ b/contrib/untar.c @@ -82,7 +82,7 @@ create_dir(char *pathname, int mode) pathname[strlen(pathname) - 1] = '\0'; /* Try creating the directory. */ - #if defined(_WIN32) + #if defined(_WIN32) && !defined(__CYGWIN__) r = _mkdir(pathname); #else r = mkdir(pathname, mode); @@ -95,7 +95,7 @@ create_dir(char *pathname, int mode) *p = '\0'; create_dir(pathname, 0755); *p = '/'; - #if defined(_WIN32) + #if defined(_WIN32) && !defined(__CYGWIN__) r = _mkdir(pathname); #else r = mkdir(pathname, mode);