git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9290510
)
s3: VFS: vfs_acl_common: Change acl_common_remove_object() to use UNLINKAT instead...
author
Jeremy Allison
<jra@samba.org>
Fri, 4 Oct 2019 21:25:00 +0000
(14:25 -0700)
committer
Ralph Boehme
<slow@samba.org>
Thu, 10 Oct 2019 06:09:39 +0000
(06:09 +0000)
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/modules/vfs_acl_common.c
patch
|
blob
|
history
diff --git
a/source3/modules/vfs_acl_common.c
b/source3/modules/vfs_acl_common.c
index 6ddb983964e53fa6a5b63c999fdb3d9b257b6b81..b583ee571a1e7d24b2cdff071a2f96883c938f3b 100644
(file)
--- a/
source3/modules/vfs_acl_common.c
+++ b/
source3/modules/vfs_acl_common.c
@@
-1155,7
+1155,10
@@
static int acl_common_remove_object(vfs_handle_struct *handle,
become_root();
if (is_directory) {
- ret = SMB_VFS_NEXT_RMDIR(handle, &local_fname);
+ ret = SMB_VFS_NEXT_UNLINKAT(handle,
+ conn->cwd_fsp,
+ &local_fname,
+ AT_REMOVEDIR);
} else {
ret = SMB_VFS_NEXT_UNLINKAT(handle,
conn->cwd_fsp,