The branch, master has been updated
       via  b8d0994 s4:ntvfs/posix: name->dos.attrib isn't initialized in 
pvfs_access_check_create()
      from  bc3fb24 s3:docs: fix xml of "printnotifybackchannel" parameter 
(missing closing tag)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit b8d0994627ef237fdc92bebd9c9a26f9d62764bc
Author: Stefan Metzmacher <[email protected]>
Date:   Tue Mar 22 16:34:36 2011 +0100

    s4:ntvfs/posix: name->dos.attrib isn't initialized in 
pvfs_access_check_create()
    
    That's why we have the 'container' parameter to indicate
    the caller wants to create a directory.
    
    metze
    
    Autobuild-User: Stefan Metzmacher <[email protected]>
    Autobuild-Date: Tue Mar 22 17:39:11 CET 2011 on sn-devel-104

-----------------------------------------------------------------------

Summary of changes:
 source4/ntvfs/posix/pvfs_acl.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source4/ntvfs/posix/pvfs_acl.c b/source4/ntvfs/posix/pvfs_acl.c
index addd680..67b544d 100644
--- a/source4/ntvfs/posix/pvfs_acl.c
+++ b/source4/ntvfs/posix/pvfs_acl.c
@@ -698,7 +698,7 @@ NTSTATUS pvfs_access_check_create(struct pvfs_state *pvfs,
        status = pvfs_resolve_parent(pvfs, req, name, &parent);
        NT_STATUS_NOT_OK_RETURN(status);
 
-       if (name->dos.attrib & FILE_ATTRIBUTE_DIRECTORY) {
+       if (container) {
                parent_mask = SEC_DIR_ADD_SUBDIR;
        } else {
                parent_mask = SEC_DIR_ADD_FILE;


-- 
Samba Shared Repository

Reply via email to