summaryrefslogtreecommitdiffstats
path: root/source3/smbd
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2014-05-01 11:11:20 -0700
committerJeremy Allison <jra@samba.org>2014-05-02 23:47:38 +0200
commitffaa2849e5afc573c4b0d82086b233f4675bed85 (patch)
tree73cd4dfa7d3c33dc40f123eab5df9de0beeeb66f /source3/smbd
parente6e40842d15850de35d00d5138fcaac858e37adc (diff)
downloadsamba-ffaa2849e5afc573c4b0d82086b233f4675bed85.tar.gz
samba-ffaa2849e5afc573c4b0d82086b233f4675bed85.tar.xz
samba-ffaa2849e5afc573c4b0d82086b233f4675bed85.zip
s3: smbd: Remove open_file_fchmod().
No longer used (hurrah!). Bug 10564 - Lock order violation and file lost https://bugzilla.samba.org/show_bug.cgi?id=10564 Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Fri May 2 23:47:38 CEST 2014 on sn-devel-104
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/open.c33
-rw-r--r--source3/smbd/proto.h3
2 files changed, 0 insertions, 36 deletions
diff --git a/source3/smbd/open.c b/source3/smbd/open.c
index 585d6c9a739..a8c6d24a6fa 100644
--- a/source3/smbd/open.c
+++ b/source3/smbd/open.c
@@ -2870,39 +2870,6 @@ static NTSTATUS open_file_ntcreate(connection_struct *conn,
return NT_STATUS_OK;
}
-
-/****************************************************************************
- Open a file for for write to ensure that we can fchmod it.
-****************************************************************************/
-
-NTSTATUS open_file_fchmod(connection_struct *conn,
- struct smb_filename *smb_fname,
- files_struct **result)
-{
- if (!VALID_STAT(smb_fname->st)) {
- return NT_STATUS_INVALID_PARAMETER;
- }
-
- return SMB_VFS_CREATE_FILE(
- conn, /* conn */
- NULL, /* req */
- 0, /* root_dir_fid */
- smb_fname, /* fname */
- FILE_WRITE_DATA, /* access_mask */
- (FILE_SHARE_READ | FILE_SHARE_WRITE | /* share_access */
- FILE_SHARE_DELETE),
- FILE_OPEN, /* create_disposition*/
- 0, /* create_options */
- 0, /* file_attributes */
- INTERNAL_OPEN_ONLY, /* oplock_request */
- 0, /* allocation_size */
- 0, /* private_flags */
- NULL, /* sd */
- NULL, /* ea_list */
- result, /* result */
- NULL); /* pinfo */
-}
-
static NTSTATUS mkdir_internal(connection_struct *conn,
struct smb_filename *smb_dname,
uint32 file_attributes)
diff --git a/source3/smbd/proto.h b/source3/smbd/proto.h
index bc15f159ab5..f5988166403 100644
--- a/source3/smbd/proto.h
+++ b/source3/smbd/proto.h
@@ -621,9 +621,6 @@ NTSTATUS change_dir_owner_to_parent(connection_struct *conn,
SMB_STRUCT_STAT *psbuf);
bool is_stat_open(uint32 access_mask);
bool is_deferred_open_async(const void *ptr);
-NTSTATUS open_file_fchmod(connection_struct *conn,
- struct smb_filename *smb_fname,
- files_struct **result);
NTSTATUS create_directory(connection_struct *conn, struct smb_request *req,
struct smb_filename *smb_dname);
void msg_file_was_renamed(struct messaging_context *msg,