summaryrefslogtreecommitdiff
path: root/source3/smbd/reply.c
AgeCommit message (Collapse)AuthorFilesLines
2007-10-10r2575: Return correct error codes on old SEARCH call (from Samba4 torture ↵Jeremy Allison1-10/+4
tester). Jeremy. (This used to be commit fc51c97ea86bd1a86830d4ab2c6c7c4ec9fccc88)
2007-10-10r2219: Remember to count bad_components only on pathname boundaries.Jeremy Allison1-2/+2
Jeremy. (This used to be commit ee8ac9e51a0aefd41df56de4d6deac522bdee4a3)
2007-10-10r2215: I think I'm really close now. The key is to count the number ofJeremy Allison1-22/+29
bad components once you've hit one, and keep track of how many there are (going up a level removes one - maybe it needs to be ./ in order to be removed, need to check). And remember to change the error code return depending on whether you're called from ff or chkpath. Jeremy. (This used to be commit beda1aee795971fa600af65caa749694bb0dfea5)
2007-10-10r2194: Here is the efforts of much pain reproducing W2K3 pathnameJeremy Allison1-72/+82
parsing. :-(. One more check for CreateFile() needed. Jeremy. (This used to be commit 294e2021b34c806900ec65ecbf17d9038ac6229a)
2007-10-10r2150: Fix parsing of names ending in dot and a few other error returnsJeremy Allison1-16/+11
(commit to Samba4 smbtorture will exercise these fixes). Jeremy. (This used to be commit ff20dacc68c78b8d30993712366af30a64e960aa)
2007-10-10r1885: tighten the cache consistency with the ntprinters.tdb entry an the in ↵Gerald Carter1-1/+1
memory cache associated with open printer handles; also make sure that register_messages_flags() doesn't overwrite the originally registers flags (This used to be commit 540daf71d8ad189af5dd6d45aa1ce2b3d67da752)
2007-10-10r1841: Fix for #1606, can't launch dos exe's.Jeremy Allison1-2/+2
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)
2007-10-10r1665: Patch from James Peach @ SGI to stop using sendfile if it isn'tJeremy Allison1-2/+6
supported by the underlying OS. Jeremy. (This used to be commit 1b0c70cf97aa45093fe5ef866a351b47ef1a5879)
2007-10-10r1570: merging changes from 3.0.5Gerald Carter1-3/+3
(This used to be commit 430cf63b9148441bce42bfb15a8045de5da108f4)
2007-10-10r1311: Turn on sendfile for non-oplocked files. tridge provedJeremy Allison1-8/+10
this is the correct thing to do on a train in Germany :-). Turn on sendfile by default ! It's about time..... Jeremy. (This used to be commit ec614a8f7d158b57f5981c1515962aca3c3e6ef4)
2007-10-10r1255: Ensure we check attributes correctly on rename request. Gets us ↵Jeremy Allison1-6/+11
further with Samba4 RAW-RENAME test. Jeremy. (This used to be commit f17382ad8ad7211bbd34c823d88936a83dceb940)
2007-10-10r1115: Fix for #1427. Catch bad path errors at the right point. Ensure allJeremy Allison1-36/+78
our pathname parsing is consistent. Jeremy. (This used to be commit 5e8237e306f0bb0e492f10fb6487938132899384)
2007-10-10r1093: Ensure we clear any cached errors on a deferred open call soJeremy Allison1-0/+6
we don't return the wrong error code on the next packet. Jeremy. (This used to be commit c1b06deb574d7b8e746bdf0d6f0eab16848a6cc1)
2007-10-10r1085: Now it's had some proper user testing, merge in the deferred open ↵Jeremy Allison1-3/+29
fix. I'm still doing more testing, but it fixes a behaviour that we've been wrong on ever since the start of Samba. Jeremy. (This used to be commit 894cc6d16296b934c112786eec896846156aee5d)
2007-10-10r942: If using DOS error codes, we need to return ERRDOS/ERRbadpath for ↵Volker Lendecke1-1/+1
chkpth even if only the last component failed. I'm not sure if all the other cases of NT_STATUS_OBJECT_NAME_NOT_FOUND also need to be fixed, this at least helps with 'copy test1.txt test2.txt' from DOS within a subdirectory. Yes, I do have someone who needs this :-) Jeremy, could you take a look at this? Thanks, Volker (This used to be commit 3093ab100653782bd8e029170d315c68b7f271af)
2007-10-10r814: conn is 0 during ioctl (at least during smbtorture IOCTL test)Herb Lewis1-1/+3
fix smbd panic (This used to be commit 61da0bb1f6ea22df78ea7bd22a740c5868f62591)
2007-10-10r570: Remove lots of globals to handle case issues - move themJeremy Allison1-13/+10
to connection struct entries (as they should have been from the start). Jerry, once you've cut over to 3.0.4 release branch I'll add this to 3.0 also. - Jerry cut over :-). Jeremy. (This used to be commit 578a508509d21226ad3332fc54c3ab54cd8ae452)
2004-04-03Fix wildcard src with wildcard dest renames.Jeremy Allison1-1/+7
Jeremy. (This used to be commit 58b39942444e62c9d0f98c2ba6f434d74c244a2b)
2004-04-03Fix wildcard unlink.Jeremy Allison1-2/+3
Jeremy. (This used to be commit 6e9b4c57ccb385acb9feaf9f7412778474231a92)
2004-04-03Fix typo in check_path_syntax.Jeremy Allison1-1/+1
Jeremy. (This used to be commit 018db85de4f380da9f8318ab72371185bb2ac5b4)
2004-04-02Fix reply_ctemp - make compatible with w2k3.Jeremy Allison1-4/+12
Jeremy. (This used to be commit ddb40a6b1cfed9022dadc627b38d3c3938e8e6b4)
2004-04-02Fix wildcard identical rename.Jeremy Allison1-0/+8
Jeremy. (This used to be commit 610ae1126e227f45a1affa1030ee833a341a687f)
2004-04-02check_path improvements found by samba4 raw-checkpath tests.Jeremy Allison1-4/+13
Jeremy. (This used to be commit 4081f7ce514635f3500d29a73a44bff2661b76b1)
2004-04-02Added per-share parameter "store dos attributes". When set, will storeJeremy Allison1-28/+20
dos attributes in an EA. Based on an original patch from tridge, but modified somewhat to cover all cases. Jeremy. (This used to be commit ed653cd468213e0be901bc654aa3748ce5837947)
2004-03-17Remove excess logging when probing for the length of the next mb char.Jeremy Allison1-13/+17
Jeremy. (This used to be commit 6339c4690aef7692571dd4c65dd0a12d56a7ffab)
2004-03-17Change check_path_syntax() to use the new next_mb_char_size() functionJeremy Allison1-23/+13
to make it generic. Remove the mb-codepage "blacklist". Alexander, please check this fix as it reverts your blacklist changes, but I'm hoping it fixes the problem in a more generic way for all charsets. I'm not trying to trample on your (excellent!) work here, just make things more generic without special cases. Jeremy. (This used to be commit 5a9324525acc02e6bf14528679816b35929a564e)
2004-03-16Add function next_mb_char_size() that returns a size_t of the number ofJeremy Allison1-0/+1
bytes in the mb character at a pointer. Will be useful in fixing check_path_syntax() to not use a "blacklist". Also re-added my (C) to reply.c. I mean, really - I've been adding code to the file for over 10 years and I recognise many of the fuctions as mine ! :-). Jeremy. (This used to be commit d2b2a39fd2f2e06cc4aebf081876985f0b28b477)
2004-03-16Fix check_path_syntax() for multibyte encodings which have no '\' as second ↵Alexander Bokovoy1-1/+3
byte. This is intermediate fix as discussed with Jeremy until we move check_path_syntax() to UCS2 internally where all ambiguity is resolved. Please add other encodings into charcnv.c with such property.' ' (This used to be commit 2c404f6ba988d68c6f44df9409c0de319553de10)
2004-03-13First part of patch from moriyama@miraclelinux.com (MORIYAMA Masayuki) toJeremy Allison1-1/+1
fix up netbios names with mb strings. Includes reformat of libsmb/nmblib.c so it's readable. Jeremy. (This used to be commit 966e49a48c352563cdd7f75fe2768f2d6612ec7e)
2004-03-12Fix problems with very long filenames in both smbd and smbclient.Alexander Bokovoy1-10/+18
It appears that we pass filename through resolve_wildcards() as pstring and use fstring temporary buffer there. As result, a long filename in unix charset (UTF-8 by default) can easily expand over 255 bytes while Windows is able to send to us such names (e.g. Japanese name of ~190 mb chars) which we unable to process through this small fstring buffer. Tested with W2K and smbclient, Japanese and Cyrillics. (This used to be commit 83dac6571f99b854ac607d4313cc3f742c1fae2e)
2004-03-11Restore the contract on all convert_stringXX() interfaces. Add a ↵Jeremy Allison1-22/+6
"allow_bad_conv" boolean parameter that allows broken iconv conversions to work. Gets rid of the nasty errno checks in mangle_hash2 and check_path_syntax and allows correct return code checking. Jeremy. (This used to be commit 7b96765c23637613f079d37566d95d5edd511f05)
2004-03-11Fix processing of pathnames with embedded '\\' characters (0x5c) in CP932Jeremy Allison1-5/+23
character set. Because of the allowing of "broken conversions" for people who have broken iconv libraries we can't rely on the return from convert_string() to be valid - we must check errno instead. This is ripe for revisiting at some stage. I prefer adding a bool parameter to all convert_string_XX varients to specify if we will allow broken conversions or not. With "allow_broken_conversions" set to false we could then rely on the return from convert_string rather than checking errno. Jeremy. (This used to be commit 74722f28659ac369676e898fda48d3d9ab265045)
2004-03-09fix build with gcc 2.96 and --with-developerGerald Carter1-1/+1
(This used to be commit 11fc4da07f232c38e04c6443e5d0f829e16b0a18)
2004-03-08Fix assumption about following directory sep in check_path_syntax(). WeJeremy Allison1-5/+11
need to try and convert 1 byte, then 2 bytes if that fails. Fixes bug reported by Simo. Jeremy. (This used to be commit 8702d0089619c7321b93e59d35f43ef32dce7b78)
2004-03-04Fix build farm, older compilers won't let you declare variablesJim McDonough1-1/+1
right in the middle of the code. I just love catching jra on stuff like this, after all the crap I've done. :-) (This used to be commit dc7dc5175847243d821dd33c1678af1b785dfaf7)
2004-03-03Use a common function to parse all pathnames from the wire. This allowsJeremy Allison1-64/+189
much closer emulation of Win2k3 error return codes. Jeremy. (This used to be commit c9f31fafeda6ad79e590276f36e03ecd2e93f818)
2004-02-28More gentest fixes. Fix up regression in IS_NAME_VALID and renames.Jeremy Allison1-11/+30
Jeremy. (This used to be commit 367f5c3bc27aafb04f7589b3d4ac5b58189909fb)
2004-02-26Interesting fact found by IFSTEST /t LockOverlappedTest...Jeremy Allison1-1/+8
Even if it's our own lock context, we need to wait here as there may be an unlock on the way. So I removed a "&& !my_lock_ctx" from the following if statement. if ((lock_timeout != 0) && lp_blocking_locks(SNUM(conn)) && ERROR_WAS_LOCK_DENIED(status)) { Jeremy. (This used to be commit 3f35e3975f1c46daad1456bc82163acd049d7be8)
2004-02-25Fixup strange rename error case (gentest).Jeremy Allison1-1/+2
Jeremy. (This used to be commit d448fb801e175e11cfc0118325043eef836103f0)
2004-02-25More gentest fun :-). NB. I'm not fixing OpenX breakage 'cos if you lookJeremy Allison1-5/+27
at what W2K3 accepts here it's COMPLETELY BROKEN ! :-). Jeremy. (This used to be commit 5107f6ee70a9300678ccb7b3c812e23ddf795c22)
2004-02-25More gentest fixes.Jeremy Allison1-6/+17
Jeremy. (This used to be commit d34785194cbd7132fc3ca1f4d5561c2eee6009ab)
2004-02-24Ensure '.' and '..' don't match in delete requests.Jeremy Allison1-1/+4
Jeremy. (This used to be commit 1b0d54170a2e3e61fc9bdedec6b10c8b7728a395)
2004-02-24More gentest error fixups.Jeremy Allison1-0/+4
Jeremy. (This used to be commit 00f71fc8361919b87b62389ada8bd9a73f9f98b5)
2004-02-24Fixup correct timeout values for blocking lock timeouts (tested at connectathonJeremy Allison1-1/+1
by Herb). Jeremy. (This used to be commit b38b3a554221a234127c740e6432048e69b7f5a3)
2004-01-31* BUG 101: patch from j.lu@tiesse.com to set the SV_TYPE_PRINTQ_SERVER;Gerald Carter1-11/+4
* don't set the unix_ERR_XX code in mkdir_internal, let the error mapping handle it. (This used to be commit 87343fc15a385153c2205bd8bfe876504d38d9a1)
2003-10-29Fixes to check for wraps which could cause coredumps.Jeremy Allison1-4/+6
Jeremy. (This used to be commit ad06edd1bb58cc5e2c38a364b1af96a933b770af)
2003-10-16Fix buggy data_len calculation in echo. Add paranoia debug message.Jeremy Allison1-1/+5
Jeremy. (This used to be commit 5332af1124077f49e84836f5cedfbde98336b142)
2003-10-10Make us pass Samba4 lock tester (with one different error message).Jeremy Allison1-0/+3
Jeremy. (This used to be commit 7622a9dbbded8d07f976ec965adca5e92de3d2b0)
2003-10-09Match W2K insanty w.r.t. writelock and writeclose. Samba4 torture tester.Jeremy Allison1-9/+20
Jeremy. (This used to be commit c682fae16a2fa18f951c69ba29b1a576f4e27d6b)
2003-10-09At least give a message if we're returning a short read for W2K compatibility.Jeremy Allison1-2/+12
Jeremy. (This used to be commit 84c993d9cd0bc57a8b8b9aa716af1336620e2c87)