summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2008-02-18 14:54:59 +1100
committerAndrew Tridgell <tridge@samba.org>2008-02-18 14:54:59 +1100
commit10a374421bac7df15ab398bc46580be0d06d9d7d (patch)
tree82a0516805e78fe6b17824e0037e1e8e5e2e9856 /source4
parent5fb241e5d33024dd7af1e7ec5cbdefbf144be6a1 (diff)
downloadsamba-10a374421bac7df15ab398bc46580be0d06d9d7d.tar.gz
samba-10a374421bac7df15ab398bc46580be0d06d9d7d.tar.bz2
samba-10a374421bac7df15ab398bc46580be0d06d9d7d.zip
open a root handle in SMB2 should use a NULL filename, not a zero length
filename (This used to be commit a29dd708bf26440552ffa9d83332329b4c108857)
Diffstat (limited to 'source4')
-rw-r--r--source4/torture/smb2/util.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/torture/smb2/util.c b/source4/torture/smb2/util.c
index 219c2140d3..f85b1c42ff 100644
--- a/source4/torture/smb2/util.c
+++ b/source4/torture/smb2/util.c
@@ -123,6 +123,7 @@ static NTSTATUS smb2_create_complex(struct smb2_tree *tree, const char *fname,
io.in.create_disposition = NTCREATEX_DISP_CREATE;
}
+ /* it seems vista is now fussier about alignment? */
if (strchr(fname, ':') == NULL) {
/* setup some EAs */
io.in.eas.num_eas = 2;
@@ -428,7 +429,7 @@ NTSTATUS smb2_util_roothandle(struct smb2_tree *tree, struct smb2_handle *handle
io.in.create_disposition = NTCREATEX_DISP_OPEN;
io.in.share_access = NTCREATEX_SHARE_ACCESS_READ|NTCREATEX_SHARE_ACCESS_DELETE;
io.in.create_options = NTCREATEX_OPTIONS_ASYNC_ALERT;
- io.in.fname = "";
+ io.in.fname = NULL;
status = smb2_create(tree, tree, &io);
NT_STATUS_NOT_OK_RETURN(status);