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

1015 Commits

Author SHA1 Message Date
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
Jeremy Allison
c1d7588c74 r5154: Tidy up interface a little.
Jeremy.
(This used to be commit a38eeb765f4c744ca7bf0aca86bb448240ad295d)
2007-10-10 10:55:29 -05:00
Jeremy Allison
784adfbcbb 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.
(This used to be commit cfa8150fd9932470cb8f3b5e14c0156dda67125d)
2007-10-10 10:55:29 -05:00
Jeremy Allison
de728fa81a 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
(This used to be commit 0af1d2f6f24f238cb05e10d7d53dcd5b5e0f5f5d)
2007-10-10 10:55:13 -05:00
Jeremy Allison
acf9d61421 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.
(This used to be commit 620f2e608f70ba92f032720c031283d295c5c06a)
2007-10-10 10:53:32 -05:00
Jeremy Allison
46f546571b r4007: Fix bug #2088 - ensure inherit permissions is only applied on a new file,
not an existing one.
Jeremy.
(This used to be commit fbbdb72cf1adfe567112556626f26b031747f440)
2007-10-10 10:53:27 -05:00
Jeremy Allison
482f14871d r3946: Fix for bugid #2085 reported by Jason Mader <jason@ncac.gwu.edu>. Use consistent
enum type for Protocol extern.
Jeremy.
(This used to be commit 65dfae7ea45d4c9452b2a08efa09b01d870142f3)
2007-10-10 10:53:26 -05:00
Jeremy Allison
9038a56f82 r3895: Fix for bug #2045. May also fix other timestamp bugs with Excel
(Volker please test). Setting a last write timestamp from Windows
overrides any subsequent write timestamp changes and must be immediately
seen by and findfirst/findnexts. This is a racy solution, but should
work most of the time. This may also fix #1061, not sure.
Jeremy.
(This used to be commit 47bab92c0b062f3fefbb4fd4a09852e1c829a7f9)
2007-10-10 10:53:24 -05:00
Jeremy Allison
5a83636948 r3889: Only set mtime from pending_modtime if it's not already zero...
Jeremy.
(This used to be commit 984c3506351ba97f74813d678424858508c4197a)
2007-10-10 10:53:23 -05:00
Jeremy Allison
2f167e909e r3859: Ensure if num_acls is set to 0xFFFF this field is ignored.
Use def_acl everywhere instead of dir_acl.
Jeremy.
(This used to be commit d28611c960f87830aa8449725951984aa155b089)
2007-10-10 10:53:21 -05:00
Jeremy Allison
672b22ae43 r3814: At least use a proper constant name (aRONLY :-) not a number.
That way we can at least remember why we did this :-).
Jeremy.
(This used to be commit d84f5f8cc10f89d5fbd6cfb694bccfbd1c3d8a3f)
2007-10-10 10:53:18 -05:00
Volker Lendecke
99dd85abe9 r3811: Believe it or not, but this patch seems to be necessary. If someone sets a
folder icon in the start menu and saves the profile on a samba server, after
logging in again this setting is gone. Why is this? The folder for which the
icon is set must have the read only flag set. If it is not set, the
desktop.ini file (the file containing the icon reference) inside that folder
is ignored.

lp_profile_acls is a hack for such a situation, so overload this parameter
with another profile-related hack.

Volker
(This used to be commit b8d888000eb7456c7620e9a783d6f1b3ba4c8985)
2007-10-10 10:53:18 -05:00
Jeremy Allison
6192b3121f r3794: Added set posix acl functionality into the UNIX extensions code.
One part missing - delete file acl (to be added asap). No client
code yet, also needs testing with valgrind.
Jeremy.
(This used to be commit 6101ec2247c182fde6ea3e7e1f64a92b353ec4e8)
2007-10-10 10:53:17 -05:00
Jeremy Allison
1b31f46f22 r3714: Getfacl now seems to work on files and directories. Next do setfacl
and port to Samba4.
Jeremy.
(This used to be commit 4d52bf7c8b3147dd4f0d3081fbf9a1f5ebd246a1)
2007-10-10 10:53:16 -05:00
Jeremy Allison
f995b164b9 r3713: Implementation of get posix acls in UNIX extensions. Passes valgrind.
Need to add printout functions in client and set posix acl in server.
SteveF - take a look at this for the cifsfs client !
Once this is working and tested the next step is to write this up for
the UNIX extensions spec. documents.
Jeremy.
(This used to be commit 1bd3f133442a472b4718b94a636f2fec89a2e0dc)
2007-10-10 10:53:16 -05:00
Jeremy Allison
4a69011a63 r3674: Stefan Esser <s.esser@e-matters.de> pointed out that the max data
value is only valid on the initial trans/trans2/nttrans request,
so if there are secondary requests we can't read it from them. Read
it from the initial request and pass as a parameter for those functions
that need it.
Jeremy.
(This used to be commit e007845e67e0604321fb36b216a98e4fca1c98e1)
2007-10-10 10:53:13 -05:00
Jeremy Allison
70696e4c1c r3663: Fix too tight checking of incoming secondary trans2 requests.
Found by Stefan Esser <s.esser@e-matters.de>.
Jeremy.
(This used to be commit 44132c39ecbf055b897b1aa7bfca4eb1731badbf)
2007-10-10 10:53:12 -05:00
Jeremy Allison
c0406ae1b0 r3642: Extend vfs to add seekdir/telldir/rewinddir. Yes I know I have to
fix the modules too... First step in fixing out large directories
problem.
Jeremy.
(This used to be commit 344e9dd33a936b429fefb67cd748ac009a1bab10)
2007-10-10 10:53:11 -05:00
Jeremy Allison
2d32a93725 r3225: Fix correct use of resume name. Cope with the resume
name not existing. Found using Samba4 RAW-SEARCH.
Jeremy.
(This used to be commit 74dd2b33ff1ecba752682937c792628e081f17f5)
2007-10-10 10:53:03 -05:00
Jeremy Allison
2efbc238d4 r3002: Fix for bug #1886 - prevent delete on close being set
for readonly files (and return the correct error code).
We now pass the Samba4 test suite on this.
Jeremy.
(This used to be commit 6ae417f12cc6f8d2ad00bea27ce0a20242f76325)
2007-10-10 10:52:59 -05:00