From b97145b2a65204504593592f305211b3b27c322a Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 29 Oct 2004 21:51:36 +0000 Subject: r3372: fixed the initial directory permissions for pvfs_mkdir() (This used to be commit 72ddb38a7214a49548a27ef6e6b6e7b0944b01f0) --- source4/ntvfs/posix/pvfs_mkdir.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source4') diff --git a/source4/ntvfs/posix/pvfs_mkdir.c b/source4/ntvfs/posix/pvfs_mkdir.c index d7dcc7dd50..73e778016c 100644 --- a/source4/ntvfs/posix/pvfs_mkdir.c +++ b/source4/ntvfs/posix/pvfs_mkdir.c @@ -32,6 +32,7 @@ NTSTATUS pvfs_mkdir(struct ntvfs_module_context *ntvfs, struct pvfs_state *pvfs = ntvfs->private_data; NTSTATUS status; struct pvfs_filename *name; + mode_t mode; if (md->generic.level != RAW_MKDIR_MKDIR) { return NT_STATUS_INVALID_LEVEL; @@ -48,10 +49,9 @@ NTSTATUS pvfs_mkdir(struct ntvfs_module_context *ntvfs, return NT_STATUS_OBJECT_NAME_COLLISION; } - /* TODO: this is a temporary implementation to allow other - tests to run */ + mode = pvfs_fileperms(pvfs, FILE_ATTRIBUTE_DIRECTORY); - if (mkdir(name->full_name, 0777) == -1) { + if (mkdir(name->full_name, mode) == -1) { return pvfs_map_errno(pvfs, errno); } -- cgit