summaryrefslogtreecommitdiff
path: root/source3/smbd/dosmode.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-10-09 15:38:53 +0200
committerVolker Lendecke <vl@samba.org>2008-10-13 19:32:38 +0200
commitc3fedcddd5e79c60f5fcc0219752c27277a4d9f7 (patch)
tree8248641a0fbedb7d87072cfc2e852683b2da3267 /source3/smbd/dosmode.c
parent3bbe5e88e55a92a177260310daffd6deae551ba3 (diff)
downloadsamba-c3fedcddd5e79c60f5fcc0219752c27277a4d9f7.tar.gz
samba-c3fedcddd5e79c60f5fcc0219752c27277a4d9f7.tar.bz2
samba-c3fedcddd5e79c60f5fcc0219752c27277a4d9f7.zip
Pass struct smb_request to file_new
Goal is to remove the chain_fsp global variable
Diffstat (limited to 'source3/smbd/dosmode.c')
-rw-r--r--source3/smbd/dosmode.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source3/smbd/dosmode.c b/source3/smbd/dosmode.c
index 88c6a51770..a5cca53bc7 100644
--- a/source3/smbd/dosmode.c
+++ b/source3/smbd/dosmode.c
@@ -277,7 +277,8 @@ static bool set_ea_dos_attribute(connection_struct *conn, const char *path, SMB_
* are not violating security in doing the setxattr.
*/
- if (!NT_STATUS_IS_OK(open_file_fchmod(conn,path,sbuf,&fsp)))
+ if (!NT_STATUS_IS_OK(open_file_fchmod(NULL, conn, path, sbuf,
+ &fsp)))
return ret;
become_root();
if (SMB_VFS_SETXATTR(conn, path, SAMBA_XATTR_DOS_ATTRIB, attrstr, strlen(attrstr), 0) == 0) {
@@ -540,7 +541,8 @@ int file_set_dosmode(connection_struct *conn, const char *fname,
* break batch oplocks open by others. JRA.
*/
files_struct *fsp;
- if (!NT_STATUS_IS_OK(open_file_fchmod(conn,fname,st,&fsp)))
+ if (!NT_STATUS_IS_OK(open_file_fchmod(NULL, conn, fname, st,
+ &fsp)))
return -1;
become_root();
ret = SMB_VFS_FCHMOD(fsp, unixmode);