]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: smbd: Change delete_all_streams() to call SMB_VFS_UNLINKAT().
authorJeremy Allison <jra@samba.org>
Fri, 13 Sep 2019 19:23:02 +0000 (12:23 -0700)
committerRalph Boehme <slow@samba.org>
Thu, 26 Sep 2019 17:20:48 +0000 (17:20 +0000)
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>
source3/smbd/close.c

index 5b29d3477327b09581b3371930f27fc5153d2cdf..a9d570a36d4ffb7ddb05b71216f798af7b3e2452 100644 (file)
@@ -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);