summaryrefslogtreecommitdiff
path: root/source3/smbd/reply.c
AgeCommit message (Collapse)AuthorFilesLines
2007-10-10r5324: In order to process DELETE_ACCESS correctly and return access deniedJeremy Allison1-7/+11
to a WXPSP2 client we must do permission checking in userspace first (this is a race condition but what can you do...). Needed for bugid #2227. Jeremy. (This used to be commit da23577f162b6bdca7d631fca256a9b3b04043e4)
2007-10-10r5160: First cut at refactoring of directory code to handle non-wildcardJeremy Allison1-6/+24
directory match more efficiently. Passes RAW-SEARCH under valgrind but needs more testing (which I'll do later today :-). Jeremy. (This used to be commit 0b04dd9d0c6d1fe02d1b5e43f203577bf5466f33)
2007-10-10r5154: Tidy up interface a little.Jeremy Allison1-1/+4
Jeremy. (This used to be commit a38eeb765f4c744ca7bf0aca86bb448240ad295d)
2007-10-10r5152: Restructure the directory handling code, stop using void * pointersJeremy Allison1-29/+28
that just allow the wrong pointer to be assigned :-) and make the interface more consistent. Fix the FreeBSD directory problem. Last thing to do is to add the "singleton" directory concept from James Peach's code. Jeremy. (This used to be commit cfa8150fd9932470cb8f3b5e14c0156dda67125d)
2007-10-10r5100: We should only care about case-sensitivity when *reading* an incomingJeremy Allison1-2/+2
filename, not returning one. Makes us pass one more Samba4 RAW-SEARCH test. Jeremy. (This used to be commit 228d1e1649a0b4952eb5603cb5e1851cdc8f0c72)
2007-10-10r5098: Next round build-fixingVolker Lendecke1-1/+1
(This used to be commit 175ec3ed518704920c7c55b050ec1cc00da7f560)
2007-10-10r5069: Ensure we return the correct errors for old-style search requests.Jeremy Allison1-6/+9
Jeremy. (This used to be commit ef73dfe0d6c3b7f71109e32115d528ecdbe562ea)
2007-10-10r5063: Shamelessly steal the Samba4 logic (and some code :-) for directoryJeremy Allison1-8/+12
evaluation. This stops us from reading the entire directory into memory at one go, and allows partial reads. It also keeps almost the same interface to the OpenDir/ReadDir etc. code (sorry James :-). Next I will optimise the findfirst with exact match code. This speeds up our interactive response for large directories, but not when a missing (ie. negative) findfirst is done. Jeremy (This used to be commit 0af1d2f6f24f238cb05e10d7d53dcd5b5e0f5f5d)
2007-10-10r4295: Don't include header len in data write debug.Jeremy Allison1-1/+1
Jeremy. (This used to be commit 473babfecac87a7e1068246bddc171a464be59e5)
2007-10-10r4293: Fix inspired by debug trace from Rob Foehl <rwf@loonybin.net> - catch ↵Jeremy Allison1-2/+20
sendfile errors correctly and return the correct values we want the caller to return (-1 meaning none in correct cases). Jeremy. (This used to be commit 139c1c3488237d710ceda394c028b8dc9007bff1)
2007-10-10r4212: Ensure we only look at the bottom bit of large_readx.Jeremy Allison1-1/+3
Set the 14 word version of write if size > 0xffff as well as 64-bit offset. Jeremy. (This used to be commit 94779ccb39560bf5eecab77d70f1fa04bfcf1456)
2007-10-10r4190: When changing length calculations, get them right......Jeremy Allison1-2/+3
Jeremy. (This used to be commit 63cfa904ad186bb9d793584d319bd4a7107cc8b9)
2007-10-10r4186: Fix client & server to allow 127k READX calls.Jeremy Allison1-0/+3
Jeremy. (This used to be commit 831cb21a874601e4536c2cf76c5351e1d0defcb5)
2007-10-10r4143: Make strict locking an enum. Auto means use oplock optimization.Jeremy Allison1-1/+1
Jeremy. (This used to be commit 0dd4adeae2042d0ea64398a78b3f48eb0150c133)
2007-10-10r4108: As check_self is *always* False in every invokation, remove theJeremy Allison1-11/+10
logic for it. We still pass Samba4 RAW-LOCK test. Jeremy. (This used to be commit 596f23051363f8cc8896119b3eca0663a61a38c3)
2007-10-10r4088: Get medieval on our ass about malloc.... :-). Take control of all our ↵Jeremy Allison1-2/+2
allocation functions so we can funnel through some well known functions. Should help greatly with malloc checking. HEAD patch to follow. Jeremy. (This used to be commit 620f2e608f70ba92f032720c031283d295c5c06a)
2007-10-10r4018: * move claim_connection from the netbios session requestGerald Carter1-2/+0
reply code to the negprot reply code to cope with client connections on port 445. Fixes the spurious "register_message_flags: tdb fetch failed" errors. * don't run the backgroup LPQ daemon when we are running in interactive mode. (This used to be commit 88747a7da351261185222e78e9c8d470ff53a246)
2007-10-10r4007: Fix bug #2088 - ensure inherit permissions is only applied on a new file,Jeremy Allison1-2/+2
not an existing one. Jeremy. (This used to be commit fbbdb72cf1adfe567112556626f26b031747f440)
2007-10-10r3946: Fix for bugid #2085 reported by Jason Mader <jason@ncac.gwu.edu>. Use ↵Jeremy Allison1-1/+1
consistent enum type for Protocol extern. Jeremy. (This used to be commit 65dfae7ea45d4c9452b2a08efa09b01d870142f3)
2007-10-10r3944: Fix the problem we get on Linux where sendfile fails, but we've ↵Jeremy Allison1-15/+67
already sent the header using send(). As our implementation of sendfile can't return EINTR (it restarts in that case) use an errno of EINTR to signal the linux sendfile fail after header case. When that happens send the rest of the data and then turn off sendfile. Sendfile should be safe to enable on all systems now (even though it may not help in all performance cases). Jeremy. (This used to be commit 78236382f7ffe08d7924907be49493779521837f)
2007-10-10r3936: Ensure LARGE_READX response must fit within reply buffer.Jeremy Allison1-0/+6
Jeremy. (This used to be commit 5541001cf98aa9afb8f98ebeb91561348d3f5d74)
2007-10-10r3934: Correctly check for the top length bit in LARGE_READX.Jeremy Allison1-0/+5
Jeremy. (This used to be commit f9effa2af90245c0fe090d730c86a2a60d8570dc)
2007-10-10r3050: Steal from Samba4 :-). Make us pass most of the new lock tests ↵Jeremy Allison1-1/+6
(except for the cancel lock which I have to add). Jeremy. (This used to be commit cf7f89999e0c6becd4617c812400d1e71b9c0a30)
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)