summaryrefslogtreecommitdiffstats
path: root/source/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* r22844: Introduce const DATA_BLOB data_blob_null = { NULL, 0, NULL }; andVolker Lendecke2007-10-101-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-10-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
* r22772: - Still working on the fact that readahead() is not declared (on at ↵Derrell Lipman2007-10-103-0/+11
| | | | | | | | | | least one OS) but is available for linking. Instead of running configure tests with -Werror-implicit-function-declaration in developer mode (which may lead to different library functions being used in developer mode than when not in developer mode), add tests for whether readahead is declared. If not, provide a replacement declaration in lib/replace.
* r22761: This introduces lib/conn_tdb.c with two main functions: ↵Volker Lendecke2007-10-102-2/+111
| | | | | | | | | connections_traverse and connections_forall. This centralizes all the routines that did individual tdb_open("connections.tdb") and direct tdb_traverse. Volker
* r22759: sync lib/talloc with samba4Stefan Metzmacher2007-10-108-16/+103
| | | | metze
* r22754: When processing a string, ensure we don't write one pastJeremy Allison2007-10-101-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-10-105-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
* r22659: merge from SAMBA_4_0:Stefan Metzmacher2007-10-102-1/+14
| | | | | | | | - add AC_GNU_SOURCE macro for systems which don't have it (sles8) - fix compiler warning on some systems metze
* r22641: Install tdbdump and tdbbackup.Jelmer Vernooij2007-10-102-3/+3
|
* r22611: Fix from Jens Nissen <jens.nissen@gmx.net>. Fix badJeremy Allison2007-10-101-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-10-101-2/+6
| | | | | That should be it.... Jeremy.
* r22589: Make TALLOC_ARRAY consistent across all uses.Jeremy Allison2007-10-102-6/+14
| | | | Jeremy.
* r22564: Move the _strict -> _zeronull functions into lib/util.cJeremy Allison2007-10-103-105/+99
| | | | | and out of talloc at tridge's request. Jeremy.
* r22555: Ensure our paranoid malloc functions return NULL onJeremy Allison2007-10-101-0/+12
| | | | | size == 0 so we have a known behavior. Jeremy.
* r22542: Move over to using the _strict varients of the tallocJeremy Allison2007-10-102-3/+3
| | | | | calls. No functional changes. Looks bigger than it is :-). Jeremy.
* r22541: Added talloc_size_strict macro.Jeremy Allison2007-10-101-0/+1
| | | | Jeremy.
* r22540: Added _strict varients of the macro calls - addedJeremy Allison2007-10-101-0/+6
| | | | | prototypes. Jeremy.
* r22539: Added _strict varients of the talloc calls toJeremy Allison2007-10-102-1/+96
| | | | | return NULL on size == 0 varients. Jeremy.
* r22481: Move check for non-mappable SIDs to after sid_to_uid,Jeremy Allison2007-10-101-0/+3
| | | | | | sid_to_gid mapping, add LocalSystem to non-mappable list. Jeremy.
* r22418: Support running under launchd. We abstract the method of obtainingJames Peach2007-10-101-0/+242
| | | | | | sockets to listen on a little, because in the launchd case these are provided for us. We also add an idle timeout so that a daemon can exit after a period of inactivity.
* r22394: Remove test directory once we are finished.James Peach2007-10-101-0/+2
|
* r22391: Looks bigger than it is. Make "inbuf" availableJeremy Allison2007-10-101-7/+9
| | | | | | | to all callers of smb_setlen (via set_message() calls). This will allow the server to reflect back the correct encryption context. Jeremy.
* r22389: Start preparing for multiple encryption contexts in theJeremy Allison2007-10-101-7/+13
| | | | | | server. Allow server to reflect back to calling client the encryption context that was sent. Jeremy.
* r22366: sync lib/talloc/ with samba4Stefan Metzmacher2007-10-104-8/+22
| | | | metze
* r22364: sync lib/tdb/ with samba4Stefan Metzmacher2007-10-1010-82/+3300
| | | | | | there's no code change here... metze
* r22363: merge from samba4:Stefan Metzmacher2007-10-101-1/+1
| | | | | | fix compiler warning metze
* r22320: Be more careful and check for the euid instead of the uid.Lars Müller2007-10-101-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-10-101-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.
* r22317: add tdb_ prefix to non static functionStefan Metzmacher2007-10-103-8/+8
| | | | metze
* r22316: merge from samba4:Stefan Metzmacher2007-10-101-2/+2
| | | | | | this function should be static metze
* r22315: move tdbback.c content into tdbbackup.cStefan Metzmacher2007-10-103-273/+169
| | | | | | | | and make the functions static. also use libreplace headers in tdbbackup.c metze
* r22314: use libreplace headersStefan Metzmacher2007-10-101-12/+4
| | | | metze
* r22298: move ZERO_*, ARRAY_SIZE and PTR_DIFF macros into libreplaceStefan Metzmacher2007-10-102-0/+35
| | | | metze
* r22280: merge from samba4:Stefan Metzmacher2007-10-101-56/+254
| | | | | | add a lot more detailed strtoll() and strtoull() tests metze
* r22276: Fix name -> servicename in messages.cJeremy Allison2007-10-101-1/+1
| | | | Jeremy.
* r22274: merge from samba4:Stefan Metzmacher2007-10-102-1/+11
| | | | | | | | - provide __LINESTR__ macro - add __STRINGSTRING() macro to really create a string of __LINE__ - fix __location__ macro metze
* r22271: merge from samba4:Stefan Metzmacher2007-10-102-0/+7
| | | | | | | | provide __location__ in replace.h and see how the build-farm likes this simpler version metze
* r22268: merge from samba4:Stefan Metzmacher2007-10-101-4/+6
| | | | | | protect #define __location__ with an #ifndef metze
* r22264: merge from samba4:Stefan Metzmacher2007-10-102-2/+2
| | | | | | | use AC_HAVE_DECL() because AC_CHECK_DECLS() defines to 1 or 0 and #ifndef doesn't work. metze
* r22254: merge from samba4:Stefan Metzmacher2007-10-101-7/+56
| | | | | | | - make the strtoll tests more verbose - add initial strtoull tests metze
* r22252: merge from samba4:Stefan Metzmacher2007-10-102-1/+7
| | | | | | add prototype of setenv metze
* r22249: move tdb code to lib/tdb/ as in samba4Stefan Metzmacher2007-10-1031-0/+6905
| | | | metze
* r22247: merge from samba4:Stefan Metzmacher2007-10-101-1/+0
| | | | | | only test strtoll once metze
* r22244: merge from samba4:Stefan Metzmacher2007-10-101-2/+0
| | | | | | remove useless printf's metze
* r22240: merge from samba4:Stefan Metzmacher2007-10-101-2/+2
| | | | | | use strlcpy instead of strcpy to make the IBM checker happy metze
* r22229: discard_const_p is in lib/replace nowStefan Metzmacher2007-10-101-4/+0
| | | | metze
* r22227: merge from samba4:Stefan Metzmacher2007-10-102-1/+24
| | | | | | move discard_const macros to librelace metze
* r22224: merge from samba4:Stefan Metzmacher2007-10-101-5/+25
| | | | | | make comparing of struct tm more verbose and portable metze
* r22221: merge from samba4:Stefan Metzmacher2007-10-1011-15/+1426
| | | | | | - libreplace unsetenv() and strptime() replacements metze
* r22213: We can't use become_root() here, as it does DEBUG()Volker Lendecke2007-10-101-5/+8
| | | | | | | | itself. become_root_uid_only did not :-) Revert 21868, we need to find a better way. Volker