summaryrefslogtreecommitdiffstats
path: root/source/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* 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.
* Doxygen janitorMartin Pool2003-02-271-5/+6
|
* - Rename 'modules = ' to 'preload modules = 'Jelmer Vernooij2003-02-271-3/+32
| | | | | | - Add smb_probe_module() - Add init_modules() - Call these functions
* 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.
* Move off-by-one buggy malloc()/safe_strcpy() combination to strdup() instead.Andrew Bartlett2003-02-241-3/+1
| | | | Andrew Bartlett
* Merge documentation from 3_0.Martin Pool2003-02-241-6/+13
|
* Add constAndrew Bartlett2003-02-241-4/+4
|
* 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
* move genparser to use talloc contexts instead of [m|c|re]alloc() and free()sSimo Sorce2003-02-232-152/+163
|
* 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
* Doxygen janitorMartin Pool2003-02-211-3/+10
|
* 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
* 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
* base64_decode() with heimdal libs, so I've renamed it base64_decode_inplace().Jim McDonough2003-02-191-1/+1
|
* Ensure we use getgrnam() unless BROKEN_GETGRNAM is defined. I now needJeremy Allison2003-02-181-0/+7
| | | | | to set this for Tru64. Jeremy.
* Remove obsolete comment.Martin Pool2003-02-181-2/+0
|
* Doxygen janitor and some doc typo fixes.Martin Pool2003-02-181-68/+92
|
* Doxygen janitor. No other changes.Martin Pool2003-02-181-120/+119
|
* Add comment explaining the -DDEVELOPER safe_strcpy overflow hack.Martin Pool2003-02-171-1/+5
|
* 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 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
* Set the length back to zero when we free the data_blob.Andrew Bartlett2003-02-171-0/+1
|
* 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
* Remove obsolete file lib/netatalk.c - We have a VFS module nowJelmer Vernooij2003-02-151-155/+0
|
* 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;
* Add FIXME about checking exit code for popen'd commands.Martin Pool2003-02-131-1/+4
| | | | Fix typo.
* pull_ucs2_talloc() should pull to a char**, not a void**Andrew Tridgell2003-02-121-2/+2
|
* One more fix for the difference between FILE and X_FILE.Andrew Bartlett2003-02-081-1/+1
|
* 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
* Samba janitor: adding mbp's umask patch :-).Jeremy Allison2003-02-071-79/+69
| | | | Jeremy.
* 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.
* Bitmap offsets and counts are always positive.Andrew Bartlett2003-02-011-1/+1
|
* Always escape ldap filter strings. Escaping code was from pam_ldap, but I'm toAndrew Bartlett2003-02-011-0/+90
| | | | | | | | blame for the realloc() stuff. Plus a couple of minor updates to libads. Andrew Bartlett
* Make it clear that the magic value is (size_t)-1.Andrew Bartlett2003-02-011-2/+2
| | | | Andrew Bartlett
* Add 3 second timeout when terminating server and sending print notifyJeremy Allison2003-01-301-5/+45
| | | | | | messages. Stops build-up of large numbers of smbd's waiting to terminate on large print throughput. Jeremy.
* Move debug level message handling into debug.c from messages.cTim Potter2003-01-302-11/+14
| | | | Removed duplicate message_register() for REQ_DEBUGLEVEL message.
* Removed duplicate fn to avoid compiler warning.Tim Potter2003-01-291-19/+0
|
* Return 0 instead of crashing when a NULL source string is passedTim Potter2003-01-291-0/+1
| | | | to rpcstr_pull()
* Quieten debug about gencache.tdb not being able to be opened.Tim Potter2003-01-291-1/+1
| | | | Perhaps we should try to open O_RDONLY if O_RDWR fails?
* Fix memory leak found my Leo Qiu <leoxqiu@yahoo.com>.Jeremy Allison2003-01-241-1/+4
| | | | Jeremy.
* Merge of max log file fixes from appliance:Tim Potter2003-01-231-1/+3
| | | | | | | | - smbd/process.c: check log file sizes more often than in timeout_processing() - lib/debug.c: increment debug_count inside Debug1() instead of when log file sizes are checked.
* Updated some comments.Tim Potter2003-01-211-5/+5
|
* Keep the list of dead WINS servers in gencache.tdb instead of inTim Potter2003-01-211-60/+54
| | | | | | | memory. This allows the information to be shared amongst all smbd processes. HP CR #1099
* Make the valstr and timeout return pointers optional so a caller canTim Potter2003-01-211-11/+31
| | | | pass NULL if it doesn't care about the gencache key.
* dlsym() can return NULL validly, so we can't use that as the error test.Jim McDonough2003-01-171-2/+6
| | | | dlerror() is the correct way to test.
* Enable dynamic loading of RPC modules. See docs/textdocs/RPC_PLUGGIN.txt ↵Jim McDonough2003-01-171-0/+12
| | | | for instructions.
* fix some undefined behaviour with increments in C. In theory aAndrew Tridgell2003-01-171-4/+8
| | | | compiler could have produced complete crap for this code.
* Fixed up mutex protection around winbindd logon code. Sync with APP-HEAD.Jeremy Allison2003-01-161-2/+4
| | | | Jeremy.
* Updates to the NTLMSSP code again - moving the base64 decode fuctionality outAndrew Bartlett2003-01-161-0/+94
| | | | | | | | | | | | | of the SWAT code, and adding a base64 encoder. The main purpose of this patch is to add NTLMSSP support to 'ntlm_auth', for use with Squid. Unfortunetly the squid side doesn't quite support what we need yet. Changes to winbind to get us the info we need, and a couple of consequential changes/cleanups in the rest of the code. Andrew Bartlett
* Fix a signed/unsigned warning.Andrew Bartlett2003-01-161-1/+1
|