From 65e6dea73fe6b15171dfea5c620d37bab5e77483 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Tue, 8 Feb 2011 16:51:17 -0800 Subject: Remove unneeded stat call. --- source3/smbd/open.c | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/source3/smbd/open.c b/source3/smbd/open.c index a9a12eaa0b..2379b8ebb2 100644 --- a/source3/smbd/open.c +++ b/source3/smbd/open.c @@ -2591,16 +2591,11 @@ static NTSTATUS open_directory(connection_struct *conn, switch( create_disposition ) { case FILE_OPEN: - info = FILE_WAS_OPENED; - - /* - * We want to follow symlinks here. - */ - - if (SMB_VFS_STAT(conn, smb_dname) != 0) { - return map_nt_error_from_unix(errno); + if (!dir_existed) { + return NT_STATUS_OBJECT_NAME_NOT_FOUND; } - + + info = FILE_WAS_OPENED; break; case FILE_CREATE: -- cgit