summaryrefslogtreecommitdiffstats
path: root/source/client/clitar.c
Commit message (Collapse)AuthorAgeFilesLines
* r21889: * Pull from SAMBA-3_0_25 svn r21888Gerald Carter2007-03-201-2/+2
| | | | * Set version to 3.0.25pre2
* r21585: Start syncing the monster that will become 3.0.25pre1Gerald Carter2007-02-281-20/+29
| | | | | | | | Still todo: * release notes * few minor outstanding patches * additional idmap man pages
* r16254: pulling klocwork fixes for 3.0.23rc3 (current up to r16251)Gerald Carter2006-06-151-1/+1
|
* r15144: final code changes for 3.0.23pre1 (SAMBA_3_0 r15141)Gerald Carter2006-04-201-19/+30
|
* r14248: Fix Coverity bug # 84Volker Lendecke2006-03-121-0/+1
|
* r14246: Fix Coverity bug # 85Volker Lendecke2006-03-121-0/+2
|
* r14242: Fix Coverity bug # 82Volker Lendecke2006-03-121-0/+2
|
* r14128: Remove warning generated by coverity scan tool (missing SAFE_FREE in ↵Steve French2006-03-101-0/+1
| | | | error path)
* r13915: Fixed a very interesting class of realloc() bugs found by Coverity.Jeremy Allison2006-03-071-5/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* r13535: Fix #2353 based on a patch by William Jojo.Jeremy Allison2006-02-161-3/+4
| | | | Jeremy.
* r12522: Try and fix bug #2926 by removing setlocale(LC_ALL, "C")Jeremy Allison2005-12-271-1/+1
| | | | | | and replace calls to isupper/islower/toupper/tolower with ASCII equivalents (mapping into _w variants). Jeremy.
* r12045: More warning fixes... Just a few more to go.Jeremy Allison2005-12-031-0/+2
| | | | Jeremy.
* r11511: A classic "friday night check-in" :-). This moves muchJeremy Allison2005-11-051-1/+1
| | | | | | | | | | | | | | | | 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.
* r6225: get rid of warnings from my compiler about nested externsHerb Lewis2005-04-061-1/+1
|
* r5968: derrell's large file fix for libsmbclient (BUG 2505)Gerald Carter2005-03-221-1/+1
|
* r5687: Fix for bug #2398 from Kevin Dalley <kevin@kelphead.org>.Jeremy Allison2005-03-071-5/+1
| | | | | smbtar shouldn't assume /dev/null means dryrun. Jeremy.
* r5295: fix compile issue with MIT 1.4 due to broken gssapi.hGerald Carter2005-02-101-30/+0
|
* r4088: Get medieval on our ass about malloc.... :-). Take control of all our ↵Jeremy Allison2004-12-071-11/+11
| | | | | | | | | allocation functions so we can funnel through some well known functions. Should help greatly with malloc checking. HEAD patch to follow. Jeremy.
* r2835: Since we always have -I. and -I$(srcdir) in CFLAGS, we can get rid of Tim Potter2004-10-071-1/+1
| | | | | '..' from all #include preprocessor commands. This fixes bugzilla #1880 where OpenVMS gets confused about the '.' characters.
* r2361: Fix the appalling toktocliplist() fn. Bug found by Luis Benvenutto.Jeremy Allison2004-09-151-3/+5
| | | | Jeremy.
* r1320: Return an error when the last command read from stdin fails in ↵Jelmer Vernooij2004-07-011-3/+3
| | | | | | smbclient + prepare for better error checking in tar..
* r2: import HEAD into svn+ssh://svn.samba.org/home/svn/samba/trunkCVS Import User2004-04-041-0/+1807
metze