diff options
author | 2014-05-27 19:05:08 -0500 | |
---|---|---|
committer | 2014-05-27 19:05:08 -0500 | |
commit | 14925786b55202d8147b0af719038e8a23ef73c0 (patch) | |
tree | 1210eaa5801578225cfc2ebaf870af0127c51089 | |
parent | 3ec77677c251efafc7a719c6b5c0e6e188563332 (diff) | |
download | pseudo-14925786b55202d8147b0af719038e8a23ef73c0.tar.gz pseudo-14925786b55202d8147b0af719038e8a23ef73c0.tar.bz2 pseudo-14925786b55202d8147b0af719038e8a23ef73c0.zip |
Typo fix
So it turns out that if you fix a bug inside an #ifdef that hasn't
applied to anything in years, it doesn't actually fix the bug.
-rw-r--r-- | ports/unix/guts/mkdirat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ports/unix/guts/mkdirat.c b/ports/unix/guts/mkdirat.c index dceedeb..5f80b50 100644 --- a/ports/unix/guts/mkdirat.c +++ b/ports/unix/guts/mkdirat.c @@ -6,13 +6,13 @@ * wrap_mkdirat(int dirfd, const char *path, mode_t mode) { * int rc = -1; */ + /* mask out mode bits appropriately */ + mode = mode & ~pseudo_umask; #ifdef PSEUDO_NO_REAL_AT_FUNCTIONS if (dirfd != AT_FDCWD) { errno = ENOSYS; return -1; } - /* mask out mode bits appropriately */ - mode = mode & ~pseudo_umask; rc = real_mkdir(path, PSEUDO_FS_MODE(mode, 1)); #else |