summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2019-10-15 13:28:11 -0700
committerJeremy Allison <jra@samba.org>2019-11-06 19:31:00 +0000
commitb749c923373c7ccdc68ba2aed42c614e6a11d353 (patch)
tree6eaefa69866908738203d0c0157d70aa1127d476 /source3
parentb784aee40ffceae8332ff3aaa74c20539857ded6 (diff)
downloadsamba-b749c923373c7ccdc68ba2aed42c614e6a11d353.tar.gz
s3: smbd: SMB1 UNIX extensions - remove dead code.
We no longer set delete_on_fail on return from mknod. 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): Wed Nov 6 19:31:00 UTC 2019 on sn-devel-184
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/trans2.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c
index 24a1ad083de..d5000e83cb1 100644
--- a/source3/smbd/trans2.c
+++ b/source3/smbd/trans2.c
@@ -8103,7 +8103,6 @@ static NTSTATUS smb_set_file_unix_basic(connection_struct *conn,
uid_t set_owner = (uid_t)SMB_UID_NO_CHANGE;
gid_t set_grp = (uid_t)SMB_GID_NO_CHANGE;
NTSTATUS status = NT_STATUS_OK;
- bool delete_on_fail = False;
enum perm_type ptype;
files_struct *all_fsps = NULL;
bool modify_mtime = true;
@@ -8222,12 +8221,6 @@ static NTSTATUS smb_set_file_unix_basic(connection_struct *conn,
if (ret != 0) {
status = map_nt_error_from_unix(errno);
- if (delete_on_fail) {
- SMB_VFS_UNLINKAT(conn,
- conn->cwd_fsp,
- smb_fname,
- 0);
- }
return status;
}
}
@@ -8256,12 +8249,6 @@ static NTSTATUS smb_set_file_unix_basic(connection_struct *conn,
}
if (ret != 0) {
status = map_nt_error_from_unix(errno);
- if (delete_on_fail) {
- SMB_VFS_UNLINKAT(conn,
- conn->cwd_fsp,
- smb_fname,
- 0);
- }
return status;
}
}