summaryrefslogtreecommitdiffstats
path: root/source/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* | r22938: merge 22007 and 22008 from SAMBA_3_0Stefan Metzmacher2007-05-161-2/+2
| | | | | | | | | | | | use tdb helper functions metze
* | r22936: merge 21973:21989 from SAMBA_3_0Stefan Metzmacher2007-05-163-27/+15
| | | | | | | | | | | | (use helper functions to create TDB_DATA elements) metze
* | r22935: merge 21972 from SAMBA_3_0Stefan Metzmacher2007-05-161-22/+39
| | | | | | | | metze
* | r22934: Change smbcontrol to use messaging_register instead of message_registerVolker Lendecke2007-05-162-2/+52
| |
* | r22931: Fix logic in detection of the need to replace dlopen and friends.Michael Adam2007-05-161-6/+7
| | | | | | | | | | | | | | Originally, dlfcn.o was only added to LIBREPLACEOBJ if dlopen was found in libdl but header dlfcn.h was not appropriate. Michael
* | r22926: Don't use <=0, use < 0 to allow keepalives to propagate up.Jeremy Allison2007-05-161-1/+1
| | | | | | | | Jeremy.
* | r22923: Fix runaway smbd now receive_smb_raw() returns a ssize_t not a BOOL.Jeremy Allison2007-05-161-1/+1
| | | | | | | | Jeremy.
* | r22920: Add in the UNIX capability for 24-bit readX, as discussedJeremy Allison2007-05-161-6/+12
| | | | | | | | | | | | with the Apple guys and Linux kernel guys. Still looking at how to do writeX as there's no recvfile(). Jeremy.
* | r22911: Pass a messaging_context to message_send_allVolker Lendecke2007-05-151-1/+2
| |
* | r22910: Make message_send_pid static to messages.cVolker Lendecke2007-05-153-35/+38
| |
* | r22909: Change prototype of dump_data(), so that it takes unsigned char *Michael Adam2007-05-151-3/+3
| | | | | | | | | | | | | | | | | | | | instead of char *, which matches what samba4 has. Fix all the callers to prevent compiler warnings. This essentially ports r22001 from SAMBA_3_0 to SAMBA_3_0_26. There are a few additional type cast corrections.
* | r22908: All callers of message_init now also call messaging_init. Unify those.Volker Lendecke2007-05-152-17/+14
| |
* | r22899: prepare merging from SAMBA_3_0:Stefan Metzmacher2007-05-1531-0/+6993
| | | | | | | | | | | | move source/tdb to source/lib/tdb metze
* | r22890: Fix cast. Michael Adam2007-05-151-2/+2
| | | | | | | | (In 3_0_26, TDB_DATA.dptr is still char, not unsigned char.)
* | r22868: Replace some message_send_pid calls with messaging_send_pid calls. MoreVolker Lendecke2007-05-141-1/+19
| | | | | | | | tomorrow.
* | r22852: merge fixes for CVE-2007-2446 and CVE-2007-2447 to all branchesGerald Carter2007-05-142-4/+190
| |
* | r22846: Chunk one to replace message_send_pid with messaging_send: Deep insideVolker Lendecke2007-05-141-1/+1
| | | | | | | | | | | | locking/locking.c we have to send retry messages to timed lock holders. The majority of this patch passes a "struct messaging_context" down there. No functional change, survives make test.
* | r22844: Introduce const DATA_BLOB data_blob_null = { NULL, 0, NULL }; andVolker Lendecke2007-05-141-0/+2
| | | | | | | | replace all data_blob(NULL, 0) calls.
* | r22775: For the cluster code I've developed a wrapper around tdb to put ↵Volker Lendecke2007-05-103-0/+701
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | different database backends in place dynamically. The main abstractions are db_context and db_record, it should be mainly self-describing, see include/dbwrap.h. You open the db just as you would open a tdb, this time with db_open(). If you want to fetch a record, just do the db->fetch() call, if you want to do operations on it, you need to get it with fetch_locked(). I added dbwrap_file.c (not heavily tested lately) as an example for what can be done with that abstraction, uses a file per key. So if anybody is willing to shape that up, we might have a chance on reiserfs again.... :-) This abstraction works fine for brlock.tdb, locking.tdb, connections.tdb and sessionid.tdb. It should work fine for the others as well, I just did not yet get around to convert them. If nobody loudly screams NO, then I will import the code that uses this soon. Volker
* | r22761: This introduces lib/conn_tdb.c with two main functions: ↵Volker Lendecke2007-05-082-2/+111
| | | | | | | | | | | | | | | | | | connections_traverse and connections_forall. This centralizes all the routines that did individual tdb_open("connections.tdb") and direct tdb_traverse. Volker
* | r22760: sync lib/talloc with SAMBA_3_0 and SAMBA_4_0Stefan Metzmacher2007-05-0810-24/+125
| | | | | | | | metze
* | r22754: When processing a string, ensure we don't write one pastJeremy Allison2007-05-071-6/+15
| | | | | | | | | | | | | | | | the terminating NULL if we've already processed the null in iconv. Jerry, once I get confirmation from Thomas Bork this needs to be in 3.0.25 final. Tests fine with valgrind here. Jeremy.
* | r22736: Start to merge the low-hanging fruit from the now 7000-line cluster ↵Volker Lendecke2007-05-075-39/+35
| | | | | | | | | | | | | | | | | | patch. This changes "struct process_id" to "struct server_id", keeping both is just too much hassle. No functional change (I hope ;-)) Volker
* | r22611: Fix from Jens Nissen <jens.nissen@gmx.net>. Fix badJeremy Allison2007-04-301-3/+0
| | | | | | | | | | | | | | | | | | | | | | memory leak I introduced into acl code, also remove redundent extra check for global_sid_System : global_sid_System == S-1-5-18 which is already included in the check for a domain of global_sid_NT_Authority == S-1-5 Jeremy.
* | r22590: Make TALLOC_ARRAY consistent across all uses.Jeremy Allison2007-04-301-2/+6
| | | | | | | | | | That should be it.... Jeremy.
* | r22589: Make TALLOC_ARRAY consistent across all uses.Jeremy Allison2007-04-302-6/+14
| | | | | | | | Jeremy.
* | r22564: Move the _strict -> _zeronull functions into lib/util.cJeremy Allison2007-04-293-105/+99
| | | | | | | | | | and out of talloc at tridge's request. Jeremy.
* | r22555: Ensure our paranoid malloc functions return NULL onJeremy Allison2007-04-281-0/+12
| | | | | | | | | | size == 0 so we have a known behavior. Jeremy.
* | r22542: Move over to using the _strict varients of the tallocJeremy Allison2007-04-271-1/+1
| | | | | | | | | | calls. No functional changes. Looks bigger than it is :-). Jeremy.
* | r22541: Added talloc_size_strict macro.Jeremy Allison2007-04-271-0/+1
| | | | | | | | Jeremy.
* | r22540: Added _strict varients of the macro calls - addedJeremy Allison2007-04-271-0/+6
| | | | | | | | | | prototypes. Jeremy.
* | r22539: Added _strict varients of the talloc calls toJeremy Allison2007-04-272-1/+96
| | | | | | | | | | return NULL on size == 0 varients. Jeremy.
* | r22481: Move check for non-mappable SIDs to after sid_to_uid,Jeremy Allison2007-04-231-0/+3
| | | | | | | | | | | | sid_to_gid mapping, add LocalSystem to non-mappable list. Jeremy.
* | r22415: Remove test directory once we are finished. Merge -r 22393:22394James Peach2007-04-201-0/+2
| | | | | | | | from SAMBA_3_0.
* | r22320: Be more careful and check for the euid instead of the uid.Lars Müller2007-04-171-1/+1
| | | | | | | | Thx for the hint James!
* | r22318: If we're running as non root we might not be able to dump the core fileLars Müller2007-04-171-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | to the corepath. Even the chdir() will fail if the LOGFILEBASE path is set 0700. If the currrent user doesn't have the permission to create the core file we end with: unable to change to <LOGFILEBASE> refusing to dump core The alternative would be to change the permissions of the directory. But taht would not ensure core dumps are working out of the box.
* | r22299: move ZERO_*, ARRAY_SIZE and PTR_DIFF macros into libreplaceStefan Metzmacher2007-04-172-0/+35
| | | | | | | | metze
* | r22281: merge from samba4:Stefan Metzmacher2007-04-161-56/+254
| | | | | | | | | | | | add a lot more detailed strtoll() and strtoull() tests metze
* | r22276: Fix name -> servicename in messages.cJeremy Allison2007-04-161-1/+1
| | | | | | | | Jeremy.
* | r22275: merge from samba4:Stefan Metzmacher2007-04-162-1/+11
| | | | | | | | | | | | | | | | - provide __LINESTR__ macro - add __STRINGSTRING() macro to really create a string of __LINE__ - fix __location__ macro metze
* | r22272: merge from samba4: Stefan Metzmacher2007-04-162-0/+7
| | | | | | | | | | | | | | | | provide __location__ in replace.h and see how the build-farm likes this simpler version metze
* | r22269: merge from samba4:Stefan Metzmacher2007-04-161-4/+6
| | | | | | | | | | | | protect #define __location__ with an #ifndef metze
* | r22265: merge from samba4:Stefan Metzmacher2007-04-162-2/+2
| | | | | | | | | | | | | | use AC_HAVE_DECL() because AC_CHECK_DECLS() defines to 1 or 0 and #ifndef doesn't work. metze
* | r22255: merge from samba4:Stefan Metzmacher2007-04-161-7/+56
| | | | | | | | | | | | | | - make the strtoll tests more verbose - add initial strtoull tests metze
* | r22251: merge from samba4:Stefan Metzmacher2007-04-162-1/+7
| | | | | | | | | | | | add prototype of setenv metze
* | r22248: merge from samba4:Stefan Metzmacher2007-04-161-1/+0
| | | | | | | | | | | | only test strtoll once metze
* | r22245: merge from samba4:Stefan Metzmacher2007-04-161-2/+0
| | | | | | | | | | | | remove useless printf's metze
* | r22241: merge from samba4:Stefan Metzmacher2007-04-161-2/+2
| | | | | | | | | | | | use strlcpy instead of strcpy to make the IBM checker happy metze
* | r22228: merge from samba4:Stefan Metzmacher2007-04-152-1/+24
| | | | | | | | | | | | move discard_const macros to librelace metze
* | r22225: merge from samba4:Stefan Metzmacher2007-04-151-5/+25
| | | | | | | | | | | | make comparing of struct tm more verbose and portable metze