diff options
author | Jeremy Allison <jra@samba.org> | 2004-08-16 21:27:26 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 10:52:21 -0500 |
commit | f17922d537213fe1d15cebcd78a8df4068801e7f (patch) | |
tree | eac2e66bc2d4099f08fb68fe8190f031d3e72bd8 /source3/param | |
parent | cc72b666ed93556a2413055f161e67437024a320 (diff) | |
download | samba-f17922d537213fe1d15cebcd78a8df4068801e7f.tar.gz samba-f17922d537213fe1d15cebcd78a8df4068801e7f.tar.bz2 samba-f17922d537213fe1d15cebcd78a8df4068801e7f.zip |
r1841: Fix for #1606, can't launch dos exe's.
2 related problems - 1). DOS uses chained commands - when we
are replying with sendfile we neglect to send the chained header. 2). Win9x and
DOS TCP stacks blow up when getting data back from a Linux sendfile - "The
engines canna take the strain cap'n". Don't use sendfile for anything less than NT1.
Jeremy.
(This used to be commit 3cd88f48afa589a189bb728d2d2660d058203d4d)
Diffstat (limited to 'source3/param')
-rw-r--r-- | source3/param/loadparm.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c index 4150f57e55..2750cc7eda 100644 --- a/source3/param/loadparm.c +++ b/source3/param/loadparm.c @@ -4320,6 +4320,11 @@ int lp_maxprintjobs(int snum) BOOL lp_use_sendfile(int snum) { + extern int Protocol; + /* Using sendfile blows the brains out of any DOS or Win9x TCP stack... JRA. */ + if (Protocol < PROTOCOL_NT1) { + return False; + } return (_lp_use_sendfile(snum) && (get_remote_arch() != RA_WIN95) && !srv_is_signing_active()); } |