summaryrefslogtreecommitdiff
path: root/source3/smbwrapper/smbw.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1998-10-19 02:49:48 +0000
committerAndrew Tridgell <tridge@samba.org>1998-10-19 02:49:48 +0000
commit33790c41501af0e8fdc2fbc7128cf2a42cafa087 (patch)
tree241ec9379ab711f1d57c49890c1057b2700d6886 /source3/smbwrapper/smbw.c
parent9debf0b1eeeb6766e3f8ad5b62cf41c7194e41ba (diff)
downloadsamba-33790c41501af0e8fdc2fbc7128cf2a42cafa087.tar.gz
samba-33790c41501af0e8fdc2fbc7128cf2a42cafa087.tar.bz2
samba-33790c41501af0e8fdc2fbc7128cf2a42cafa087.zip
added command line options to smbsh
(This used to be commit 9b249c075e53e6cf75399d60a6371648c03104fa)
Diffstat (limited to 'source3/smbwrapper/smbw.c')
-rw-r--r--source3/smbwrapper/smbw.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/smbwrapper/smbw.c b/source3/smbwrapper/smbw.c
index 7ddc46ca9b..4528518076 100644
--- a/source3/smbwrapper/smbw.c
+++ b/source3/smbwrapper/smbw.c
@@ -85,6 +85,10 @@ void smbw_init(void)
DEBUGLEVEL = atoi(p);
}
+ if ((p=smbw_getshared("RESOLVE_ORDER"))) {
+ lp_set_name_resolve_order(p);
+ }
+
if ((p=smbw_getshared("PREFIX"))) {
slprintf(smbw_prefix,sizeof(fstring)-1, "/%s/", p);
string_sub(smbw_prefix,"//", "/");
@@ -102,6 +106,8 @@ void smbw_init(void)
set_maxfiles(SMBW_MAX_OPEN);
+ BlockSignals(True,SIGPIPE);
+
errno = eno;
}