1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-11 16:58:40 +03:00

s3: vfs: vfs_xattr_tdb - cleanup. Remove unneeded variable "path".

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Uri Simchoni <uri@samba.org>

Autobuild-User(master): Uri Simchoni <uri@samba.org>
Autobuild-Date(master): Tue Mar 15 11:45:19 CET 2016 on sn-devel-144
This commit is contained in:
Jeremy Allison 2016-03-11 16:07:20 -08:00 committed by Uri Simchoni
parent 6b877102db
commit e64ab0d72a

View File

@ -407,7 +407,6 @@ static int xattr_tdb_rmdir(vfs_handle_struct *handle,
struct file_id id;
struct db_context *db;
int ret;
const char *path = smb_fname->base_name;
TALLOC_CTX *frame = talloc_stackframe();
SMB_VFS_HANDLE_GET_DATA(handle, db, struct db_context,
@ -416,7 +415,9 @@ static int xattr_tdb_rmdir(vfs_handle_struct *handle,
TALLOC_FREE(frame); return -1;
});
if (vfs_stat_smb_basename(handle->conn, path, &sbuf) == -1) {
if (vfs_stat_smb_basename(handle->conn,
smb_fname->base_name,
&sbuf) == -1) {
TALLOC_FREE(frame);
return -1;
}