summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2013-04-12 11:46:15 +0200
committerJeremy Allison <jra@samba.org>2013-04-17 14:50:00 -0700
commit9041f3d6d3bf9ff068687402b6275004b8c18e95 (patch)
tree579652703020fd55c77b20fc0110cafe9cbefd7d /source3
parentbde53d8c5b6c6cee51f18bf50a1cdbe01e2e99cc (diff)
downloadsamba-9041f3d6d3bf9ff068687402b6275004b8c18e95.tar.gz
samba-9041f3d6d3bf9ff068687402b6275004b8c18e95.tar.bz2
samba-9041f3d6d3bf9ff068687402b6275004b8c18e95.zip
smbd: Convert vfs_stat_smb_fname to synthetic_smb_fname
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/vfs.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/source3/smbd/vfs.c b/source3/smbd/vfs.c
index edc10a4f97..19a2788ffa 100644
--- a/source3/smbd/vfs.c
+++ b/source3/smbd/vfs.c
@@ -1254,14 +1254,12 @@ NTSTATUS check_reduced_name(connection_struct *conn, const char *fname)
int vfs_stat_smb_fname(struct connection_struct *conn, const char *fname,
SMB_STRUCT_STAT *psbuf)
{
- struct smb_filename *smb_fname = NULL;
- NTSTATUS status;
+ struct smb_filename *smb_fname;
int ret;
- status = create_synthetic_smb_fname_split(talloc_tos(), fname, NULL,
- &smb_fname);
- if (!NT_STATUS_IS_OK(status)) {
- errno = map_errno_from_nt_status(status);
+ smb_fname = synthetic_smb_fname_split(talloc_tos(), fname, NULL);
+ if (smb_fname == NULL) {
+ errno = ENOMEM;
return -1;
}