diff options
author | Andrew Tridgell <tridge@samba.org> | 1998-10-19 02:49:48 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 1998-10-19 02:49:48 +0000 |
commit | 33790c41501af0e8fdc2fbc7128cf2a42cafa087 (patch) | |
tree | 241ec9379ab711f1d57c49890c1057b2700d6886 /source3/smbwrapper/smbw.c | |
parent | 9debf0b1eeeb6766e3f8ad5b62cf41c7194e41ba (diff) | |
download | samba-33790c41501af0e8fdc2fbc7128cf2a42cafa087.tar.gz samba-33790c41501af0e8fdc2fbc7128cf2a42cafa087.tar.xz 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.c | 6 |
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; } |