diff options
Diffstat (limited to 'ports/unix/guts/mkfifoat.c')
-rw-r--r-- | ports/unix/guts/mkfifoat.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ports/unix/guts/mkfifoat.c b/ports/unix/guts/mkfifoat.c index 4101a72..4546ba3 100644 --- a/ports/unix/guts/mkfifoat.c +++ b/ports/unix/guts/mkfifoat.c @@ -34,12 +34,14 @@ return -1; } rc = base_stat(path, &buf); + real_chmod(path, PSEUDO_FS_MODE(mode, 0)); #else rc = real_mkfifoat(dirfd, path, PSEUDO_FS_MODE(mode, 0)); if (rc == -1) { return -1; } rc = base_fstatat(dirfd, path, &buf, AT_SYMLINK_NOFOLLOW); + real_fchmodat(dirfd, path, PSEUDO_FS_MODE(mode, 0), AT_SYMLINK_NOFOLLOW); #endif /* if the stat failed, we are going to give up and nuke * any file we may have created, and hope for the best. |