From 125a1b50ab2532614cb7e53b2e2979666b02702f Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Fri, 18 Mar 2016 22:15:12 -0700 Subject: [PATCH] s3: vfs: vfs_acl_tdb. Remove use of vfs_stat_smb_basename(). We only need a basic STAT here. Signed-off-by: Jeremy Allison Reviewed-by: Uri Simchoni --- source3/modules/vfs_acl_tdb.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/source3/modules/vfs_acl_tdb.c b/source3/modules/vfs_acl_tdb.c index eee4d896931..e2d0cb8f7a9 100644 --- a/source3/modules/vfs_acl_tdb.c +++ b/source3/modules/vfs_acl_tdb.c @@ -341,11 +341,13 @@ static int sys_acl_set_file_tdb(vfs_handle_struct *handle, SMB_ACL_TYPE_T type, SMB_ACL_T theacl) { - SMB_STRUCT_STAT sbuf; struct db_context *db = acl_db; int ret = -1; + struct smb_filename smb_fname = { + .base_name = discard_const_p(char, path) + }; - ret = vfs_stat_smb_basename(handle->conn, path, &sbuf); + ret = SMB_VFS_STAT(handle->conn, &smb_fname); if (ret == -1) { return -1; } @@ -358,7 +360,7 @@ static int sys_acl_set_file_tdb(vfs_handle_struct *handle, return -1; } - acl_tdb_delete(handle, db, &sbuf); + acl_tdb_delete(handle, db, &smb_fname.st); return 0; } -- 2.34.1