s3: VFS: vfs_streams_depot: Change RMDIR -> UNLINKAT inside streams_depot_unlink_inte...
authorJeremy Allison <jra@samba.org>
Fri, 4 Oct 2019 22:40:34 +0000 (15:40 -0700)
committerRalph Boehme <slow@samba.org>
Thu, 10 Oct 2019 06:09:40 +0000 (06:09 +0000)
No logic change.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/modules/vfs_streams_depot.c

index c48513c2849de3e66ac27553caeffdac8c029bbf..0e2bfa9684de40440ff3f98447e11f3954039035 100644 (file)
@@ -729,7 +729,10 @@ static int streams_depot_unlink_internal(vfs_handle_struct *handle,
                                errno = ENOMEM;
                                return -1;
                        }
-                       SMB_VFS_NEXT_RMDIR(handle, smb_fname_dir);
+                       SMB_VFS_NEXT_UNLINKAT(handle,
+                               dirfsp,
+                               smb_fname_dir,
+                               AT_REMOVEDIR);
                        TALLOC_FREE(smb_fname_dir);
                }
                TALLOC_FREE(dirname);