summaryrefslogtreecommitdiffstats
path: root/source3/lib
Commit message (Collapse)AuthorAgeFilesLines
...
| * Update comment: Valgrind 1.9.4 seems to always respect clientMartin Pool2003-03-181-1/+1
| | | | | | | | | | requests, without needing --client-perms=yes. (This used to be commit 412a8780c35ee9449c9682e3ef73afb2c4933285)
| * global_globber_region_function/line ought to be recorded beforeMartin Pool2003-03-181-3/+15
| | | | | | | | | | | | | | | | | | | | | | clobbering the region, just in case clobbering causes us to crash immediately. (That might happen if we just shot ourselves in the stack and strcpy was not inlined.) Also, in DEVELOPER mode and when Valgrind is available, mark the clobbered region as uninitialized. This is an even stronger protection than clobbering with 0xf1. (This used to be commit 5653a42ae695f4b8f4c14d3184ca76523d38b51b)
| * - Make ReadDirName return a const char*.Andrew Bartlett2003-03-161-1/+1
| | | | | | | | | | | | | | | | | | - Consequential changes from that - mark our fstring/pstring assumptions in function prototypes Andrew Bartlett (This used to be commit fe2bc64bc439b27387b8f326b0f4f3bfcc3d04a1)
| * Remove an unused function and fix the build.Andrew Bartlett2003-03-151-36/+0
| | | | | | | | | | Andrew Bartlett (This used to be commit 67a0319d268dfc0e2154d3ab0f8bf866e3cbb6db)
| * String handling parinoia fixes.Andrew Bartlett2003-03-153-112/+59
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch enables the compile-time checking of strings assable by means of sizeof(). (Original code had the configure check reversed). This is extended to all safe_strcpy() users, push_string and pull_string, as well as the cli and srv derivitives. There is an attempt to cap strings at the end of the cli buffer, and clobber_region() of the speified length (when not -1 :-). Becouse of the way they are declared, the 'overmalloc a string' users of safe_strcpy() have been changed to use overmalloc_safe_strcpy() (which skips some of the checks). This whole ball of mud worked fine, until I pulled out my 'fix' for our statcache. When jeremy fixes that, we should be able to get back to testing this stuff. This patch also includes a 'marker' of the last caller to clobber_region (ie, the function that called pstrcpy() that called clobber_region) to assist in debugging problems that may have smashed the stack. This is printed at smb_panic() time. (Original idea and patch by metze). It also removes some unsused functions, and #if 0's some others that are unused but probably should be used in the near future. For now, this patch gives us some confidence on one class of trivial parsing error in our code. Andrew Bartlett (This used to be commit 31f4827acc2a2f00399a5528fc83a0dae5cebaf4)
| * fix WinXP & Win2K3 remote_arch and check pointer in ntlmssp code before ↵Gerald Carter2003-03-141-0/+16
| | | | | | | | | | | | dereferencing (This used to be commit 2487480228b99183cab9e34ab497997e0c144ed6)
| * adding some initiaial code to sert %a to Win2K3 (using Native LanMan string ↵Gerald Carter2003-03-121-0/+3
| | | | | | | | | | | | from .NET RC2) (This used to be commit 4c823e61d14a33344deb887043b60b2e3c83416f)
| * Add constAndrew Bartlett2003-03-121-2/+2
| | | | | | | | (This used to be commit 147a0c8b13d20e06c557fb817a36fddf9a920d65)
| * This patch attemptes to clean up winbindd's mutex locking.Andrew Bartlett2003-03-111-4/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The current locking scheme in winbind is a complete mess - indeed, the next step should be to push the locking into cli_full_connection(), but I'll leave it for now. This patch works on the noted behaviour that 2 parts of the connection process need protection - and independent protection. Tim Potter did some work on this a little while back, verifying the second case. The two cases are: - between connect() and first session setup - during the auth2 phase of the netlogon pipe setup. I've removed the counter on the lock, as I fail to see what it gains us. This patch also adds 'anonymous fallback' to our winbindd -> DC connection. If the authenticated connection fails (wbinfo -A specifed) - say that account isn't trusted by a trusted DC - then we try an anonymous. Both tpot and mbp like the patch. Andrew Bartlett (This used to be commit 0620320002082298a15cbba72bd79aecfc607947)
| * Remove valgrind_strlen function, hopefully no longer needed withMartin Pool2003-03-111-9/+0
| | | | | | | | | | recent Valgrind relases and clashing with -DVALGRIND. (This used to be commit 98479f1315cf8968152e1566966ac57e171008c3)
| * Clobber strings with 0xf1f1f1f1 before writing to them to check bufferMartin Pool2003-03-101-8/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | lengths are correct. Attempts to pstrcpy into an fstring or allocated string should fail in developer builds. This builds on abartlet's earlier overflow probe for safe_strcpy, but by clobbering the whole string with a nonzero value is more likely to find overflows on the stack. This is only used in -DDEVELOPER mode. Reviewed by abartlet, tpot. (This used to be commit 8d915e266cd8ccc8b27e9c7ea8e9d003d05f8182)
| * This is C, not C++Andrew Bartlett2003-03-081-4/+4
| | | | | | | | (This used to be commit 25d210b90b6c0377046d89a1dce7a32f94fd7859)
| * Make sure that the 'remote' machine name can only be set once. For some weirdAndrew Bartlett2003-03-081-2/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | reason, during a Win2003 installation, when you select 'domain join' it sends one machine name in the name exchange, and litraly 'machinename' during the NTLMSSP login. Also fix up winbindd's logfile handling, so that it matches smbd and nmbd. (This helps me, by seperating the logs by pid). Andrew Bartlett (This used to be commit afe5a3832f79131fb74461577f1db0e5e8bf4b6d)
| * Some progress towards gums and tdbsam2Simo Sorce2003-03-071-0/+18
| | | | | | | | | | genparser works fine, and it is a marvelous tool to store objects in tdb :) (This used to be commit 4c6d461a8572f03cd33cba95500cc837638b732c)
| * dlsym takes a const char *.Jeremy Allison2003-03-031-1/+1
| | | | | | | | | | Jeremy. (This used to be commit ff3827a62b37342b13fd8b4eafd256d91428c02b)
| * Doxygen janitor: add note that strequal is in fact case-insensitive.Martin Pool2003-02-281-6/+8
| | | | | | | | (This used to be commit a4b9c5c2576c80a5f60d47d178b9b8c50d348893)
| * Doxygen janitorMartin Pool2003-02-282-8/+8
| | | | | | | | (This used to be commit 9af07173152c5e861d13b33a8d4aee8167a50b66)
| * Doxygen janitor: fix parameter names, grammar, tag names.Martin Pool2003-02-281-14/+14
| | | | | | | | (This used to be commit 42d9ec28cd55dbcfda546c84fb842938aeda544d)
| * Add a comment about the meaning of samba's internal character set andMartin Pool2003-02-281-0/+24
| | | | | | | | | | how this interacts with it. (This used to be commit eb876ee9cf24eda04e0856899b232d060c669c0c)
| * additional fix for CR 601Gerald Carter2003-02-271-0/+3
| | | | | | | | | | | | | | | | * distinguish WinXP from Win2k * add a 1/3 of a second delay in OpenPrinter in order to trigger a LAN/WAN optimization in 2k clients. (This used to be commit 96570699d1b715f47c35aa211da6ec18f6fc4109)
| * Doxygen janitorMartin Pool2003-02-271-5/+6
| | | | | | | | (This used to be commit 67bf36c69d19463c28066b276d74ac4784b26bed)
| * - Rename 'modules = ' to 'preload modules = 'Jelmer Vernooij2003-02-271-3/+32
| | | | | | | | | | | | | | - Add smb_probe_module() - Add init_modules() - Call these functions (This used to be commit f8f21653225792c0001d183c6efe8b7d89a0785d)
| * init_valid_table: Fix a memory leak that would lose theMartin Pool2003-02-261-8/+15
| | | | | | | | | | | | dynamically-created valid table every time the configuration was reloaded. (This used to be commit e42b237d980461caf2dd2a8f82c17bf674facb7d)
| * Move off-by-one buggy malloc()/safe_strcpy() combination to strdup() instead.Andrew Bartlett2003-02-241-3/+1
| | | | | | | | | | Andrew Bartlett (This used to be commit c26881633d8a7f6d9b9ed9c6a97ce2b45bf2b317)
| * Merge documentation from 3_0.Martin Pool2003-02-241-6/+13
| | | | | | | | (This used to be commit 5002555a9719987ccdc887ffff64ea8d02c9881d)
| * Add constAndrew Bartlett2003-02-241-4/+4
| | | | | | | | (This used to be commit ffaa608be01d72075942ca3aff2325c6364e0556)
| * Fix 2 off-by-one bugs in the use of malloc()ed strings and safe_strcpy().Andrew Bartlett2003-02-241-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | safe_strcpy() isn't particularly safe (this has been noted before) as it does not take the size of the buffer, but instead the size of the buffer *minus 1* The locking.c fix was causing segfaults on machines running with --enable-developer, and was tracked down thanks to the fact that vance's build farm machine runs with such an option, and smbtorture's DIR1 test hits this bug very well. (The --enable-developer code writes to the last byte of the string, to check for incorrect use of safe_strcpy()). Andrew Bartlett (This used to be commit e908fd164d1b11b6f76a6fdffb22e139813cb3c0)
| * move genparser to use talloc contexts instead of [m|c|re]alloc() and free()sSimo Sorce2003-02-232-152/+163
| | | | | | | | (This used to be commit 70fce680c01fa1baa65fb3cbc83dfaf822fdadd7)
| * More signed/unsigned fixes (yes, I run with funny compiler options) andAndrew Bartlett2003-02-226-12/+13
| | | | | | | | | | | | | | make x_fwrite() match fwrite() in returning a size_t. Andrew Bartlett (This used to be commit 2943c695787b742e9a96b2eefe2d75f681bacf7c)
| * Doxygen janitorMartin Pool2003-02-211-3/+10
| | | | | | | | (This used to be commit 367997562998adb3f80602596c770d9ac319065b)
| * Make init_module() and thus smb_load_module() return an int.Jelmer Vernooij2003-02-201-9/+9
| | | | | | | | | | modules/developer.c: init_module() should return an int (This used to be commit 7f59703550378ff2333e3c851bf1a77037510abd)
| * Move to a in-memory ccache for winbind, and replace setenv() properly.Andrew Bartlett2003-02-191-0/+18
| | | | | | | | | | | | | | | | | | (According to the manpages, you cannot put a stack variable into putenv()). Yes, this leaks memory. Andrew Bartlett (This used to be commit 50bced1e26434ecc7474964062746e2831e5f433)
| * base64_decode() with heimdal libs, so I've renamed it base64_decode_inplace().Jim McDonough2003-02-191-1/+1
| | | | | | | | (This used to be commit 8c69212eeb4a0ec144b960d76319fd4940b8c239)
| * Ensure we use getgrnam() unless BROKEN_GETGRNAM is defined. I now needJeremy Allison2003-02-181-0/+7
| | | | | | | | | | | | to set this for Tru64. Jeremy. (This used to be commit e7c4616c45ea5ec7c04022d6cca49ac70adde121)
| * Remove obsolete comment.Martin Pool2003-02-181-2/+0
| | | | | | | | (This used to be commit e22465749dc7c2acd2441a897df592616fc275da)
| * Doxygen janitor and some doc typo fixes.Martin Pool2003-02-181-68/+92
| | | | | | | | (This used to be commit 82414706e6659c1638936d9b9afdb9329109f58f)
| * Doxygen janitor. No other changes.Martin Pool2003-02-181-120/+119
| | | | | | | | (This used to be commit fa38e7956c21b828ba208282ef0ac85c2b66ff22)
| * Add comment explaining the -DDEVELOPER safe_strcpy overflow hack.Martin Pool2003-02-171-1/+5
| | | | | | | | (This used to be commit 90e1d8bdfa9ec0a4f3795d9a89db1d2324447b68)
| * This is a very nice way to detect pstrcpy() into a malloc()ed string, butAndrew Bartlett2003-02-171-0/+2
| | | | | | | | | | | | | | it really is a developer hack... Andrew Bartlett (This used to be commit 3588ebb35b14422141d4070413185195b525038e)
| * This patch fixes one of my longest-standing pet hates with Samba :-).Andrew Bartlett2003-02-172-18/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When we look see if a user is in a list, and we try to 'expand' an @group, we should lookup the user's own list of groups, rather than looking for all the members of a group. I'm sure this will fix some nasty performance issues, particularly on large domains etc. In particular, this avoids contacting winbind at all, if the group is not a winbind group. (This caused a deadlock on my winbind-on-PDC setup). The groups list always includes the user's primary group, as per the getgrouplist manpage, and my recent changes to our implementation. Andrew Bartlett (This used to be commit 9be21976f7662ebe6eb92fff7cecbdb352eca334)
| * Set the length back to zero when we free the data_blob.Andrew Bartlett2003-02-171-0/+1
| | | | | | | | (This used to be commit 4560594a67056ee1a5e51a122d1b254944e7c266)
| * Try to make our getgrouplist replacement better match the 'real' implemenations.Andrew Bartlett2003-02-171-4/+11
| | | | | | | | | | | | | | In particular, make sure we include the primary gid in the list. Andrew Bartlett (This used to be commit 0cd4b339b7eff55019caaeaa998d5e70b2eed200)
| * Remove obsolete file lib/netatalk.c - We have a VFS module nowJelmer Vernooij2003-02-151-155/+0
| | | | | | | | (This used to be commit 28653989cfe5d705b99a4888c0c3fb79d1f89162)
| * Simplify some return values in gencache functions:Tim Potter2003-02-141-5/+5
| | | | | | | | | | | | | | | | | | | | | | - return ret == 0 ? True : False; + return ret == 0; and - return tdb_close(cache) ? False : True; + return tdb_close(cache) != -1; (This used to be commit 026b988b132ec76fdd3821639960658e1d36cd43)
| * Add FIXME about checking exit code for popen'd commands.Martin Pool2003-02-131-1/+4
| | | | | | | | | | Fix typo. (This used to be commit 2b5664823e05e328c86051fb607182ad20d786d4)
| * pull_ucs2_talloc() should pull to a char**, not a void**Andrew Tridgell2003-02-121-2/+2
| | | | | | | | (This used to be commit 3cf539421fa2a5c276baeedbdbf42ced29d9f1e4)
| * One more fix for the difference between FILE and X_FILE.Andrew Bartlett2003-02-081-1/+1
| | | | | | | | (This used to be commit 7e56014b2877cde489913310edbfd16c267d9859)
| * Ensure we don't get problems between FILE and X_FILE buffers - always use theAndrew Bartlett2003-02-071-3/+3
| | | | | | | | | | | | | | x_ varient of the command. Andrew Bartlett (This used to be commit 6a028507f0d5eadd2ec0a5b45c35e3a019a56f0b)
| * Samba janitor: adding mbp's umask patch :-).Jeremy Allison2003-02-071-79/+69
| | | | | | | | | | Jeremy. (This used to be commit babbbd9c651e044832a78aa0fbcee5afd73770e2)
| * make sure we don't run over the end of 'name' in unix_convert()Andrew Tridgell2003-02-071-2/+6
| | | | | | | | | | Thanks to Andrew Bartlett for spotting this. (This used to be commit b4c210ccb05e71a8ddf1c25d028452dd5cd93c72)