diff options
Diffstat (limited to 'src/libposixplz/mkctemp.c')
-rw-r--r-- | src/libposixplz/mkctemp.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libposixplz/mkctemp.c b/src/libposixplz/mkctemp.c index 69035fb..6cf278c 100644 --- a/src/libposixplz/mkctemp.c +++ b/src/libposixplz/mkctemp.c @@ -8,7 +8,9 @@ static int f (char const *fn, mode_t mode, void *data) { dev_t *devp = data ; + mode_t m = umask(0) ; int r = mknod(fn, (mode & 00777) | S_IFCHR, *devp) ; + umask(m) ; if (r == -1) return -1 ; r = open_readb(fn) ; if (r == -1) unlink_void(fn) ; |