1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-19 10:03:58 +03:00

384 Commits

Author SHA1 Message Date
Jeremy Allison
8f8ff6870c r6979: Tidyups.
Jeremy.
(This used to be commit 619d0aeebba66624ea0f5c7cff1c637738275b84)
2007-10-10 10:56:59 -05:00
Jeremy Allison
1d37a6267e r6715: We don't need to wrap the setfsinfo call in HAVE_QUOTA
as they'll just return ENOSYS if we don't. Add new CAP for
POSIX pathnames, prepare to allow FSINFO set for client POSIX
caps.
Jeremy.
(This used to be commit 4d99b57aedba8431ef5827d1e75413a10b35e1ce)
2007-10-10 10:56:53 -05:00
Jeremy Allison
5622d96cd6 r6631: More typo's. Sorry.
Jeremy.
(This used to be commit 2673ccd19f194d1f7756a154afe4200e386ca1b3)
2007-10-10 10:56:48 -05:00
Jeremy Allison
02e3717ee9 r6625: Remove another global variable left over from a long time ago (magic char).
Jeremy.
(This used to be commit b1bfa9cb37deb22d1d08bc60ba44d61334f6446e)
2007-10-10 10:56:47 -05:00
Jeremy Allison
c044df57dd r6302: OS/2 fix from Marcel Müller <mueller@maazl.de>. Don't check for mangled names
if mangled names is off.
Jeremy.
(This used to be commit b2330c38881baceaafe1ef6b7ce00d1b5cd8d5c7)
2007-10-10 10:56:35 -05:00
Jeremy Allison
e1ff2af9dc r6297: Fix bug in our trans2 secondary processing. We need to pass in the
trans2 call info from the primary trans2 packet as it isn't present
in secondary transs packets. We only need to do this for functions that
satisfy more than one case in the switch statement. Found by Marcel Müller <mueller@maazl.de>.
Jeremy.
(This used to be commit 62edc3d5dc68fbfe6cd77c588791453e29274dd9)
2007-10-10 10:56:35 -05:00
Jeremy Allison
0003238873 r6269: With help from Marcel Müller <mueller@maazl.de> in tracking down the bug,
fix trans2 and nttrans secondary packet processing. We were being too strict checking
the incoming packet (by 1 byte).
Jeremy.
(This used to be commit 3eea1ff4b7428325c7f304bcac61d6297209a4b8)
2007-10-10 10:56:34 -05:00
Jeremy Allison
9fda3ecda4 r6261: Tidyup message str printf. Ensure tvs struct is zeroed.
Jeremy.
(This used to be commit 6c9f227ef400f32def85268f411691b569d29889)
2007-10-10 10:56:33 -05:00
Jeremy Allison
def41233b4 r6258: Fix found by OS/2 set_ea call. When setting specific info remember to terminate
once we've done that and not "break" into the generic file metadata set code.
Jeremy.
(This used to be commit f1e12be9ed0ca0077bac8e5f32051758e1d84ad7)
2007-10-10 10:56:33 -05:00
Gerald Carter
1253a174f3 r6242: after talking to jeremy, we can actually consolidate
the 2 BOOL flags in dfs_redirect() down to one since
they both are used in essentially the same context
(from what we can tell).

Tested Win98SE, WinXP sp 1 & 2, Win2k3 sp1, and WIn2k Sp4.
All dfs operations still seem to work.
(This used to be commit 59ffacf59c98f2f8277d76ec22712e438fd40618)
2007-10-10 10:56:31 -05:00
Gerald Carter
b751f95a25 r6237: fix my breakage of WinXP sp2 msdfs support.
We did need the special case for RESOLVE_DFSPATH
in the findfirst() code.

