summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2004-10-29 21:51:36 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:05:02 -0500
commitb97145b2a65204504593592f305211b3b27c322a (patch)
tree7baf4368dd7826d745c27a4b390f64bc9c50f96e /source4
parentb17470a80d5ed6ab62ab0cc47dc291b12f72511b (diff)
downloadsamba-b97145b2a65204504593592f305211b3b27c322a.tar.gz
samba-b97145b2a65204504593592f305211b3b27c322a.tar.bz2
samba-b97145b2a65204504593592f305211b3b27c322a.zip
r3372: fixed the initial directory permissions for pvfs_mkdir()
(This used to be commit 72ddb38a7214a49548a27ef6e6b6e7b0944b01f0)
Diffstat (limited to 'source4')
-rw-r--r--source4/ntvfs/posix/pvfs_mkdir.c6
1 files changed, 3 insertions, 3 deletions
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);
}