From 0f9eb25183e6ed5a2f4ec8e385bc5f985f2087e5 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Mon, 15 Apr 2013 11:15:23 +0200 Subject: smbd: Fix an error return in change_dir_owner_to_parent Signed-off-by: Volker Lendecke Reviewed-by: Richard Sharpe Autobuild-User(master): Richard Sharpe Autobuild-Date(master): Mon Apr 15 18:05:06 CEST 2013 on sn-devel-104 --- source3/smbd/open.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/smbd/open.c b/source3/smbd/open.c index be8d31b13b..1086e806fb 100644 --- a/source3/smbd/open.c +++ b/source3/smbd/open.c @@ -493,7 +493,7 @@ NTSTATUS change_dir_owner_to_parent(connection_struct *conn, status = create_synthetic_smb_fname(ctx, ".", NULL, NULL, &smb_fname_cwd); if (!NT_STATUS_IS_OK(status)) { - return status; + goto chdir; } ret = SMB_VFS_STAT(conn, smb_fname_cwd); -- cgit