summaryrefslogtreecommitdiff
path: root/source3/smbwrapper
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2001-02-20 10:13:48 +0000
committerAndrew Tridgell <tridge@samba.org>2001-02-20 10:13:48 +0000
commit751ba9d0510a29d9a2dd1eafa5abb45e817c99fe (patch)
tree228a725ef7434b942ab9d140842e6c5606bff2dc /source3/smbwrapper
parentabfb84772c6fea65ed4ac8783cbd2b15ffa7d2f3 (diff)
downloadsamba-751ba9d0510a29d9a2dd1eafa5abb45e817c99fe.tar.gz
samba-751ba9d0510a29d9a2dd1eafa5abb45e817c99fe.tar.bz2
samba-751ba9d0510a29d9a2dd1eafa5abb45e817c99fe.zip
setup workgroup when found
(This used to be commit 33aefc76e8594196e09094f65e5aa0bbfe47f357)
Diffstat (limited to 'source3/smbwrapper')
-rw-r--r--source3/smbwrapper/smbw.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/smbwrapper/smbw.c b/source3/smbwrapper/smbw.c
index 91009af1c5..7ee2d9af26 100644
--- a/source3/smbwrapper/smbw.c
+++ b/source3/smbwrapper/smbw.c
@@ -281,6 +281,7 @@ static char *smbw_find_workgroup(void)
if (name_status_find(0x1d, ip_list[i], name)) {
slprintf(server, sizeof(server), "%s#1D", name);
if (smbw_server(server, "IPC$")) {
+ smbw_setshared("WORKGROUP", name);
free(ip_list);
return name;
}