From: Jeremy Allison Date: Fri, 14 May 2021 21:32:53 +0000 (-0700) Subject: s3: VFS: posixacl_xattr: Add posixacl_xattr_acl_delete_def_fd(). X-Git-Tag: tevent-0.11.0~856 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0d9e30a1bdb7c8c3d8e2773e0276c8477eeccc9d;p=thirdparty%2Fsamba.git s3: VFS: posixacl_xattr: Add posixacl_xattr_acl_delete_def_fd(). Signed-off-by: Jeremy Allison Reviewed-by: Noel Power --- diff --git a/source3/modules/posixacl_xattr.c b/source3/modules/posixacl_xattr.c index 6b0407b66ff..23a79929014 100644 --- a/source3/modules/posixacl_xattr.c +++ b/source3/modules/posixacl_xattr.c @@ -518,3 +518,9 @@ int posixacl_xattr_acl_delete_def_file(vfs_handle_struct *handle, return SMB_VFS_FREMOVEXATTR(smb_fname->fsp, ACL_EA_DEFAULT); } + +int posixacl_xattr_acl_delete_def_fd(vfs_handle_struct *handle, + files_struct *fsp) +{ + return SMB_VFS_FREMOVEXATTR(fsp, ACL_EA_DEFAULT); +} diff --git a/source3/modules/posixacl_xattr.h b/source3/modules/posixacl_xattr.h index 7d0fb2bb8bf..1b23d1a59e1 100644 --- a/source3/modules/posixacl_xattr.h +++ b/source3/modules/posixacl_xattr.h @@ -42,4 +42,7 @@ int posixacl_xattr_acl_set_fd(vfs_handle_struct *handle, int posixacl_xattr_acl_delete_def_file(vfs_handle_struct *handle, const struct smb_filename *smb_fname); + +int posixacl_xattr_acl_delete_def_fd(vfs_handle_struct *handle, + files_struct *fsp); #endif