1
0
mirror of https://github.com/samba-team/samba.git synced 2025-06-21 03:17:08 +03:00

820 Commits

Author SHA1 Message Date
Jeremy Allison
0c7de7615b r6174: Fixup T2 open call - we were returning 2 bytes short.
Jeremy.
2007-10-10 10:56:27 -05:00
Jeremy Allison
d3379fe61b r6172: Tidy up error processing significantly. Remove unix_ERR_XXX global nastyness.
Jeremy.
2007-10-10 10:56:27 -05:00
Jeremy Allison
fb05ac4c03 r6160: Ensure allocation size is correctly returned for OpenX. Only set allocation
on create/truncate for nttrans.
Jeremy.
2007-10-10 10:56:26 -05:00
Jeremy Allison
8c64cd368f r6106: Fix bug #2551. It turns out that the incoming flags2 flag FLAGS2_LONG_PATH_COMPONENTS
determines if a reply is uppercased on a SMBsearch request, not the protocol level.
This could clear up quite a few hacks going forward I think.
Jeremy.
2007-10-10 10:56:22 -05:00
Jeremy Allison
56cc756b9d r6063: Fix for bug #2533 - ensure SMBsearch unsets UNICODE flags2 bit as this SMB is
DOS codepage only.
Jeremy.
2007-10-10 10:56:20 -05:00
Jeremy Allison
e831cef618 r6053: Fixup dfs path with the new wildcard parser code split out.
Jeremy.
2007-10-10 10:56:19 -05:00
Jeremy Allison
f8b67159fc r6048: Split out the check_path_syntax into a findfirst/next/wildcard version.
The semantics are different with wildcards.
Jeremy.
2007-10-10 10:56:18 -05:00
Jeremy Allison
b5d31b2caf r5822: Actually return an error message if disk_free fails ! Pointed out by Ying Li <ying.li2@hp.com>.
Jeremy.
2007-10-10 10:56:03 -05:00
Jeremy Allison
0b0b8686f3 r5812: We missed some RESOLVE_DFSPATH calls on pathnames for older calls.
Jeremy.
2007-10-10 10:56:03 -05:00
Jeremy Allison
2e1f727184 r5792: Added new parameter "inherit owner". If set on a share, the created file/directory
will be owned by the same uid as the containing directory. Doing this for directories
in a race-free mannor has only been tested on Linux (it depends on being able to open
a directory and then do a fchown on that file descriptor). If this functionality is
not available then the code silently downgrades to not changing the ownership of a
new directory. This new parameter (docs to follow) finally makes it possible to create
"drop boxes" on Samba, which requires all files within a directory to be commonly owned.
A HOWTO on how to use this will follow.
Jeremy.
2007-10-10 10:56:01 -05:00
Jeremy Allison
4f3b12ac73 r5720: Attempt to fix bug #2382 (Excel shared workbook stops working). Also
incorporates part of the fix created by ke_miyata@itg.hitachi.co.jp
for bug #2045 (MS-Office behavior of timestamp).
Jeremy.
2007-10-10 10:55:57 -05:00
Jeremy Allison
4348ca4854 r5637: Actually test and fix the crash bugs (sorry:-).
Jeremy.
2007-10-10 10:55:52 -05:00
Jeremy Allison
faecf639ef r5524: Don't do share mode checks on can_delete if open, the rest of the open
code will do this correctly. More for bug #2201.
Jeremy.
2007-10-10 10:55:44 -05:00
Jeremy Allison
da23577f16 r5324: In order to process DELETE_ACCESS correctly and return access denied
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.
2007-10-10 10:55:37 -05:00
Jeremy Allison
0b04dd9d0c r5160: First cut at refactoring of directory code to handle non-wildcard
directory match more efficiently. Passes RAW-SEARCH under valgrind but needs more
testing (which I'll do later today :-).
Jeremy.
2007-10-10 10:55:30 -05:00
Jeremy Allison
a38eeb765f r5154: Tidy up interface a little.
Jeremy.
2007-10-10 10:55:29 -05:00
Jeremy Allison
cfa8150fd9 r5152: Restructure the directory handling code, stop using void * pointers
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.
2007-10-10 10:55:29 -05:00
Jeremy Allison
228d1e1649 r5100: We should only care about case-sensitivity when *reading* an incoming
filename, not returning one. Makes us pass one more Samba4 RAW-SEARCH test.
Jeremy.
2007-10-10 10:55:15 -05:00
Volker Lendecke
175ec3ed51 r5098: Next round build-fixing 2007-10-10 10:55:15 -05:00
Jeremy Allison
ef73dfe0d6 r5069: Ensure we return the correct errors for old-style search requests.
Jeremy.
2007-10-10 10:55:13 -05:00
Jeremy Allison
0af1d2f6f2 r5063: Shamelessly steal the Samba4 logic (and some code :-) for directory
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
2007-10-10 10:55:13 -05:00
Jeremy Allison
473babfeca r4295: Don't include header len in data write debug.
Jeremy.
2007-10-10 10:53:42 -05:00
Jeremy Allison
139c1c3488 r4293: Fix inspired by debug trace from Rob Foehl <rwf@loonybin.net> - catch sendfile
errors correctly and return the correct values we want the caller to return (-1
meaning none in correct cases).
Jeremy.
2007-10-10 10:53:42 -05:00
Jeremy Allison
94779ccb39 r4212: Ensure we only look at the bottom bit of large_readx.
Set the 14 word version of write if size > 0xffff as
well as 64-bit offset.
Jeremy.
2007-10-10 10:53:37 -05:00
Jeremy Allison
63cfa904ad r4190: When changing length calculations, get them right......
Jeremy.
2007-10-10 10:53:37 -05:00
Jeremy Allison
831cb21a87 r4186: Fix client & server to allow 127k READX calls.
Jeremy.
2007-10-10 10:53:36 -05:00
Jeremy Allison
0dd4adeae2 r4143: Make strict locking an enum. Auto means use oplock optimization.
Jeremy.
2007-10-10 10:53:36 -05:00
Jeremy Allison
596f230513 r4108: As check_self is *always* False in every invokation, remove the
logic for it. We still pass Samba4 RAW-LOCK test.
Jeremy.
2007-10-10 10:53:34 -05:00
Jeremy Allison
620f2e608f r4088: Get medieval on our ass about malloc.... :-). Take control of all our allocation
functions so we can funnel through some well known functions. Should help greatly with
malloc checking.
HEAD patch to follow.
Jeremy.
2007-10-10 10:53:32 -05:00
Gerald Carter
88747a7da3 r4018: * move claim_connection from the netbios session request
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.
2007-10-10 10:53:27 -05:00
Jeremy Allison
fbbdb72cf1 r4007: Fix bug #2088 - ensure inherit permissions is only applied on a new file,
not an existing one.
Jeremy.
2007-10-10 10:53:27 -05:00
Jeremy Allison
65dfae7ea4 r3946: Fix for bugid #2085 reported by Jason Mader <jason@ncac.gwu.edu>. Use consistent
enum type for Protocol extern.
Jeremy.
2007-10-10 10:53:26 -05:00
Jeremy Allison
78236382f7 r3944: Fix the problem we get on Linux where sendfile fails, but we've 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.
2007-10-10 10:53:26 -05:00
Jeremy Allison
5541001cf9 r3936: Ensure LARGE_READX response must fit within reply buffer.
Jeremy.
2007-10-10 10:53:25 -05:00
Jeremy Allison
f9effa2af9 r3934: Correctly check for the top length bit in LARGE_READX.
Jeremy.
2007-10-10 10:53:25 -05:00
Jeremy Allison
cf7f89999e r3050: Steal from Samba4 :-). Make us pass most of the new lock tests (except for
the cancel lock which I have to add).
Jeremy.
2007-10-10 10:52:59 -05:00
Jeremy Allison
fc51c97ea8 r2575: Return correct error codes on old SEARCH call (from Samba4 torture tester).
Jeremy.
2007-10-10 10:52:47 -05:00
Jeremy Allison
ee8ac9e51a r2219: Remember to count bad_components only on pathname boundaries.
Jeremy.
2007-10-10 10:52:36 -05:00
Jeremy Allison
beda1aee79 r2215: I think I'm really close now. The key is to count the number of
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.
2007-10-10 10:52:36 -05:00
Jeremy Allison
294e2021b3 r2194: Here is the efforts of much pain reproducing W2K3 pathname
parsing. :-(. One more check for CreateFile() needed.
Jeremy.
2007-10-10 10:52:35 -05:00
Jeremy Allison
ff20dacc68 r2150: Fix parsing of names ending in dot and a few other error returns
(commit to Samba4 smbtorture will exercise these fixes).
Jeremy.
2007-10-10 10:52:33 -05:00
Gerald Carter
540daf71d8 r1885: tighten the cache consistency with the ntprinters.tdb entry an the in memory cache associated with open printer handles; also make sure that register_messages_flags() doesn't overwrite the originally registers flags 2007-10-10 10:52:23 -05:00
Jeremy Allison
3cd88f48af 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.
2007-10-10 10:52:21 -05:00
Jeremy Allison
1b0c70cf97 r1665: Patch from James Peach @ SGI to stop using sendfile if it isn't
supported by the underlying OS.
Jeremy.
2007-10-10 10:52:18 -05:00
Gerald Carter
430cf63b91 r1570: merging changes from 3.0.5 2007-10-10 10:52:15 -05:00
Jeremy Allison
ec614a8f7d r1311: Turn on sendfile for non-oplocked files. tridge proved
this is the correct thing to do on a train in Germany :-).
Turn on sendfile by default ! It's about time.....
Jeremy.
2007-10-10 10:52:05 -05:00
Jeremy Allison
f17382ad8a r1255: Ensure we check attributes correctly on rename request. Gets us further with
Samba4 RAW-RENAME test.
Jeremy.
2007-10-10 10:52:03 -05:00
Jeremy Allison
5e8237e306 r1115: Fix for #1427. Catch bad path errors at the right point. Ensure all
our pathname parsing is consistent.
Jeremy.
2007-10-10 10:51:56 -05:00
Jeremy Allison
c1b06deb57 r1093: Ensure we clear any cached errors on a deferred open call so
we don't return the wrong error code on the next packet.
Jeremy.
2007-10-10 10:51:54 -05:00
Jeremy Allison
894cc6d162 r1085: Now it's had some proper user testing, merge in the deferred open 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.
2007-10-10 10:51:54 -05:00