diff options
author | Jeremy Allison <jra@samba.org> | 2016-03-18 22:15:12 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2016-03-24 22:57:17 +0100 |
commit | 125a1b50ab2532614cb7e53b2e2979666b02702f (patch) | |
tree | 37c08cbf54982f861f4f807a7778fe94e5b0e208 | |
parent | f9dc02266c799d87f1dba7147f41b6946e0ba4c0 (diff) | |
download | samba-125a1b50ab2532614cb7e53b2e2979666b02702f.tar.gz |
s3: vfs: vfs_acl_tdb. Remove use of vfs_stat_smb_basename().
We only need a basic STAT here.
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Uri Simchoni <uri@samba.org>
-rw-r--r-- | source3/modules/vfs_acl_tdb.c | 8 |
1 files 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; } |