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.
This commit is contained in:
W. Felix Handte 2021-04-06 11:29:28 -04:00
parent bea1b2ba70
commit da61918c75

View File

@ -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
/*-*************************************