diff options
author | Andrew Tridgell <tridge@samba.org> | 2008-02-18 14:54:14 +1100 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2008-02-18 14:54:14 +1100 |
commit | 5fb241e5d33024dd7af1e7ec5cbdefbf144be6a1 (patch) | |
tree | 13fc08f8e302d9772702debe115380e71946bf4c /source4/smb_server/smb2/fileio.c | |
parent | 26b8701321909e10aac124324695f9f4891b1f8d (diff) | |
download | samba-5fb241e5d33024dd7af1e7ec5cbdefbf144be6a1.tar.gz samba-5fb241e5d33024dd7af1e7ec5cbdefbf144be6a1.tar.bz2 samba-5fb241e5d33024dd7af1e7ec5cbdefbf144be6a1.zip |
3 places where the VFS backend doesn't handle NULL strings.
(This used to be commit cf109460aff5a8437ab7eba05e4d7316a131080e)
Diffstat (limited to 'source4/smb_server/smb2/fileio.c')
-rw-r--r-- | source4/smb_server/smb2/fileio.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source4/smb_server/smb2/fileio.c b/source4/smb_server/smb2/fileio.c index 567243ba94..0e3df56b42 100644 --- a/source4/smb_server/smb2/fileio.c +++ b/source4/smb_server/smb2/fileio.c @@ -80,6 +80,11 @@ void smb2srv_create_recv(struct smb2srv_request *req) /* TODO: parse the blob */ ZERO_STRUCT(io->smb2.in.eas); + /* the VFS backend does not yet handle NULL filenames */ + if (io->smb2.in.fname == NULL) { + io->smb2.in.fname = ""; + } + SMB2SRV_CALL_NTVFS_BACKEND(ntvfs_open(req->ntvfs, io)); } |