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:
+3
-2
@@ -74,11 +74,12 @@
|
|||||||
|
|
||||||
#define FNSPACE 30
|
#define FNSPACE 30
|
||||||
|
|
||||||
#if !defined(_WIN32)
|
|
||||||
/* Default file permissions 0666 (modulated by umask) */
|
/* 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)
|
#define DEFAULT_FILE_PERMISSIONS (S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH)
|
||||||
#else
|
#else
|
||||||
#define DEFAULT_FILE_PERMISSIONS (0)
|
#define DEFAULT_FILE_PERMISSIONS (0666)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*-*************************************
|
/*-*************************************
|
||||||
|
|||||||
Reference in New Issue
Block a user