svn commit: samba r3372 - in branches/SAMBA_4_0/source/ntvfs/posix:
.
tridge at samba.org
tridge at samba.org
Fri Oct 29 21:51:36 GMT 2004
Author: tridge
Date: 2004-10-29 21:51:36 +0000 (Fri, 29 Oct 2004)
New Revision: 3372
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=3372
Log:
fixed the initial directory permissions for pvfs_mkdir()
Modified:
branches/SAMBA_4_0/source/ntvfs/posix/pvfs_mkdir.c
Changeset:
Modified: branches/SAMBA_4_0/source/ntvfs/posix/pvfs_mkdir.c
===================================================================
--- branches/SAMBA_4_0/source/ntvfs/posix/pvfs_mkdir.c 2004-10-29 21:51:00 UTC (rev 3371)
+++ branches/SAMBA_4_0/source/ntvfs/posix/pvfs_mkdir.c 2004-10-29 21:51:36 UTC (rev 3372)
@@ -32,6 +32,7 @@
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 @@
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);
}
More information about the samba-cvs
mailing list