diff options
author | Volker Lendecke <vl@samba.org> | 2010-05-26 17:47:37 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2010-05-31 12:04:28 +0200 |
commit | 2e4c41431e18ed68f0965cdb128d67b008f81389 (patch) | |
tree | 1f7c6b830e649518509a0c7a2e13228144f3f660 /source3/param | |
parent | 82e140c04562c1480d8ae1d6cb68d510824a1a1c (diff) | |
download | samba-2e4c41431e18ed68f0965cdb128d67b008f81389.tar.gz samba-2e4c41431e18ed68f0965cdb128d67b008f81389.tar.bz2 samba-2e4c41431e18ed68f0965cdb128d67b008f81389.zip |
s3: Don't announce readraw and writeraw with the async echo responder
Diffstat (limited to 'source3/param')
-rw-r--r-- | source3/param/loadparm.c | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c index ba9d816429..2d389d4fa6 100644 --- a/source3/param/loadparm.c +++ b/source3/param/loadparm.c @@ -5569,9 +5569,9 @@ FN_GLOBAL_BOOL(lp_domain_logons, &Globals.bDomainLogons) FN_GLOBAL_LIST(lp_init_logon_delayed_hosts, &Globals.szInitLogonDelayedHosts) FN_GLOBAL_INTEGER(lp_init_logon_delay, &Globals.InitLogonDelay) FN_GLOBAL_BOOL(lp_load_printers, &Globals.bLoadPrinters) -FN_GLOBAL_BOOL(lp_readraw, &Globals.bReadRaw) +FN_GLOBAL_BOOL(_lp_readraw, &Globals.bReadRaw) FN_GLOBAL_BOOL(lp_large_readwrite, &Globals.bLargeReadwrite) -FN_GLOBAL_BOOL(lp_writeraw, &Globals.bWriteRaw) +FN_GLOBAL_BOOL(_lp_writeraw, &Globals.bWriteRaw) FN_GLOBAL_BOOL(lp_null_passwords, &Globals.bNullPasswords) FN_GLOBAL_BOOL(lp_obey_pam_restrictions, &Globals.bObeyPamRestrictions) FN_GLOBAL_BOOL(lp_encrypted_passwords, &Globals.bEncryptPasswords) @@ -10021,3 +10021,19 @@ bool lp_widelinks(int snum) return lp_widelinks_internal(snum); } + +bool lp_writeraw(void) +{ + if (lp_async_smb_echo_handler()) { + return false; + } + return _lp_writeraw(); +} + +bool lp_readraw(void) +{ + if (lp_async_smb_echo_handler()) { + return false; + } + return _lp_readraw(); +} |