diff options
author | Volker Lendecke <vl@samba.org> | 2013-04-12 11:14:39 +0200 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2013-04-17 14:49:58 -0700 |
commit | bef6c7615c4b2af90fc44b650016f9a1947c1889 (patch) | |
tree | 8f037c4671948067ec5d403c6cffab1b17be3bac | |
parent | ec5ac9080b50c8a45c19ddab9069ac6e1e707809 (diff) | |
download | samba-bef6c7615c4b2af90fc44b650016f9a1947c1889.tar.gz samba-bef6c7615c4b2af90fc44b650016f9a1947c1889.tar.bz2 samba-bef6c7615c4b2af90fc44b650016f9a1947c1889.zip |
vfs: Convert streams_xattr_open 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_streams_xattr.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/source3/modules/vfs_streams_xattr.c b/source3/modules/vfs_streams_xattr.c index 4da03deca7..d46c61f850 100644 --- a/source3/modules/vfs_streams_xattr.c +++ b/source3/modules/vfs_streams_xattr.c @@ -394,12 +394,10 @@ static int streams_xattr_open(vfs_handle_struct *handle, } /* Create an smb_filename with stream_name == NULL. */ - status = create_synthetic_smb_fname(talloc_tos(), - smb_fname->base_name, - NULL, NULL, - &smb_fname_base); - if (!NT_STATUS_IS_OK(status)) { - errno = map_errno_from_nt_status(status); + smb_fname_base = synthetic_smb_fname( + talloc_tos(), smb_fname->base_name, NULL, NULL); + if (smb_fname_base == NULL) { + errno = ENOMEM; goto fail; } |