vfs: Convert xattr_tdb_get_file_id to synthetic_smb_fname
authorVolker Lendecke <vl@samba.org>
Fri, 12 Apr 2013 09:09:25 +0000 (11:09 +0200)
committerJeremy Allison <jra@samba.org>
Wed, 17 Apr 2013 21:49:58 +0000 (14:49 -0700)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/modules/vfs_xattr_tdb.c

index 939be825c53eab38b5cbbc672843e5b748f8b0d8..43456cf61002316814f333b89569467a0f01f2da 100644 (file)
@@ -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;
        }