diff options
author | Volker Lendecke <vl@samba.org> | 2013-04-12 11:13:32 +0200 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2013-04-17 14:49:58 -0700 |
commit | ec5ac9080b50c8a45c19ddab9069ac6e1e707809 (patch) | |
tree | fe613d1cde84f8438227e814bd3b90f64622d488 | |
parent | 7d57b8adf27f82d25a9d26eae6d652c9f763fdfa (diff) | |
download | samba-ec5ac9080b50c8a45c19ddab9069ac6e1e707809.tar.gz samba-ec5ac9080b50c8a45c19ddab9069ac6e1e707809.tar.bz2 samba-ec5ac9080b50c8a45c19ddab9069ac6e1e707809.zip |
vfs: Convert streams_xattr_fstat 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 | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/source3/modules/vfs_streams_xattr.c b/source3/modules/vfs_streams_xattr.c index 87f8f000f0..4da03deca7 100644 --- a/source3/modules/vfs_streams_xattr.c +++ b/source3/modules/vfs_streams_xattr.c @@ -194,7 +194,6 @@ static int streams_xattr_fstat(vfs_handle_struct *handle, files_struct *fsp, SMB_STRUCT_STAT *sbuf) { struct smb_filename *smb_fname_base = NULL; - NTSTATUS status; int ret = -1; struct stream_io *io = (struct stream_io *) VFS_FETCH_FSP_EXTENSION(handle, fsp); @@ -210,12 +209,10 @@ static int streams_xattr_fstat(vfs_handle_struct *handle, files_struct *fsp, } /* Create an smb_filename with stream_name == NULL. */ - status = create_synthetic_smb_fname(talloc_tos(), - io->base, - 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(), io->base, + NULL, NULL); + if (smb_fname_base == NULL) { + errno = ENOMEM; return -1; } |