From: Jeremy Allison Date: Fri, 13 Sep 2019 19:23:02 +0000 (-0700) Subject: s3: smbd: Change delete_all_streams() to call SMB_VFS_UNLINKAT(). X-Git-Tag: talloc-2.3.1~612 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7f7ad9bbfd65f813f59b55e043c9e75859cb71e9;p=thirdparty%2Fsamba.git 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 Reviewed-by: Ralph Boehme --- 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);