summaryrefslogtreecommitdiffstats
path: root/source/smbd/trans2.c
Commit message (Collapse)AuthorAgeFilesLines
* r22650: sync up with SMABA_3_0_25 as of svn r22649Gerald Carter2007-05-031-2/+1
|
* r22510: pull patches from SAMBA_3_0_25 and update release notes for 3.0.25rc3Gerald Carter2007-04-251-2/+4
|
* r22434: sync from the 3.0.25 tree for rc2Gerald Carter2007-04-211-1/+3
|
* r22138: * Sync up with the SAMBA_3_0_25 as of svn r22132.Gerald Carter2007-04-091-25/+36
| | | | | * Set VERSION to 3.0.25rc1 * Update release notes.
* r21889: * Pull from SAMBA-3_0_25 svn r21888Gerald Carter2007-03-201-144/+567
| | | | * Set version to 3.0.25pre2
* r21619: * Pickup latest changes from SAMBA_3_0_25 (this will be itGerald Carter2007-03-011-1/+11
| | | | | for 3.0.25pre1 unless something blows up) * Update release notes some more
* r21585: Start syncing the monster that will become 3.0.25pre1Gerald Carter2007-02-281-1169/+1956
| | | | | | | | Still todo: * release notes * few minor outstanding patches * additional idmap man pages
* r21147: committing changes for 3.0.24Gerald Carter2007-02-051-0/+6
|
* r19018: staging for a 3.0.23d on Tuesday (I think we have sufficient changes ↵Gerald Carter2006-10-011-5/+5
| | | | to warrant one)
* r16792: minor (but critical fixes) from Jeremy, Volker, & GuentherGerald Carter2006-07-041-3/+8
|
* r16348: * merging changes from SAMBA_3_0 r16346Gerald Carter2006-06-191-2/+7
| | | | * updating release notes to match
* r16254: pulling klocwork fixes for 3.0.23rc3 (current up to r16251)Gerald Carter2006-06-151-1/+3
|
* r16119: pulling changes from 3_0 up to r16117Gerald Carter2006-06-091-1/+1
|
* r16104: Set version to 3.0.23rc2Gerald Carter2006-06-081-8/+40
| | | | | Bring release tree up to current 3.0 tree (svn merge -r15845:16103 $SVNURL/branches/SAMBA_3_0)
* r15837: starting sync up for 3.0.23rc1 (in sync with SAMBA_3_0 r15822)Gerald Carter2006-05-231-6/+35
|
* r15035: It seems that many preprocessors do not like comments in macro args..Volker Lendecke2006-04-111-1/+4
|
* r15030: On a performace hunt... Remove as many extraneousJeremy Allison2006-04-111-3/+3
| | | | | memset's as possible. Jeremy.
* r15018: Merge Volker's ipc/trans2/nttrans changes overJeremy Allison2006-04-101-320/+643
| | | | | | | | into 3.0. Also merge the new POSIX lock code - this is not enabled unless -DDEVELOPER is defined. This doesn't yet map onto underlying system POSIX locks. Updates vfs to allow lock queries. Jeremy.
* r14986: Fix OS/2 directory delete bug found by kukks.Jeremy Allison2006-04-081-0/+2
| | | | | | | | | | | | | (Thanks a lot for all your hard work on this). We were caching the results of *all* directory scans, not just the results that match the client wildcard. This actually made no sense, as only matches on the client wildcard can be returned to the client and so might need to be searched for in the cache. This fixes the directory cache to only cache entries that we return to the client. Jeremy.
* r14387: Try and fix the coverity issues (#53, #54) with negativeJeremy Allison2006-03-141-2/+2
| | | | | | sink by ensuring all uses of rpcstr_push are consistent with a size_t dest size arg. Jeremy.
* r13915: Fixed a very interesting class of realloc() bugs found by Coverity.Jeremy Allison2006-03-071-40/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | realloc can return NULL in one of two cases - (1) the realloc failed, (2) realloc succeeded but the new size requested was zero, in which case this is identical to a free() call. The error paths dealing with these two cases should be different, but mostly weren't. Secondly the standard idiom for dealing with realloc when you know the new size is non-zero is the following : tmp = realloc(p, size); if (!tmp) { SAFE_FREE(p); return error; } else { p = tmp; } However, there were *many* *many* places in Samba where we were using the old (broken) idiom of : p = realloc(p, size) if (!p) { return error; } which will leak the memory pointed to by p on realloc fail. This commit (hopefully) fixes all these cases by moving to a standard idiom of : p = SMB_REALLOC(p, size) if (!p) { return error; } Where if the realloc returns null due to the realloc failing or size == 0 we *guarentee* that the storage pointed to by p has been freed. This allows me to remove a lot of code that was dealing with the standard (more verbose) method that required a tmp pointer. This is almost always what you want. When a realloc fails you never usually want the old memory, you want to free it and get into your error processing asap. For the 11 remaining cases where we really do need to keep the old pointer I have invented the new macro SMB_REALLOC_KEEP_OLD_ON_ERROR, which can be used as follows : tmp = SMB_REALLOC_KEEP_OLD_ON_ERROR(p, size); if (!tmp) { SAFE_FREE(p); return error; } else { p = tmp; } SMB_REALLOC_KEEP_OLD_ON_ERROR guarentees never to free the pointer p, even on size == 0 or realloc fail. All this is done by a hidden extra argument to Realloc(), BOOL free_old_on_error which is set appropriately by the SMB_REALLOC and SMB_REALLOC_KEEP_OLD_ON_ERROR macros (and their array counterparts). It remains to be seen what this will do to our Coverity bug count :-). Jeremy.
* r13675: * patch from Bjoern JACKE <samba@j3e.de> to remove the Gerald Carter2006-02-241-15/+4
| | | | | artificial RO bit on directories in user profiles when profile acls = yes.
* r13563: Fix bug #3526 found and diagnosed by corinna@vinschen.de.Jeremy Allison2006-02-191-0/+2
| | | | | | trans2findfirst recognises two info levels *not* recognised by trans2findnext. Add them. Needed for 3.0.21c. Jeremy.
* r13293: Rather a big patch I'm afraid, but this should fix bug #3347Jeremy Allison2006-02-021-7/+7
| | | | | | | | by saving the UNIX token used to set a delete on close flag, and using it when doing the delete. libsmbsharemodes.so still needs updating to cope with this change. Samba4 torture tests to follow. Jeremy.
* r12877: Stop passing structs around in smb messages, insteadJeremy Allison2006-01-121-2/+2
| | | | | | | | | always linearize into little-endian. Should fix all Solaris issues with this, plus provide a cleaner base moving forward for cluster-aware Samba where smbd's can communicate across different compilers/architectures (eventually these message will have to go cross-machine). Jeremy.
* r12376: Second patch from Martin Koeppe <mkoeppe@gmx.de>Jeremy Allison2005-12-191-2/+2
| | | | | for #3287. Jeremy.
* r12250: Patch from Martin Koeppe <mkoeppe@gmx.de> for #3287Jeremy Allison2005-12-141-6/+6
| | | | | | | | to make the dev/inode numbers match what SFU expects. If we're using 8 byte inodes we'll lose the top 4 bytes and replace them with a dev_t instead, but this seem reasonable to ensure uniqueness. Jeremy.
* r12203: Add the share path into the sharemode db. This involvesJeremy Allison2005-12-121-11/+3
| | | | | | | | | | revving the minor version number for libsmbsharemodes (we now have a new _ex interface that takes the share path as well as the filename). Needed for #3303. Some code written by SATOH Fumiyasu <fumiya@samba.gr.jp> included in the changes to locking/locking.c. The smbstatus output is a bit of a mess and needs overhauling... Jeremy.
* r11511: A classic "friday night check-in" :-). This moves muchJeremy Allison2005-11-051-18/+18
| | | | | | | | | | | | | | | | 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.
* r11428: Fix bug #3192 by actually hooking up the dfree cachingJeremy Allison2005-10-311-3/+3
| | | | | function. Oops. Jeremy.
* r11420: Fix issue pointed out by Dina Fine <dina@exanet.com>. We canJeremy Allison2005-10-311-12/+16
| | | | | | | | 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.
* r11389: Attempt to fix bug #3212 - ignore bogus OS/2 EA set values onJeremy Allison2005-10-291-4/+25
| | | | | trans2_mkdir/trans2_open/trans2_setfilepathingo. Jeremy.
* r11232: Added ab's POSIX statvfs vfs call. Sorry for the delay ab.Jeremy Allison2005-10-201-0/+33
| | | | Jeremy.
* r10921: BUG 3070: fix crash bug in qfsinfo when retrieving quota infoGerald Carter2005-10-121-1/+0
|
* r10656: BIG merge from trunk. Features not copied overGerald Carter2005-09-301-124/+8
| | | | | | | * \PIPE\unixinfo * winbindd's {group,alias}membership new functions * winbindd's lookupsids() functionality * swat (trunk changes to be reverted as per discussion with Deryck)
* r10182: Starting to stamp out warnings on a 64-bit box.Jeremy Allison2005-09-121-5/+5
| | | | | More to follow. Jeremy.
* r9246: Patch from Marcel samba.10.maazl@spamgourmet.com for OS/2 trans2 openJeremy Allison2005-08-111-2/+3
| | | | | reply bugs. Jeremy.
* r8959: Make msdfs code talloc based. Fix leaks.Jeremy Allison2005-08-021-1/+1
| | | | Jeremy.
* r8552: Warning fix from jason@ncac.gwu.edu.Jeremy Allison2005-07-181-1/+1
| | | | Jeremy.
* r8219: Merge the new open code from HEAD to 3.0. Haven't yet run the tortureJeremy Allison2005-07-081-111/+146
| | | | | | | | | 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.
* r7963: Add aio support to 3.0.Jeremy Allison2005-06-271-0/+3
| | | | Jeremy.
* r7893: Add in the extra parameters to opendir() to fix the large ↵Jeremy Allison2005-06-251-15/+9
| | | | | | | directory/insane app problem. Rev vfs version. Doesn't change the normal codepath. Jeremy.
* r7842: With the patch I sent Steve yesterday this gives us complete POSIX ↵Jeremy Allison2005-06-221-2/+6
| | | | | | | pathnames. ie. files containing : and \ can be accessed from Linux. Jeremy.
* r7821: Don't check permissions for setting POSIX pathname request.Jeremy Allison2005-06-211-53/+56
| | | | Jeremy.
* r7798: CIFSFS client assumes wcnt == 10 for successful trans2 reply.Jeremy Allison2005-06-211-9/+8
| | | | Jeremy.
* r7796: Prepare for client setting capabilities to select posix pathnames onJeremy Allison2005-06-211-19/+48
| | | | | | the wire. Jerry do not merge this please. New SMB_SET_FS_INFO - level 0x200 as was discussed on the mailing list. Jeremy.
* r7412: Now we're not memset'ing ensure we're valgrind clean.Jeremy Allison2005-06-081-0/+1
| | | | Jeremy.
* r7191: Squeezing out more unnecessary memset's gets us up 20% over older ↵Jeremy Allison2005-06-021-28/+45
| | | | | | | code :-). Getting medieval on our ass about memset.... Jeremy.
* r7190: I *love* valgrind/cachegrind.....Jeremy Allison2005-06-021-10/+9
| | | | | | By removing unneeded memsets in qfilepathinfo I just improved our netbench performance by *********15%**********. Check it out :-). Jeremy.
* r6979: Tidyups.Jeremy Allison2005-05-251-8/+2
| | | | Jeremy.