summaryrefslogtreecommitdiffstats
path: root/source/lib/util_str.c
Commit message (Collapse)AuthorAgeFilesLines
* r6014: rather large change set....Gerald Carter2007-10-101-0/+14
| | | | | | | | | | | | | | pulling back all recent rpc changes from trunk into 3.0. I've tested a compile and so don't think I've missed any files. But if so, just mail me and I'll clean backup in a couple of hours. Changes include \winreg, \eventlog, \svcctl, and general parse_misc.c updates. I am planning on bracketing the event code with an #ifdef ENABLE_EVENTLOG until I finish merging Marcin's changes (very soon).
* r5961: final round of compiler warning fixes based on feedback from Jason MaderGerald Carter2007-10-101-1/+1
|
* r5956: more compile warngin fixes from the Mr. MaderGerald Carter2007-10-101-3/+3
|
* r5954: Fix some compiler warnings and add missing exclude-block in "net rpcGünther Deschner2007-10-101-1/+1
| | | | | | share migrate" (found by Lars Mueller <lmuelle@suse.de>). Guenther
* r5953: more compiler cleanups; moved SID_LIST from smb.h to privileges.c to ↵Gerald Carter2007-10-101-1/+1
| | | | cleanup the name space
* r5158: BUG 2263: patch from Timur Bakeyev <timur@com.bat.ru> to guard ↵Gerald Carter2007-10-101-4/+10
| | | | base64_encode_data_blob() against empty blobs
* r5066: A couple of small fixes from James Peach @ SGI.Jeremy Allison2007-10-101-2/+2
| | | | Jeremy.
* r4746: add server support for lsa_enum_acct_rights(); last checkin for the nightGerald Carter2007-10-101-0/+16
|
* r4334: Fix for bugid #2186 - from Buck Huppmann <buckh@pobox.com>Jeremy Allison2007-10-101-0/+8
| | | | | to prevent uninitialized creds being freed. Jeremy.
* r4088: Get medieval on our ass about malloc.... :-). Take control of all our ↵Jeremy Allison2007-10-101-19/+19
| | | | | | | | | allocation functions so we can funnel through some well known functions. Should help greatly with malloc checking. HEAD patch to follow. Jeremy.
* r2605: Fix stupid typo in back-port of Samba4 fix.Jeremy Allison2007-10-101-1/+1
| | | | Jeremy.
* r2578: Pick up optimisation from Samba4 - thanks tridge !Jeremy Allison2007-10-101-0/+12
| | | | | | | | - I recently found out that charaters below 0x3F are guaranteed not to occur as secondary bytes in any multi-byte character set. This allows for a very simple optimisation in strchr_m() and strrchr_m(). It might be a good idea to pick this up for Samba3. Jeremy.
* r2361: Fix the appalling toktocliplist() fn. Bug found by Luis Benvenutto.Jeremy Allison2007-10-101-5/+8
| | | | Jeremy.
* r2175: Fix for #1546 from fumiya@samba.gr.jp. Preserve errno in MB ↵Jeremy Allison2007-10-101-0/+6
| | | | | | strupper_m/strlower_m. Jeremy.
* r2111: Fix memleak with valid names.Jeremy Allison2007-10-101-0/+1
| | | | Jeremy.
* r2070: Let's try to overload srnlen and strndup for AIX where they are natly ↵Simo Sorce2007-10-101-2/+2
| | | | broken.
* r1570: merging changes from 3.0.5Gerald Carter2007-10-101-4/+12
|
* r1087: BUG 1221: revert old change that used single and double quotes as ↵Gerald Carter2007-10-101-1/+1
| | | | delimters in next_token(), and change print_parameter() to print out parm values surrounded by double quotes (instead of single quotes)
* r570: Remove lots of globals to handle case issues - move themJeremy Allison2007-10-101-4/+2
| | | | | | | | to connection struct entries (as they should have been from the start). Jerry, once you've cut over to 3.0.4 release branch I'll add this to 3.0 also. - Jerry cut over :-). Jeremy.
* r116: volker's patch for local group and group nestingGerald Carter2007-10-101-0/+18
|
* r104: Fix ntlm_auth by adding the new strhex_to_data_blob() call.Andrew Bartlett2007-10-101-0/+11
| | | | Andrew Bartlett
* Modified fix for bugid #784. Based on a patch from moriyama@miraclelinux.com ↵Jeremy Allison2004-03-131-1/+0
| | | | | | | | | | (MORIYAMA Masayuki). Don't use nstrings to hold workgroup and netbios names. The problem with them is that MB netbios and workgroup names in unix charset (particularly utf8) may be up to 3x bigger than the name when represented in dos charset (ie. cp932). So go back to using fstrings for these but translate into nstrings (ie. 16 byte length values) for transport on the wire. Jeremy.
* Given how core this code is, I figure it should have it's own testsuite.Andrew Bartlett2004-03-091-7/+11
| | | | | | | | | | | | | Big thanks to tpot and mbp for showing how easy it can be to write a simple unit test, and for providing the STF. This also changes the strstr_m() code to use strstr_w() (avoiding duplication) and fixes it so that it passes the STF. (We now always restart before doing the unicode run, until sombody can show me why the testsuite is wrong). Andrew Bartlett
* JRA's recent strstr_m work really badly broke our string_sub code.Andrew Bartlett2004-03-091-2/+10
| | | | | | | | | | | | | | | | For example: strstr_m("%v foo bar", "%v") would fail... only strstr_m("foo %v", "%v") could work. I wonder what else this broke... Fix is to move to using strncmp() inside the strstr_m function. Tested on ASCII only. Andrew Bartlett
* Added strstr_m() function. Use in all places where we might run into mbJeremy Allison2004-03-091-4/+74
| | | | | (should fix the mb service name problem, can't remember the bugid). Jeremy.
* Missed SAFE_FREE (typo).Jeremy Allison2004-02-131-1/+2
| | | | Jeremy.
* Added Andrew Bartlett's patch to use an allocated buffer for count_chars.Jeremy Allison2004-02-131-2/+8
| | | | Jeremy.
* Fix final valgrind errors with #830. Catch mb conversion error that may notJeremy Allison2004-02-041-2/+16
| | | | | terminate correctly. Jeremy.
* Fix decoding of base64. We got the length wrong when the result was notVolker Lendecke2004-01-231-0/+2
| | | | | | | | | | an exact multiple of 3. I also wrote a torture test and it survived some minutes of random stuff coded/decoded up to 16 MB data. But that would be a bit too embarassing to commit... :-) Volker
* Fix for bug #922. Fast path not called for strlower_m() and strupper_m().Jeremy Allison2004-01-071-2/+2
| | | | | From ab@samba.org (Alexander Bokovoy). Jeremy.
* Fix bug 916 - do not perform a + -> space substitution for squid URL encodedAndrew Bartlett2003-12-251-5/+0
| | | | | | strings, only form input in SWAT. Andrew Bartlett
* Ensure that items in a list of strings containing whitespaceGerald Carter2003-11-221-1/+1
| | | | | | | | | | | are written out surrounded by single quotes. This means that both double and single quotes are now used to surround strings in smb.conf. This is a slight change from the previous behavior but needed or else things like printer admin = +ntadmin, 'VALE\Domain, Admin' get written to smb.conf by SWAT.
* Added useful information to debug lines.Rafal Szczesniak2003-11-191-4/+4
| | | | | | | Patch by metze. rafal
* Useful debug message. Patch by metze.Rafal Szczesniak2003-11-181-2/+4
| | | | rafal
* Squelch some warnings with more casty-foo.Richard Sharpe2003-11-131-2/+2
|
* Fix more 64-bit printf warnings.Tim Potter2003-11-031-2/+3
|
* Fix for MacOS/X which uses STUPID BROKEN UNICODE COMPOSE CHARACTERS !Jeremy Allison2003-09-131-3/+12
| | | | | | | (rant off :-). Inspired by work from Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>. Also add MacOSX/Darwin configure fixes. Jerry - can we put this in 3.0 release ? :-). Jeremy.
* Fix from Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>. ReveredJeremy Allison2003-09-121-1/+1
| | | | | condition meant fast-path in strchr_m was not being used. Doh ! Jeremy.
* Fix stupid typo bug causing CPU spin. Spotted by Markus Ungermann ↵Jeremy Allison2003-09-101-0/+1
| | | | | | <ungermann@elzet80.de> Jeremy.
* More tuning from cachegrind. Change most trim_string() calls to trim_char(0,Jeremy Allison2003-09-051-2/+73
| | | | | as that's what they do. Fix string_replace() to fast-path ascii. Jeremy.
* fix bug 397: use a variant of alloc_sub_basic() for string lists.Gerald Carter2003-09-051-0/+30
|
* Hand optimisatinos for strrchr_m using the properties we know about MBJeremy Allison2003-09-051-11/+47
| | | | | character sets and how we use this call. Jeremy.
* Fastpath strchr_m for ASCII.Jeremy Allison2003-09-041-0/+13
| | | | Jeremy.
* Used cachegrind to track down some bottlenecks.Jeremy Allison2003-09-041-1/+10
| | | | | | | | | | Removed calls to clobber_region when not compiling with developer as they were hiding speed problems. Added fast path to convert_string() when dealing with ascii -> ascii, ucs2-le to ascii and ascii to ucs2-le with values <= 0x7F. This gives a speedup of 22% on my nbench tests. Next I will do this on convert_string_allocate. Jeremy.
* Fix up overlapping memcpy -> memmove found by valgrind.Jeremy Allison2003-09-031-1/+3
| | | | Jeremy.
* fix bug 289; make sure to reset the offset into a string when reallocating spaceGerald Carter2003-08-251-1/+2
|
* get rid of more compiler warningsHerb Lewis2003-08-151-7/+7
|
* get rid of const as these things really are not constHerb Lewis2003-08-151-5/+5
|
* Use push_ucs2_allocate(), rather than convert_string_allocate() directly.Andrew Bartlett2003-07-271-37/+5
| | | | | | | | | Remove strdup_upper/strdup_lower from their old file, now that they have been moved to charcnv.c Note that string_replace assumes that s is a pstring. (doco change only) Andrew Bartlett
* More printf portability fixes. Got caught out by some gcc'isms lastTim Potter2003-07-251-1/+1
| | | | time. )-: