From b3ccabeece7b87b798e2292542355939e7dc1faf Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Tue, 16 Jan 2001 17:48:39 +0000 Subject: Fix for no master browser present. (This used to be commit 24c78fdf5fb940b32724474241c464206b83be2f) --- source3/smbwrapper/smbw_stat.c | 7 ++++--- 1 file 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; -- cgit