summaryrefslogtreecommitdiffstats
path: root/source/smbwrapper/smbw_stat.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/smbwrapper/smbw_stat.c')
-rw-r--r--source/smbwrapper/smbw_stat.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/source/smbwrapper/smbw_stat.c b/source/smbwrapper/smbw_stat.c
index 6c476a8a67b..cf2d19cdf09 100644
--- a/source/smbwrapper/smbw_stat.c
+++ b/source/smbwrapper/smbw_stat.c
@@ -1,5 +1,6 @@
/*
- Unix SMB/CIFS implementation.
+ Unix SMB/Netbios implementation.
+ Version 2.0
SMB wrapper stat functions
Copyright (C) Andrew Tridgell 1998
@@ -22,6 +23,7 @@
extern int smbw_busy;
+
/*****************************************************
setup basic info in a stat structure
*******************************************************/
@@ -198,11 +200,10 @@ int smbw_stat(const char *fname, struct stat *st)
srv = smbw_server(server, share);
if (!srv) {
- /* For shares we aren't allowed to connect to, or no master
- browser found, return an empty directory */
+ /* For shares we aren't allowed to connect to, return
+ an empty directory */
- if ((server[0] && share[0] && !path[0] && errno == EACCES) ||
- (!path[0] && errno == ENOENT)) {
+ if (server[0] && share[0] && !path[0] && errno == EACCES) {
mode = aDIR | aRONLY;
smbw_setup_stat(st, path, size, mode);
goto done;