From: Jeremy Allison Date: Wed, 9 Feb 2011 00:51:17 +0000 (-0800) Subject: Remove unneeded stat call. X-Git-Tag: tevent-0.9.11~814 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=65e6dea73fe6b15171dfea5c620d37bab5e77483;p=thirdparty%2Fsamba.git Remove unneeded stat call. --- diff --git a/source3/smbd/open.c b/source3/smbd/open.c index a9a12eaa0b2..2379b8ebb2e 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: