[PATCH] smbd: Fix an error return in change_dir_owner_to_parent

Volker Lendecke Volker.Lendecke at SerNet.DE
Mon Apr 15 03:17:43 MDT 2013


Hi!

Found during code inspection.

Please review & push!

Thanks,

Volker

-- 
SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
phone: +49-551-370000-0, fax: +49-551-370000-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
http://www.sernet.de, mailto:kontakt at sernet.de
-------------- next part --------------
>From fa99fc896c04d57c623ecf8f4382ec386cae289c Mon Sep 17 00:00:00 2001
From: Volker Lendecke <vl at samba.org>
Date: Mon, 15 Apr 2013 11:15:23 +0200
Subject: [PATCH] smbd: Fix an error return in change_dir_owner_to_parent

Signed-off-by: Volker Lendecke <vl at samba.org>
---
 source3/smbd/open.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/source3/smbd/open.c b/source3/smbd/open.c
index 369c186..154f830 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);
-- 
1.7.3.4



More information about the samba-technical mailing list