From 7d57b8adf27f82d25a9d26eae6d652c9f763fdfa Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Fri, 12 Apr 2013 11:09:25 +0200 Subject: [PATCH] vfs: Convert xattr_tdb_get_file_id to synthetic_smb_fname Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- source3/modules/vfs_xattr_tdb.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/source3/modules/vfs_xattr_tdb.c b/source3/modules/vfs_xattr_tdb.c index 939be825c53..43456cf6100 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; } -- 2.34.1