summaryrefslogtreecommitdiffstats
path: root/source/lib
Commit message (Collapse)AuthorAgeFilesLines
* libreplace: fix detection of netinet/ip.h on solaris 8Michael Adam2009-01-271-1/+5
| | | | | | (The test needs to additionally include <netinet/in_systm.h>.) Michael
* libreplace: fix bug #6066 - netinet/ip.h present but cannot be compiledMichael Adam2009-01-271-1/+4
| | | | | | under solaris Michael
* Fix bug #6019 File corruption in Clustered SMB/NFS environment managed via CTDBJeremy Allison2009-01-131-2/+2
| | | | Jeremy.
* Fix null pointer refrence in event context in backport from v3-3-testBo Yang2009-01-111-2/+6
| | | | Signed-off-by: Bo Yang <boyang@novell.com>
* Backport of the clean event context after fork andBo Yang2009-01-102-26/+34
| | | | krb5 refresh chain fixes.
* Fix race condition in alarm lock processing noticed by Richard Sharpe ↵Jeremy Allison2009-01-081-1/+1
| | | | | | | | | | | | | | | <realrichardsharpe@gmail.com>. "It seems to me that if the lock is already held by another process when we enter this code, there is a race between the timeout and the granting. If the lock is subsequently granted, the process releasing the lock will signal the wait variable (or whatever) and our process will be scheduled. However, if the timeout occurs before we are scheduled, the timeout will be delivered first. We will have the lock but will forget we have the lock, and never release it." Jeremy.
* Fix circular dependency error with autoconf 2.6.3.Andreas Schneider2008-11-261-0/+2
| | | | Signed-off-by: Andreas Schneider <anschneider@suse.de>
* Fix bug 5697 nmbd spins in reload_interfaces when only loopback exists.Jeremy Allison2008-08-191-0/+17
| | | | | Reported by Ted Percival <ted@midg3t.net>. Jeremy.
* Fix from Volker. Fix a segfault in base64_encode_data_blobJeremy Allison2008-07-101-1/+3
| | | | | We did not allocate enough memory for the \0 and a = at the end. Jeremy.
* Fix bug #5578, reported by sendel2000@hotbox.ru. Bad (non-Samba) use of ↵Jeremy Allison2008-07-021-0/+3
| | | | | | strlcat gives error. Jeremy.
* Fix bug #5531 - fix conversion of ns units when converting from nttime to ↵Jeremy Allison2008-06-201-2/+6
| | | | | | | timespec. Fix from hkurma@datadomain.com. Jeremy.
* Security: Patche for CVE-2008-1105.Gerald W. Carter2008-05-281-21/+13
| | | | | | | | | | | | | | | -- Summary -- Specifically crafted SMB responses can result in a heap overflow in the Samba client code. Because the server process, smbd, can itself act as a client during operations such as printer notification and domain authentication, this issue affects both Samba client and server installations. Ensure that we specify the buffer size used to store incoming SMB packets. This bug was originally introduced in Samba 2.2.4. Patch from Jeremy Allison.
* Fix Bug #5285. (libcap header mismatch)Günther Deschner2008-05-281-0/+5
| | | | | | | | | Can someone with gpfs available test this ? The only codepath using this function is the modules/gpfs.c module. The fix resolves at least the build issues Samba has with recent kernel / libcap versions by using the portable cap_get_proc()/cap_set_proc() interface (instead of using capget/capset). Guenther
* Make 3.0.x in sync with 3.2 here.samba-3.0.29Jeremy Allison2008-05-211-2/+2
| | | | Jeremy.
* Don't error out on xflush if there's no buffer.Jeremy Allison2008-05-211-2/+2
| | | | Jeremy.
* Janitor for Michael :-).Jeremy Allison2008-04-111-1/+1
| | | | | | | | | | util_tdb: fix a segfault caused by a fatal typo. In tdb_wrap_log(), in on occurrence of "debug_level = 0" instead of "debuglevel = 0" caused me segfaults when accessing DEBUGLEVEL (which is defined as "*debug_level"...) Michael
* Fix typos.Karolin Seeger2008-04-092-3/+3
| | | | Karolin
* Check x_fflush returns.Jeremy Allison2008-04-081-4/+8
| | | | Jeremy.
* Add configure check for LBER_LOG_PRINT_FN - to intercept ldap debug.Michael Adam2008-02-071-2/+2
| | | | | | | | Use the resulting HAVE_LBER_LOG_PRINT_FN to determine whether we can use it in init_ldap_debugging to intercept LDAP debug output and print it out in the samba logs (controlled with "ldap debug level"). Michael
* Add support for LDAP debug output in Samba log file.Michael Adam2008-02-071-0/+52
| | | | | | | | | | | | | | | | | Logging of the ldap libraries appears with a [LDAP] prefix inside the samba logs. This is controlled by two new parameters: * "ldap debug level" sets the debug level of the ldap libraries. It is the bit-field as understood by the openldap server. * "ldap debug threshold" is the samba debug level at which ldap logging appears inside the samba logs. This probably needs some configure tests since it makes use of the LBER_OPT_LOG_PRINT_FN option to redirect the debug output of the ldap libraries. Michael
* Ensure that convert_string_allocate() allocates 2 extraJeremy Allison2008-02-011-6/+14
| | | | | | | bytes and null terminates them to ensure NDR wire-reads of string types are always null terminated. Bug found by Volker after great pain :-). Jeremy.
* Copy the 3.2 version of string_replace to 3.0Volker Lendecke2008-01-221-5/+19
| | | | | | | | | | | | | There are several callers in 3.0 that don't give a pstring to string_replace, thus it will end up in segfaults like the one reported by Sergio Pires <suporte@grupovdl.com.br> on samba@samba.org. The 3.2 version of string_replace does not have the pstring assumption anymore. Jeremy, Jerry, please check! Thanks, Volker
* Fix socket_wrapper build for 3.0.x.Jeremy Allison2007-12-171-4/+4
| | | | Jeremy.
* Fix bug #5121 (unix passwd sync bnot working on a streams basedJeremy Allison2007-12-172-1/+5
| | | | | system). Jeremy.
* Cope with valgrind > 3.2.x.Jeremy Allison2007-12-151-0/+4
| | | | Jeremy.
* Fix bug #5141, patch from Hans Mayer <hans.mayer@ages.at>.Jeremy Allison2007-12-141-3/+6
| | | | | Already fixed in 3.2 code. Jeremy.
* Add patches for bug #4866 from jiri sasek - Sun Microsystems - Prague Czech ↵Jeremy Allison2007-12-112-0/+25
| | | | | | | Republic <Jiri.Sasek@Sun.COM> to allow Solaris to get passwords > 8 chars. Jeremy.
* Additional fixes for SAMBA_VERSION_VENDOR_PATCH in lib/version.cGerald (Jerry) Carter2007-12-101-3/+3
|
* Ensure every use of push_ascii checks for error -1 condition.Jeremy Allison2007-11-191-1/+8
| | | | | | Ensure that is zero termination is requested that it is applied if there's space. Jeremy.
* Fix for CVE-2007-4572Gerald (Jerry) Carter2007-11-151-2/+2
| | | | | | | | | | | | | | | | == Subject: Stack buffer overflow in nmbd's logon == request processing. == == CVE ID#: CVE-2007-4572 == == Versions: Samba 3.0.0 - 3.0.26a (inclusive) ... Samba developers have discovered what is believed to be a non-exploitable buffer over in nmbd during the processing of GETDC logon server requests. This code is only used when the Samba server is configured as a Primary or Backup Domain Controller.
* Fix bug where tdb lock call interrupted withJeremy Allison2007-11-063-0/+10
| | | | | | | | an alarm sig would not terminate and could lead to runaway smbd processes. Thanks to Dave Daugherty @ Centrify for pointing this out to us. Jeremy.
* Fix warning messages for unused variables.Jeremy Allison2007-10-171-1/+3
| | | | | Jeremy. (cherry picked from commit 406737cd9a34ac498e5823b380e1768d41e16c1b)
* [GLUE] Rsync SAMBA_3_0 SVN r25598 in order to create the v3-0-test branch.samba-misc-tags/initial-v3-0-testGerald (Jerry) Carter2007-10-10243-55453/+2054
|
* r24344: Make libreplace provide offsetof.Jelmer Vernooij2007-10-103-4/+5
|
* r24343: Use standard data type uint32_t rather than tdb-specific u32.Jelmer Vernooij2007-10-108-59/+56
|
* r23769: Move removal of the tdb from the generic tdb_validate functionMichael Adam2007-10-101-6/+0
| | | | | | | to the caller (winbindd_validate_cache in this case). Next, there will be a backup handling for the tdb files. Michael
* r23756: Fix Coverity id 388Volker Lendecke2007-10-101-0/+1
|
* r23751: Call tdb_close even when validation was not successful.Michael Adam2007-10-101-9/+1
| | | | Michael
* r23726: Explicitly pass down the FLAGS2 field to srvstr_pull_buf. The nextVolker Lendecke2007-10-101-2/+10
| | | | | | checkin will pull this up to srvstr_get_path. At that point we can get more independent of the inbuf, the base_ptr in pull_string will only be used to satisfy UCS2 alignment constraints.
* r23673: Check for integer wrap on incoming data.Jeremy Allison2007-10-101-0/+6
| | | | Jeremy.
* r23669: Move a variable into the only block where it is used.Michael Adam2007-10-101-1/+1
|
* r23668: When creating a new string value, win2k regedit deliversMichael Adam2007-10-101-8/+22
| | | | | | | | | | | one byte of data despite characters being two-byte. This modifies registry_pull_value, to change the data to the correct two-byte version of the empty string, (as delivered by winxp), when only one byte of data is received. Michael
* r23665: Remove two unneeded global variablesVolker Lendecke2007-10-101-13/+6
|
* r23662: According to simo, check_dos_char is neededVolker Lendecke2007-10-102-1/+52
|
* r23660: Anybody know what check_dos_char() was used for? It wasn't called atVolker Lendecke2007-10-102-52/+1
| | | | all, so it's gone. With it 8k bss went away.
* r23659: file_pload is not used outside of util_file.cVolker Lendecke2007-10-101-1/+1
|
* r23658: One pstring a day....Volker Lendecke2007-10-101-16/+39
| | | | | This one was particularly tasty, it was a static one. So 1k less footprint per process.
* r23641: Put check for forbidden values in smbconf into a function.Michael Adam2007-10-101-0/+22
| | | | | | | (This will be used in a next step to prevent storing these values in reg_smbconf.c.) Michael
* r23639: Eliminate trailing whitespaces in the new tdb_validate functions...Michael Adam2007-10-101-8/+7
| | | | Michael
* r23610: Move some winbindd_cache specific flags and actionsMichael Adam2007-10-101-7/+1
| | | | | | | | back to winbindd_cache.c. The generic mechanism should open the cache tdb readonly and with default flags. Michael