summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2013-04-12 11:09:25 +0200
committerJeremy Allison <jra@samba.org>2013-04-17 14:49:58 -0700
commit7d57b8adf27f82d25a9d26eae6d652c9f763fdfa (patch)
treeadacf7721fab9c38527875064593de57f8f51f48 /source3
parent9b499996c4d7bdd963f14242ee727adbe14e3aa7 (diff)
downloadsamba-7d57b8adf27f82d25a9d26eae6d652c9f763fdfa.tar.gz
samba-7d57b8adf27f82d25a9d26eae6d652c9f763fdfa.tar.bz2
samba-7d57b8adf27f82d25a9d26eae6d652c9f763fdfa.zip
vfs: Convert xattr_tdb_get_file_id to synthetic_smb_fname
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3')
-rw-r--r--source3/modules/vfs_xattr_tdb.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/source3/modules/vfs_xattr_tdb.c b/source3/modules/vfs_xattr_tdb.c
index 939be825c5..43456cf610 100644
--- a/source3/modules/vfs_xattr_tdb.c
+++ b/source3/modules/vfs_xattr_tdb.c
@@ -35,12 +35,12 @@ static int xattr_tdb_get_file_id(struct vfs_handle_struct *handle,
{
int ret;
TALLOC_CTX *frame = talloc_stackframe();
- struct smb_filename *smb_fname = NULL;
- NTSTATUS status = create_synthetic_smb_fname_split(frame, path, NULL,
- &smb_fname);
- if (!NT_STATUS_IS_OK(status)) {
- errno = map_errno_from_nt_status(status);
- TALLOC_FREE(frame);
+ struct smb_filename *smb_fname;
+
+ smb_fname = synthetic_smb_fname_split(frame, path, NULL);
+ if (smb_fname == NULL) {
+ TALLOC_FREE(frame);
+ errno = ENOMEM;
return -1;
}