summaryrefslogtreecommitdiff
path: root/source3/smbd/reply.c
AgeCommit message (Collapse)AuthorFilesLines
2007-10-10r11511: A classic "friday night check-in" :-). This moves muchJeremy Allison1-18/+20
of the Samba4 timezone handling code back into Samba3. Gets rid of "kludge-gmt" and removes the effectiveness of the parameter "time offset" (I can add this back in very easily if needed) - it's no longer being looked at. I'm hoping this will fix the problems people have been having with DST transitions. I'll start comprehensive testing tomorrow, but for now all modifications are done. Splits time get/set functions into srv_XXX and cli_XXX as they need to look at different timezone offsets. Get rid of much of the "efficiency" cruft that was added to Samba back in the day when the C library timezone handling functions were slow. Jeremy. (This used to be commit 414303bc0272f207046b471a0364fa296b67c1f8)
2007-10-10r11451: Fix -O1 "might be using uninitialized" errors.Jeremy Allison1-1/+1
Jeremy. (This used to be commit cab76c3c33883aad444eefb6562ab1b27d9ca88a)
2007-10-10r11448: Move decl before code.Jeremy Allison1-1/+2
Jeremy. (This used to be commit f22822790cdbbe7d5a237421c1eda73a504e488d)
2007-10-10r11428: Fix bug #3192 by actually hooking up the dfree cachingJeremy Allison1-1/+1
function. Oops. Jeremy. (This used to be commit 7edb26e7657fc01710abe563b941779749409ef2)
2007-10-10r11420: Fix issue pointed out by Dina Fine <dina@exanet.com>. We canJeremy Allison1-44/+78
only tell at parse time from the wire if an incoming name has wildcards or not. If it's a mangled name and we demangle the demangled name may contain wildcard characters. Ensure these are ignored. Jeremy. (This used to be commit 4cd8e2a96b98ff711905e8c6f416b22440c16062)
2007-10-10r11137: Compile with only 2 warnings (I'm still working on that code) on a gcc4Jeremy Allison1-2/+2
x86_64 box. Jeremy. (This used to be commit d720867a788c735e56d53d63265255830ec21208)
2007-10-10r10750: Ensure we match W2K3 in forcing DOS errors in a couple of cases.Jeremy Allison1-2/+2
Jeremy. (This used to be commit 62ba3454251daf59071a6b2663035b04c5438647)
2007-10-10r10749: Remove one more Samba4 smbtorture RAW-OPEN difference from W2K3.Jeremy Allison1-1/+1
Jeremy. (This used to be commit 0e8cf8eef59e38ba9a79f6c688abe9f1ac3bf64d)
2007-10-10r10656: BIG merge from trunk. Features not copied overGerald Carter1-56/+77
* \PIPE\unixinfo * winbindd's {group,alias}membership new functions * winbindd's lookupsids() functionality * swat (trunk changes to be reverted as per discussion with Deryck) (This used to be commit 939c3cb5d78e3a2236209b296aa8aba8bdce32d3)
2007-10-10r10551: We need to check if the source path is a parent directory of the ↵Jeremy Allison1-0/+41
destination (ie. a rename of /foo/bar/baz -> /foo/bar/baz/bibble/bobble. If so we must refuse the rename with a sharing violation. Under UNIX the above call can *succeed* if /foo/bar/baz is a symlink to another area in the share. We probably need to check that the client is a Windows one before disallowing this as a UNIX client (one with UNIX extensions) can know the source is a symlink and make this decision intelligently. Found by an excellent bug report from <AndyLiebman@aol.com>. Jeremy. (This used to be commit fc311adc7964feef5bac85096727f54922d1186c)
2007-10-10r10136: Fix for bug #3060 from Leo Weppelman <leo@wau.mis.ah.nl>.Jeremy Allison1-1/+1
Ensure SMBcreate truncates the file if it exists. Jeremy. (This used to be commit 9014b0ddcbd87c98613f06033718e4091e3be21c)
2007-10-10r9985: Move the all the strict sync logic into file_sync().James Peach1-13/+7
(This used to be commit cc680bbe22b8bfc5a1900f11c2cbaeca3a9f9922)
2007-10-10r8609: Fix for bugid #2889. I think the problem is that the top 16 bits of ↵Jeremy Allison1-1/+3
the "server state" field must be non-zero. As we're using the 32 bit field as an offset then normally this field will be zero. W2K3 fills this field with a counter enumerating the number of SMBsearch calls on this directory - starting at 1. Add back the 1<<31 bit flag DPTR_MASK to ensure this is non-zero - with better checks on use. Jeremy. (This used to be commit 6415657942c49ea51d4e4f4ee2189c7d70b9c5fa)
2007-10-10r8556: Fix bug #2878 - Norton commander not running on OS/2 client - we wereJeremy Allison1-1/+1
not correctly returning the requested open mode. Thanks to alex@infobit.ru for reporting this. Jeremy. (This used to be commit 7ff7211b808e708c00a3b0f57be8d1af3c632bd7)
2007-10-10r8457: Fix from Marcel Müller <mueller@maazl.de> to ensureJeremy Allison1-1/+1
we correctly set the return packet size to include the pad bytes in reply_readbmpx(). Jeremy. (This used to be commit 3070ec288c64880485ed159d512e91346f5d1b4e)
2007-10-10r8290: Fix for bug in SMBwriteBraw where we incorrectlyJeremy Allison1-1/+2
returned the number of bytes written. Patch from Marcel Müller <mueller@maazl.de>. Jeremy. (This used to be commit 81e7a4a2cfd2d4764d757702f17635e5007e59de)
2007-10-10r8219: Merge the new open code from HEAD to 3.0. Haven't yet run the tortureJeremy Allison1-138/+260
tests on this as it's very late NY time (just wanted to get this work into the tree). I'll test this over the weekend.... Jerry - in looking at the difference between the two trees there seem to be some printing/ntprinting.c and registry changes we might want to examine to try keep in sync. Jeremy. (This used to be commit c7fe18761e2c753afbffd3a78abff46472a9b8eb)
2007-10-10r7963: Add aio support to 3.0.Jeremy Allison1-7/+0
Jeremy. (This used to be commit 1de27da47051af08790317f5b48b02719d6b9934)
2007-10-10r7893: Add in the extra parameters to opendir() to fix the large ↵Jeremy Allison1-28/+24
directory/insane app problem. Rev vfs version. Doesn't change the normal codepath. Jeremy. (This used to be commit 0f03a6bdcdbdf60da81e0aeffa84ac6e48fc6a04)
2007-10-10r7842: With the patch I sent Steve yesterday this gives us complete POSIX ↵Jeremy Allison1-1/+11
pathnames. ie. files containing : and \ can be accessed from Linux. Jeremy. (This used to be commit e9b8d23d6138d909a65ea70b2e801881e8333b38)
2007-10-10r7620: when adding a new printer driver, we should copy the filesGerald Carter1-1/+1
(not move) to the W32X86/{2,3}/ directory. Printmig.exe copies the driver files for all drivers to print$/W32X86 and the calls AddPrinterDriver() for each driver. If we move the file, then adding a driver which shares a file with a previous driver will fail. I can now restore drivers in bulk to a Samba 3 server. (This used to be commit 46cd95c9b48a00a51139d3654352d4399b774a9b)
2007-10-10r7618: Typo...Jeremy Allison1-1/+1
Jeremy. (This used to be commit 65d1365700588949fc5576c7dd525fc530a15ff4)
2007-10-10r7617: Fix for bug #2801 - delete veto files was broken with the newJeremy Allison1-2/+2
large directory code. Jeremy. (This used to be commit f397cc08b5628913af4d7f9c2c6d20c778e5d8ca)
2007-10-10r7447: Sync up a little between HEAD and 3.0 in preparation for movingJeremy Allison1-5/+30
the AIO code across. Jeremy. (This used to be commit e9604e65f4337a4163398f1f2c71e13da7993ed4)
2007-10-10r6977: Fix bug #2735 (not mangling control characters) plusJeremy Allison1-0/+6
ensure we don't create files with control characters either. Jeremy. (This used to be commit 0ca2423c706423a07721e375345b6d45a45cbcf4)
2007-10-10r6673: Fix the write cache based on some VERY good detective workJeremy Allison1-10/+7
from Ingo Kilian <ikilian@web.de>. You must do a make clean after updating this. Jeremy. (This used to be commit 3b2cd19fcb8ce38578b122fd6ae722b73081dcda)
2007-10-10r6633: Added "check_path_syntax_posix()" in preparation for handlingJeremy Allison1-1/+95
POSIX pathnames. Not yet used. Jeremy. (This used to be commit 381da9b55d6a3fda2ba4a3f12bee50853b7fd3b3)
2007-10-10r6629: Fix stupid typo. Thanks Gunther.Jeremy Allison1-3/+3
Jeremy. (This used to be commit 8693df2551fce145f7c919dee67a26d8fb8dfd1d)
2007-10-10r6625: Remove another global variable left over from a long time ago (magic ↵Jeremy Allison1-5/+4
char). Jeremy. (This used to be commit b1bfa9cb37deb22d1d08bc60ba44d61334f6446e)
2007-10-10r6502: add LOCKING debug class - pull PRINTINGDB class definition from trunkHerb Lewis1-0/+24
so our numbers don't get out of sync (This used to be commit 58e307664e02ebf0415f19ed625d2f166d9cb1cc)
2007-10-10r6225: get rid of warnings from my compiler about nested externsHerb Lewis1-3/+1
(This used to be commit efea76ac71412f8622cd233912309e91b9ea52da)
2007-10-10r6203: Fix attribute return on creating a directory with nttrans_create.Jeremy Allison1-12/+19
Fix strange allocation semantics of openX. Jeremy. (This used to be commit da5a8b539d39d2765de22c3e55e9f284992ff966)
2007-10-10r6174: Fixup T2 open call - we were returning 2 bytes short.Jeremy Allison1-1/+11
Jeremy. (This used to be commit 0c7de7615bf0edbb36a3afee445db13a71e26d2e)
2007-10-10r6172: Tidy up error processing significantly. Remove unix_ERR_XXX global ↵Jeremy Allison1-46/+32
nastyness. Jeremy. (This used to be commit d3379fe61bb934082b51a37adac232a96bafcf46)
2007-10-10r6160: Ensure allocation size is correctly returned for OpenX. Only set ↵Jeremy Allison1-1/+16
allocation on create/truncate for nttrans. Jeremy. (This used to be commit fb05ac4c03eec21f3f18668610022ebfa6d6bf4a)
2007-10-10r6106: Fix bug #2551. It turns out that the incoming flags2 flag ↵Jeremy Allison1-4/+11
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. (This used to be commit 8c64cd368fdd2c5a4b361904855c135ade3f449e)
2007-10-10r6063: Fix for bug #2533 - ensure SMBsearch unsets UNICODE flags2 bit as ↵Jeremy Allison1-1/+4
this SMB is DOS codepage only. Jeremy. (This used to be commit 56cc756b9d14db23b2640c347f729fa90dad9b6a)
2007-10-10r6053: Fixup dfs path with the new wildcard parser code split out.Jeremy Allison1-6/+6
Jeremy. (This used to be commit e831cef618d55c362e8d3a8a4c2b9f2ed7d4d7bd)
2007-10-10r6048: Split out the check_path_syntax into a findfirst/next/wildcard version.Jeremy Allison1-24/+134
The semantics are different with wildcards. Jeremy. (This used to be commit f8b67159fc1c8224a7caf41409b2654846f34a2d)
2007-10-10r5822: Actually return an error message if disk_free fails ! Pointed out by ↵Jeremy Allison1-1/+4
Ying Li <ying.li2@hp.com>. Jeremy. (This used to be commit b5d31b2caf5c4739607bf57cb7e4e0569b57012b)
2007-10-10r5812: We missed some RESOLVE_DFSPATH calls on pathnames for older calls.Jeremy Allison1-0/+7
Jeremy. (This used to be commit 0b0b8686f3c4261e9b1070f4b2968e6f4ed4bbd7)
2007-10-10r5792: Added new parameter "inherit owner". If set on a share, the created ↵Jeremy Allison1-11/+52
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. (This used to be commit 2e1f727184b9d025d2e3413bdd3d01d5ca803a41)
2007-10-10r5720: Attempt to fix bug #2382 (Excel shared workbook stops working). AlsoJeremy Allison1-14/+13
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-10r5637: Actually test and fix the crash bugs (sorry:-).Jeremy Allison1-1/+1
Jeremy. (This used to be commit 4348ca48549ded8c056877befa216f0e768cb2c1)
2007-10-10r5524: Don't do share mode checks on can_delete if open, the rest of the openJeremy Allison1-19/+24
code will do this correctly. More for bug #2201. Jeremy. (This used to be commit faecf639efdecf949e91184d041489aa54e8664f)
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)