summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2001-01-16 17:48:39 +0000
committerTim Potter <tpot@samba.org>2001-01-16 17:48:39 +0000
commitb3ccabeece7b87b798e2292542355939e7dc1faf (patch)
tree164b6a30254daa62666539f9ce96f6ad0a9ee0c5
parent4673a9918756786c08f34d9030ca1920d3439a9d (diff)
downloadsamba-b3ccabeece7b87b798e2292542355939e7dc1faf.tar.gz
samba-b3ccabeece7b87b798e2292542355939e7dc1faf.tar.bz2
samba-b3ccabeece7b87b798e2292542355939e7dc1faf.zip
Fix for no master browser present.
(This used to be commit 24c78fdf5fb940b32724474241c464206b83be2f)
-rw-r--r--source3/smbwrapper/smbw_stat.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/source3/smbwrapper/smbw_stat.c b/source3/smbwrapper/smbw_stat.c
index 926075c864..74bf83d0dc 100644
--- a/source3/smbwrapper/smbw_stat.c
+++ b/source3/smbwrapper/smbw_stat.c
@@ -202,10 +202,11 @@ 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, return
- an empty directory */
+ /* For shares we aren't allowed to connect to, or no master
+ browser found, return an empty directory */
- if (server[0] && share[0] && !path[0] && errno == EACCES) {
+ if ((server[0] && share[0] && !path[0] && errno == EACCES) ||
+ (!path[0] && errno == ENOENT)) {
mode = aDIR | aRONLY;
smbw_setup_stat(st, path, size, mode);
goto done;