be friendlier in smb2_deltree to some of the SMB2 implementations that
authorAndrew Tridgell <tridge@samba.org>
Thu, 25 Sep 2008 00:19:36 +0000 (17:19 -0700)
committerAndrew Tridgell <tridge@samba.org>
Thu, 25 Sep 2008 01:10:22 +0000 (18:10 -0700)
don't handle SEC_FLAG_MAXIMUM_ALLOWED

source4/libcli/smb2/util.c

index b149b3d6cec3a19a5a65ac228352ea95da1307d8..a360d8fbdff3c357946dd6cb240659ce3da8f4dd 100644 (file)
@@ -138,7 +138,7 @@ int smb2_deltree(struct smb2_tree *tree, const char *dname)
        }
 
        ZERO_STRUCT(create_parm);
-       create_parm.in.desired_access = SEC_FLAG_MAXIMUM_ALLOWED;
+       create_parm.in.desired_access = SEC_FILE_READ_DATA;
        create_parm.in.share_access = 
                NTCREATEX_SHARE_ACCESS_READ|
                NTCREATEX_SHARE_ACCESS_WRITE;