diff options
author | Eli Zaretskii <[email protected]> | 2013-12-30 19:51:28 +0200 |
---|---|---|
committer | Eli Zaretskii <[email protected]> | 2013-12-30 19:51:28 +0200 |
commit | 1b7259fce2719182e2b557682e40d02807784d1f (patch) | |
tree | cd1def24ee0db4b44e5261af4731f0ecea187d14 /nt | |
parent | 634425957a55b272b0e06a617c725766e1ae0ee9 (diff) |
Fix bug #16299 with assertion violation in set-default-file-modes on Windows.
src/w32.c (sys_umask): New function.
nt/inc/ms-w32.h (umask) [emacs]: Redirect to sys_umask.
Diffstat (limited to 'nt')
-rw-r--r-- | nt/ChangeLog | 4 | ||||
-rw-r--r-- | nt/inc/ms-w32.h | 4 |
2 files changed, 7 insertions, 1 deletions
diff --git a/nt/ChangeLog b/nt/ChangeLog index feaf2cd783..8eb601d4e3 100644 --- a/nt/ChangeLog +++ b/nt/ChangeLog @@ -1,3 +1,7 @@ +2013-12-30 Eli Zaretskii <[email protected]> + + * inc/ms-w32.h (umask) [emacs]: Redirect to sys_umask. (Bug#16299) + 2013-12-23 Eli Zaretskii <[email protected]> * README.W32: diff --git a/nt/inc/ms-w32.h b/nt/inc/ms-w32.h index bcccebc13a..735f9a6532 100644 --- a/nt/inc/ms-w32.h +++ b/nt/inc/ms-w32.h @@ -235,6 +235,9 @@ extern struct tm * sys_localtime (const time_t *); extern int sys_unlink (const char *); #undef write #define write sys_write +#undef umask +#define umask sys_umask +extern int sys_umask (int); /* Subprocess calls that are emulated. */ #define spawnve sys_spawnve @@ -276,7 +279,6 @@ typedef int pid_t; #define lseek _lseek #define popen _popen #define pclose _pclose -#define umask _umask #define strdup _strdup #define strupr _strupr #define strnicmp _strnicmp |