diff options
author | Jeremy Allison <jra@samba.org> | 2019-09-13 12:23:02 -0700 |
---|---|---|
committer | Ralph Boehme <slow@samba.org> | 2019-09-26 17:20:48 +0000 |
commit | 7f7ad9bbfd65f813f59b55e043c9e75859cb71e9 (patch) | |
tree | 796d7186273ba907d7dc025d5eae575af16d2fb8 /source3/smbd | |
parent | 24516e78eebbb30df09f85cdeacf6d1ad2635d32 (diff) | |
download | samba-7f7ad9bbfd65f813f59b55e043c9e75859cb71e9.tar.gz |
s3: smbd: Change delete_all_streams() to call SMB_VFS_UNLINKAT().
Use conn->cwd_fsp as current fsp.
No logic change for now.
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/close.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source3/smbd/close.c b/source3/smbd/close.c index 5b29d347732..a9d570a36d4 100644 --- a/source3/smbd/close.c +++ b/source3/smbd/close.c @@ -215,7 +215,10 @@ NTSTATUS delete_all_streams(connection_struct *conn, goto fail; } - res = SMB_VFS_UNLINK(conn, smb_fname_stream); + res = SMB_VFS_UNLINKAT(conn, + conn->cwd_fsp, + smb_fname_stream, + 0); if (res == -1) { status = map_nt_error_from_unix(errno); |