s3: VFS: vfs_streams_depot: Add a dirfsp parameter to streams_depot_rmdir_internal().
[samba.git] / source3 / modules / vfs_streams_depot.c
index 02b0fdf54149464819f972b05b66adbb07ee3e2a..7850d7a76917d8cd755e64ba2f8a02c854ddc0d5 100644 (file)
@@ -741,7 +741,8 @@ static int streams_depot_unlink_internal(vfs_handle_struct *handle,
 }
 
 static int streams_depot_rmdir_internal(vfs_handle_struct *handle,
-                               const struct smb_filename *smb_fname)
+                       struct files_struct *dirfsp,
+                       const struct smb_filename *smb_fname)
 {
        struct smb_filename *smb_fname_base = NULL;
        int ret = -1;
@@ -820,7 +821,9 @@ static int streams_depot_unlinkat(vfs_handle_struct *handle,
        int ret;
        SMB_ASSERT(dirfsp == dirfsp->conn->cwd_fsp);
        if (flags & AT_REMOVEDIR) {
-               ret = streams_depot_rmdir_internal(handle, smb_fname);
+               ret = streams_depot_rmdir_internal(handle,
+                               dirfsp,
+                               smb_fname);
        } else {
                ret = streams_depot_unlink_internal(handle,
                                dirfsp,
@@ -834,6 +837,7 @@ static int streams_depot_rmdir(vfs_handle_struct *handle,
                                const struct smb_filename *smb_fname)
 {
        return streams_depot_rmdir_internal(handle,
+                               handle->conn->cwd_fsp,
                                smb_fname);
 }