summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2012-02-14 17:37:09 +0100
committerVolker Lendecke <vl@samba.org>2012-02-14 19:14:29 +0100
commit740d4d75500ac1ac224deb67cb3f20a21addb64b (patch)
tree077fe4f6a799c3c590693ccf07206001a84cba7c /source3/smbd
parent4d58d0fa8f936e7efdc02e31c053d42a47b3e62a (diff)
downloadsamba-740d4d75500ac1ac224deb67cb3f20a21addb64b.tar.gz
samba-740d4d75500ac1ac224deb67cb3f20a21addb64b.tar.bz2
samba-740d4d75500ac1ac224deb67cb3f20a21addb64b.zip
s3: files_struct->mode is only written, remove it
Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Tue Feb 14 19:14:29 CET 2012 on sn-devel-104
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/files.c1
-rw-r--r--source3/smbd/open.c2
2 files changed, 0 insertions, 3 deletions
diff --git a/source3/smbd/files.c b/source3/smbd/files.c
index 66ccb288da..4a8967e964 100644
--- a/source3/smbd/files.c
+++ b/source3/smbd/files.c
@@ -565,7 +565,6 @@ NTSTATUS dup_file_fsp(struct smb_request *req, files_struct *from,
to->file_id = from->file_id;
to->initial_allocation_size = from->initial_allocation_size;
- to->mode = from->mode;
to->file_pid = from->file_pid;
to->vuid = from->vuid;
to->open_time = from->open_time;
diff --git a/source3/smbd/open.c b/source3/smbd/open.c
index a94a02eb46..daa9bb9188 100644
--- a/source3/smbd/open.c
+++ b/source3/smbd/open.c
@@ -779,7 +779,6 @@ static NTSTATUS open_file(files_struct *fsp,
return NT_STATUS_FILE_IS_A_DIRECTORY;
}
- fsp->mode = smb_fname->st.st_ex_mode;
fsp->file_id = vfs_file_id_from_sbuf(conn, &smb_fname->st);
fsp->vuid = req ? req->vuid : UID_FIELD_INVALID;
fsp->file_pid = req ? req->smbpid : 0;
@@ -2819,7 +2818,6 @@ static NTSTATUS open_directory(connection_struct *conn,
* Setup the files_struct for it.
*/
- fsp->mode = smb_dname->st.st_ex_mode;
fsp->file_id = vfs_file_id_from_sbuf(conn, &smb_dname->st);
fsp->vuid = req ? req->vuid : UID_FIELD_INVALID;
fsp->file_pid = req ? req->smbpid : 0;