From: W. Felix Handte Date: Tue, 6 Apr 2021 15:29:28 +0000 (-0400) Subject: Also Pass Mode Bits in on Windows X-Git-Tag: v1.5.0^2~35^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=da61918c75bf2eb4519e3f12d21daebac5ba3311;p=thirdparty%2Fzstd.git Also Pass Mode Bits in on Windows I think in some unix emulation environments on Windows, (cygwin?) mode bits are somehow respected. So we might as well pass them in. Can't hurt. --- diff --git a/programs/fileio.c b/programs/fileio.c index 2b74feb85..5d7d40ddc 100644 --- a/programs/fileio.c +++ b/programs/fileio.c @@ -74,11 +74,12 @@ #define FNSPACE 30 -#if !defined(_WIN32) /* Default file permissions 0666 (modulated by umask) */ +#if !defined(_WIN32) +/* These macros aren't defined on windows. */ #define DEFAULT_FILE_PERMISSIONS (S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH) #else -#define DEFAULT_FILE_PERMISSIONS (0) +#define DEFAULT_FILE_PERMISSIONS (0666) #endif /*-*************************************