diff options
author | Volker Lendecke <vl@sernet.de> | 2007-11-29 15:38:00 +0100 |
---|---|---|
committer | Volker Lendecke <vl@sernet.de> | 2007-12-05 13:45:11 +0100 |
commit | c6cb3ed323f2762746b1cd83b468418aca652907 (patch) | |
tree | dfaee9da4ffac243aad1c6d0a3ac9b8f65d1d7b0 /source3 | |
parent | 80287d65d0ac9f88b01f8dbc926cd71ea49df29f (diff) | |
download | samba-c6cb3ed323f2762746b1cd83b468418aca652907.tar.gz samba-c6cb3ed323f2762746b1cd83b468418aca652907.tar.bz2 samba-c6cb3ed323f2762746b1cd83b468418aca652907.zip |
Tiny refactoring
(This used to be commit b79b16d637d41a356c036c6aac932e4504d2d7b0)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/smbd/nttrans.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/source3/smbd/nttrans.c b/source3/smbd/nttrans.c index d5abb372cf..353cfcd339 100644 --- a/source3/smbd/nttrans.c +++ b/source3/smbd/nttrans.c @@ -583,8 +583,7 @@ void reply_ntcreate_and_X(connection_struct *conn, * This filename is relative to a directory fid. */ char *rel_fname = NULL; - files_struct *dir_fsp = file_fsp( - SVAL(req->inbuf, smb_ntcreate_RootDirectoryFid)); + files_struct *dir_fsp = file_fsp(root_dir_fid); if(!dir_fsp) { reply_doserror(req, ERRDOS, ERRbadfid); @@ -1376,7 +1375,7 @@ static void call_nt_transact_create(connection_struct *conn, * This filename is relative to a directory fid. */ char *tmpname = NULL; - files_struct *dir_fsp = file_fsp(SVAL(params,4)); + files_struct *dir_fsp = file_fsp(root_dir_fid); if(!dir_fsp) { reply_doserror(req, ERRDOS, ERRbadfid); |