diff options
author | Volker Lendecke <vl@samba.org> | 2013-04-12 11:09:25 +0200 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2013-04-17 14:49:58 -0700 |
commit | 7d57b8adf27f82d25a9d26eae6d652c9f763fdfa (patch) | |
tree | adacf7721fab9c38527875064593de57f8f51f48 | |
parent | 9b499996c4d7bdd963f14242ee727adbe14e3aa7 (diff) | |
download | samba-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>
-rw-r--r-- | source3/modules/vfs_xattr_tdb.c | 12 |
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; } |