diff options
author | Volker Lendecke <vl@samba.org> | 2013-04-12 11:31:37 +0200 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2013-04-17 14:49:59 -0700 |
commit | 1729d786928957c37062f19582c52871c12b90b6 (patch) | |
tree | 23b3d21af819c1f77bd82a0e04ad365bd1f31a62 | |
parent | 3794574bc159a0c657a1732a6c2d1b47f8166511 (diff) | |
download | samba-1729d786928957c37062f19582c52871c12b90b6.tar.gz samba-1729d786928957c37062f19582c52871c12b90b6.tar.bz2 samba-1729d786928957c37062f19582c52871c12b90b6.zip |
vfs: Convert streams_depot_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_depot.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/source3/modules/vfs_streams_depot.c b/source3/modules/vfs_streams_depot.c index 335640fd67..ab8bde5ba1 100644 --- a/source3/modules/vfs_streams_depot.c +++ b/source3/modules/vfs_streams_depot.c @@ -567,13 +567,11 @@ static int streams_depot_open(vfs_handle_struct *handle, } /* Ensure the base file still exists. */ - status = create_synthetic_smb_fname(talloc_tos(), - smb_fname->base_name, - NULL, NULL, - &smb_fname_base); - if (!NT_STATUS_IS_OK(status)) { + smb_fname_base = synthetic_smb_fname( + talloc_tos(), smb_fname->base_name, NULL, NULL); + if (smb_fname_base == NULL) { ret = -1; - errno = map_errno_from_nt_status(status); + errno = ENOMEM; goto done; } |