summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2011-02-08 16:51:17 -0800
committerJeremy Allison <jra@samba.org>2011-02-09 21:21:04 +0100
commit65e6dea73fe6b15171dfea5c620d37bab5e77483 (patch)
treeb0601e4c811ec8b833471173773ba735745a28c4 /source3/smbd
parentbe808123cb2b2bd050edb848bfdeaacc26ab397e (diff)
downloadsamba-65e6dea73fe6b15171dfea5c620d37bab5e77483.tar.gz
samba-65e6dea73fe6b15171dfea5c620d37bab5e77483.tar.bz2
samba-65e6dea73fe6b15171dfea5c620d37bab5e77483.zip
Remove unneeded stat call.
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/open.c13
1 files 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: