summaryrefslogtreecommitdiffstats
path: root/source/smbwrapper
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
commit24c78fdf5fb940b32724474241c464206b83be2f (patch)
tree9fd7f2be4bd91636621270f5900e69b980d869bd /source/smbwrapper
parent6d61f11788b8868e3396559307157edd1f39a84f (diff)
downloadsamba-24c78fdf5fb940b32724474241c464206b83be2f.tar.gz
samba-24c78fdf5fb940b32724474241c464206b83be2f.tar.xz
samba-24c78fdf5fb940b32724474241c464206b83be2f.zip
Fix for no master browser present.
Diffstat (limited to 'source/smbwrapper')
-rw-r--r--source/smbwrapper/smbw_stat.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/source/smbwrapper/smbw_stat.c b/source/smbwrapper/smbw_stat.c
index 926075c864f..74bf83d0dc8 100644
--- a/source/smbwrapper/smbw_stat.c
+++ b/source/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;