Jeremy, please verify I haven't broken the allow_wcard
code you added to resolve_dfs_path()
(This used to be commit 29983398e2f7f1dc609d4d981e20f594918243bb)
2007-10-10 10:56:31 -05:00
Herb Lewis
978ca84860 r6225: get rid of warnings from my compiler about nested externs
(This used to be commit efea76ac71412f8622cd233912309e91b9ea52da)
2007-10-10 10:56:30 -05:00
Jeremy Allison
77fa234ffc r6203: Fix attribute return on creating a directory with nttrans_create.
Fix strange allocation semantics of openX.
Jeremy.
(This used to be commit da5a8b539d39d2765de22c3e55e9f284992ff966)
2007-10-10 10:56:28 -05:00
Jeremy Allison
db69f6fae9 r6199: Only do the strange DOS error for openX, not trans2open.
Jeremy.
(This used to be commit 65970dfc5b8f174fe29201789d6ddcf8802ad48c)
2007-10-10 10:56:28 -05:00
Jeremy Allison
1045c78624 r6174: Fixup T2 open call - we were returning 2 bytes short.
Jeremy.
(This used to be commit 0c7de7615bf0edbb36a3afee445db13a71e26d2e)
2007-10-10 10:56:27 -05:00
Jeremy Allison
0557c6cba2 r6172: Tidy up error processing significantly. Remove unix_ERR_XXX global nastyness.
Jeremy.
(This used to be commit d3379fe61bb934082b51a37adac232a96bafcf46)
2007-10-10 10:56:27 -05:00
Jeremy Allison
1da65dc29e r6163: Well I never, all this time the t2open code was incorrectly decting
oplock requests and no one noticed. Hmmm. Don't think this is a commonly
used codepath :-).
Jeremy.
(This used to be commit 75a0c11de4b7baf693e5c62e690e4bb26554f8e2)
2007-10-10 10:56:26 -05:00
Jeremy Allison
b76112f211 r6146: Added OS/2 EA support in trans2_open and trans2_mkdir. Fixed in nttrans_create.
Jeremy.
(This used to be commit 989fcb4c084c63f1e3b114af68ef5bc0a2fbc09e)
2007-10-10 10:56:24 -05:00
Jeremy Allison
b7c6e71b26 r6141: Fix OS/2 EA's for NTcreate. OpenX and mkdir to follow.
Jeremy.
(This used to be commit 106f91ff65acd23a7dda4d0ec89ae41ecb28153e)
2007-10-10 10:56:24 -05:00
Jeremy Allison
f1977014f4 r6138: Refactor length reading out of EA code so we can read length
external to buffer. Needed to add EA code to create calls.
Jeremy.
(This used to be commit 7c4262d6ba48695c2622ea2eba8da6ac889ce543)
2007-10-10 10:56:24 -05:00
Jeremy Allison
5a69d0a82a r6122: Added "hack" fix for broken SMB_INFO_VOLUME level - used by OS/2
I believe. Reported as fixed by Marcel Müller <mueller@maazl.de>.
Jeremy.
(This used to be commit 14eab937a54dd9f02f289d7e2f47c78c834714a3)
2007-10-10 10:56:23 -05:00
Jeremy Allison
780b1eedab r6082: Fix for bugid #2541. Fixes from Guenter Kukkukk <guenter.kukkukk@kukkukk.com>
Jeremy.
(This used to be commit 057e4bf641674473f1ac1e0fbe936b4f2506e013)
2007-10-10 10:56:21 -05:00
Jeremy Allison
404fa5636d r6069: Fix for bug #2541. Ensure we recognise LANMAN2.1 as OS/2 and select LANMAN2
protocol, ensure the EA size is always correctly set on a query for a file with no EA's.
Jeremy.
(This used to be commit d6ad1f8df05e16152d9c95df56e612fde288d3b4)
2007-10-10 10:56:20 -05:00
Jeremy Allison
e2204e24ba r6067: Patch from Marcel Müller <mueller@maazl.de> - fix OS/2 EA_FROM_LIST
info level.
Jeremy.
(This used to be commit e15c36e9497b5e92c0f743a522cd0adb96d22295)
2007-10-10 10:56:20 -05:00
Jeremy Allison
a5433c4bf7 r6053: Fixup dfs path with the new wildcard parser code split out.
Jeremy.
(This used to be commit e831cef618d55c362e8d3a8a4c2b9f2ed7d4d7bd)
2007-10-10 10:56:19 -05:00
Jeremy Allison
09bb17511b r5960: Integer wrap paranoia when reading EA buffers.
Jeremy.
(This used to be commit e61f7a6b72fe6186a5a56f23f9133c5b1a49bb89)
2007-10-10 10:56:12 -05:00
Jeremy Allison
ebb9ba6ddc r5936: Fix bugs in earlier work in progress commit. Closer to properly supporting EA's now.
Jeremy.
(This used to be commit 8aa2b2617baefef004a864c4210b20a66ef89fd4)
2007-10-10 10:56:09 -05:00
Jeremy Allison
442b9f3e87 r5933: We were handling setting of EA's incorrectly - we should be able to set
a list. Also not converting names from DOS CP to UNIX CP correctly. This
code doesn't quite work yet but it's a work in progress to be fixed
tomorrow (don't want to lose it).
Jeremy.
(This used to be commit 22fca746576810c5408540031a9603625a66cd75)
2007-10-10 10:56:09 -05:00
Jeremy Allison
deb0212172 r5893: Get us to pass some of the Samba4 EA tests. EA_LIST seems to be
working - need to valgrind it to be sure.
Jeremy.
(This used to be commit 8b2b652c0a47298cd188c67d256dfdffe01a951d)
2007-10-10 10:56:07 -05:00
Jeremy Allison
4faa02fb30 r5874: Work in progress. EA list infolevel.
Jeremy
(This used to be commit b033a302b59e1e72f4a72fce54abaae5c1c29f18)
2007-10-10 10:56:06 -05:00
Jeremy Allison
d2467955bf r5872: Restructure ea list code to start to fix the EA_LIST calls. This does not
work yet but it's a work in progress.
Jeremy.
(This used to be commit 0e399422f70ef8b3797277f6f61105fa7fe0d83a)
2007-10-10 10:56:06 -05:00
Jeremy Allison
983a1f69ae r5864: Stop using 'INFO' names on find calls. Getting ready to fixup OS/2 EA
support.
Jeremy.
(This used to be commit a417feaa4108b443850ef6e8f0da32b79d79db59)
2007-10-10 10:56:06 -05:00
Jeremy Allison
2aaf23ed64 r5844: Fix typo. Add cast for bug #2464 reported by jason@ncac.gwu.edu.
Jeremy.
(This used to be commit a4b4766e4294c3a0172beeae7a7698160f4a2632)
2007-10-10 10:56:05 -05:00
Jeremy Allison
c6e94efcec r5836: Correct fix for OS/2 bug #2335. The error return code in this case is protocol
level dependent.
Jeremy.
(This used to be commit 712ef86ac008524866615e670db7659ea674fefb)
2007-10-10 10:56:04 -05:00
Jeremy Allison
b05ce8f047 r5833: Revert change for bug #2335. Tested with a Win9x client and the original
error code is correct. I have some theories as to why this is different,
I'll add some code to the torture tester to confirm.
Jeremy.
(This used to be commit a7a7af6815e1123f27070a2fe0a92de5b4372913)
2007-10-10 10:56:04 -05:00
Jim McDonough
e2673ae1c5 r5831: Along with jra's recent checkins, fix dir/xcopy of empty dirs on OS/2. Bugs
2335, 2337.
(This used to be commit 2312ac9d42adcea8576c3923cd5bc8c1851d5375)
2007-10-10 10:56:04 -05:00
Jeremy Allison
7dcbde86ae r5822: Actually return an error message if disk_free fails ! Pointed out by Ying Li <ying.li2@hp.com>.
Jeremy.
(This used to be commit b5d31b2caf5c4739607bf57cb7e4e0569b57012b)
2007-10-10 10:56:03 -05:00
Jeremy Allison
55f480b009 r5816: Catch the "." resume name case also.
Jeremy.
(This used to be commit 479bb6ea95e45d6f9d8b5dbddd500451e39202a7)
2007-10-10 10:56:03 -05:00
Jeremy Allison
4f92cefcad r5813: Fix bug found by Jim McDonough <jmcd@us.ibm.com>
Win9x can send a resume name of "..". This will cause the parser to
complain (it thinks we're asking for the directory above the shared
path). Catch this as the resume name is only compared, never used in
a file access and replace it with "..".
Jeremy.
(This used to be commit c03524363f86ab88f1408f2fba2a1d76ce830301)
2007-10-10 10:56:03 -05:00
Jeremy Allison
eb546db88d 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.
(This used to be commit 4f3b12ac73487f4ccb37c17506af1abf5acc80cd)
2007-10-10 10:55:57 -05:00
Gerald Carter
212de366c9 r5707: BUG 2425: remove ubran legend wrt to win98 and the DFS_PATHNAMES capability bit
(This used to be commit 6511bfe84a4036e0d203858aa2f604e346c9412b)
2007-10-10 10:55:56 -05:00
Jeremy Allison
6410e65198 r5700: Fix problems where we're not pointing to the start of entry for a
couple of info levels - W2K3 always points to the start, not the name.
Jeremy.
(This used to be commit 76fb181031e6e3df5b653496692737fd947b7818)
2007-10-10 10:55:55 -05:00
Jeremy Allison
c56d5cd4c4 r5637: Actually test and fix the crash bugs (sorry:-).
Jeremy.
(This used to be commit 4348ca48549ded8c056877befa216f0e768cb2c1)
2007-10-10 10:55:52 -05:00
Jeremy Allison
02fdabc2a7 r5636: Re-add the allocation size - parameterized by share as
"allocation roundup size", by default set as 1Mb. From
advice by BlueArc about Windows client behaviour. VC++
people can set this to zero to turn it off.
Jeremy.
(This used to be commit 833ca101772bfab65dbd79eb64f63464177f144e)
2007-10-10 10:55:52 -05:00
Jeremy Allison
f95e9fc45b r5548: Stop lying about allocation sizes to Windows clients. It was a nice
idea, and aparently improved performance in some circumstances, but it
breaks the VC++ compiler :-(. Not cool. Fix bug #2146.
Jeremy.
(This used to be commit b9f147634df0126320ffe3b9a23068e76f6c1681)
2007-10-10 10:55:47 -05:00
Jeremy Allison
34a5c5a580 r5513: Fix for bug #2201 - use same logic with "delete readonly"
when setting the delete on close flag as we do in SMBunlink
calls.
Jeremy.
(This used to be commit 7a94eaf1811c79ae52ee78b1cd9cfc691e1d65a0)
2007-10-10 10:55:43 -05:00
Jeremy Allison
0f87a9ada3 r5343: Fix for bug#1525. Timestamps interpreted incorrectly on 64-bit time_t values.
Jeremy.
(This used to be commit 00f8ac509aaf2f40a067f5fe5c7699ae6f26571e)
2007-10-10 10:55:38 -05:00
Herb Lewis
a572700531 r5287: fix build problem when HAVE_POSIX_ACL not defined
(This used to be commit 2bd0253c11977122b195dc2f685d5367869973fd)
2007-10-10 10:55:36 -05:00
Gerald Carter
c1b9243c28 r5165: BUG 2295: always use get_local_machine_name() rather than digging in the gloval variable 'local_machine'
(This used to be commit 6a6e4af46a5c0a693a3dd9d558a4d1c1e5d72d95)
2007-10-10 10:55:31 -05:00
Jeremy Allison
021011f900 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.
(This used to be commit 0b04dd9d0c6d1fe02d1b5e43f203577bf5466f33)
2007-10-10 10:55:30 -05:00