summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2013-04-12 11:44:38 +0200
committerJeremy Allison <jra@samba.org>2013-04-17 14:50:00 -0700
commitbde53d8c5b6c6cee51f18bf50a1cdbe01e2e99cc (patch)
tree71497ba6133cb795dc6e57fd4388fcb59c3ad9ea
parente0866753ce23d7edb9ca14f825a01f201127f7bb (diff)
downloadsamba-bde53d8c5b6c6cee51f18bf50a1cdbe01e2e99cc.tar.gz
samba-bde53d8c5b6c6cee51f18bf50a1cdbe01e2e99cc.tar.bz2
samba-bde53d8c5b6c6cee51f18bf50a1cdbe01e2e99cc.zip
smbd: Convert check_reduced_name_with_privilege to synthetic_smb_fname
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
-rw-r--r--source3/smbd/vfs.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/source3/smbd/vfs.c b/source3/smbd/vfs.c
index 761470c454..edc10a4f97 100644
--- a/source3/smbd/vfs.c
+++ b/source3/smbd/vfs.c
@@ -1016,10 +1016,9 @@ NTSTATUS check_reduced_name_with_privilege(connection_struct *conn,
resolved_name));
/* Now check the stat value is the same. */
- status = create_synthetic_smb_fname(talloc_tos(), ".",
- NULL, NULL,
- &smb_fname_cwd);
- if (!NT_STATUS_IS_OK(status)) {
+ smb_fname_cwd = synthetic_smb_fname(talloc_tos(), ".", NULL, NULL);
+ if (smb_fname_cwd == NULL) {
+ status = NT_STATUS_NO_MEMORY;
goto err;
}