]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Update untar.c 1170/head
authorJairo <kidandcat@gmail.com>
Sun, 6 Feb 2022 23:13:18 +0000 (00:13 +0100)
committerGitHub <noreply@github.com>
Sun, 6 Feb 2022 23:13:18 +0000 (00:13 +0100)
contrib/untar.c

index e4d3a3fbab95ea5ef8e3fe6051de158eeaade8ff..4d10c26417421424aaab3288e369a57a17905f08 100644 (file)
@@ -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);