diff options
author | Volker Lendecke <vl@samba.org> | 2013-04-11 15:35:02 +0200 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2013-04-17 14:49:55 -0700 |
commit | 2c733b2ffb72b972e2b176d3b32b1e5c6c1b3bad (patch) | |
tree | ab43729376e1504ac9cdad0651d3230dd2a55f03 /source3/modules/vfs_xattr_tdb.c | |
parent | e0e5953494e08849e59b570c77c286a08d7d15bd (diff) | |
download | samba-2c733b2ffb72b972e2b176d3b32b1e5c6c1b3bad.tar.gz samba-2c733b2ffb72b972e2b176d3b32b1e5c6c1b3bad.tar.xz samba-2c733b2ffb72b972e2b176d3b32b1e5c6c1b3bad.zip |
vfs: Convert xattr_tdb_unlink to cp_smb_filename
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/modules/vfs_xattr_tdb.c')
-rw-r--r-- | source3/modules/vfs_xattr_tdb.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/source3/modules/vfs_xattr_tdb.c b/source3/modules/vfs_xattr_tdb.c index c0debed1f7..939be825c5 100644 --- a/source3/modules/vfs_xattr_tdb.c +++ b/source3/modules/vfs_xattr_tdb.c @@ -347,7 +347,6 @@ static int xattr_tdb_unlink(vfs_handle_struct *handle, struct smb_filename *smb_fname_tmp = NULL; struct file_id id; struct db_context *db; - NTSTATUS status; int ret = -1; bool remove_record = false; TALLOC_CTX *frame = talloc_stackframe(); @@ -358,10 +357,10 @@ static int xattr_tdb_unlink(vfs_handle_struct *handle, TALLOC_FREE(frame); return -1; }); - status = copy_smb_filename(frame, smb_fname, &smb_fname_tmp); - if (!NT_STATUS_IS_OK(status)) { + smb_fname_tmp = cp_smb_filename(frame, smb_fname); + if (smb_fname_tmp == NULL) { TALLOC_FREE(frame); - errno = map_errno_from_nt_status(status); + errno = ENOMEM; return -1; } |