summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* tsocket/bsd: fix do_bind logic for AF_INETStefan Metzmacher2010-02-171-2/+2
| | | | | | We want the explicit bind() when we don't use the any address. metze
* socket_wrapper: also ignore AF_INET6 in swrap_setsockopt()Stefan Metzmacher2010-02-171-0/+4
| | | | metze
* util: added samba_runcmd()Andrew Tridgell2010-02-173-0/+275
| | | | | | | | | This allows us to run a child command in an async fashion, with control over logging of stdout and stderr (which appears in the Samba log file). This is useful for ensuring we don't miss important messages from rndc commands (for example). Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-dsdb: removed gendb_search_single_extended_dn()Andrew Tridgell2010-02-162-105/+0
| | | | | | Use dsdb_search_one() instead, which allows for arbitrary controls Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* util: update three other copies of our dlinklist.h macrosAndrew Tridgell2010-02-141-48/+115
| | | | | ldb and tevent have their own copies of these macros. This brings them in sync with the master copy of dlinklist.h
* lib: use TYPESAFE_QSORT() in lib/ and libcli/Andrew Tridgell2010-02-141-1/+2
|
* s4-ldb: use TYPESAFE_QSORT() in the rest of the ldb codeAndrew Tridgell2010-02-141-1/+3
|
* use ZERO_STRUCTVolker Lendecke2010-02-131-1/+2
|
* Use ZERO_STRUCTPVolker Lendecke2010-02-131-1/+1
|
* s3: Fix a typoVolker Lendecke2010-02-131-1/+1
|
* tdb: use fdatasync() instead of fsync() in transactionsAndrew Tridgell2010-02-131-1/+1
| | | | This might help on some filesystems
* libreplace: add fdatasync() if not availableAndrew Tridgell2010-02-132-1/+5
|
* util: added TYPESAFE_QSORT() macroAndrew Tridgell2010-02-131-0/+38
| | | | | This makes it much harder to get the type of a qsort comparison function wrong.
* tdb: Apply some const, just for clarityVolker Lendecke2010-02-131-1/+1
|
* s3: Add tdb_data_equalVolker Lendecke2010-02-122-0/+9
|
* util: added file_compare() utility functionAndrew Tridgell2010-02-112-0/+27
| | | | | | | file_compare() returns true if two files are the same. It is meant for small files. Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* libreplace: added replacements for dprintf() and vdprintf()Andrew Tridgell2010-02-112-1/+32
| | | | | | these are very useful for writing files with formatted writes Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* test:local added LOCAL-DLINKLIST testsuiteAndrew Tridgell2010-02-101-0/+130
| | | | (cherry picked from commit 95a5bee2c30a67a35604b0456ab7836f6dc67702)
* util: rewrite dlinklist.h so that DLIST_ADD_END() is O(1)Andrew Tridgell2010-02-101-59/+111
| | | | | | | | | | | | | | This changes the meaning of the ->prev pointer in our doubly linked lists to point at the end of the list from the front of the list. That allows us to implement DLIST_ADD_END() and related functions in O(1) time, which can be a huge saving in many places in Samba. This also means that the 'type' argument to various DLIST_*() macros is no longer needed, but I have left it in for now to keep the patchset small, which will make it easier to revert if any problems are found. In the future we should remove the 'type' arguments. (jra. Move the one use of DLIST_TAIL over to the new macros).
* Temporary changes to dlinklist to keep the implementation static whilstJeremy Allison2010-02-101-0/+16
| | | | | | | uses of (list)->prev are moved over to DLIST_PREV. This will be replaced when the final (new) version of the dlinklist.h header is added. Jeremy.
* tdb: fix recovery reuse after crashRusty Russell2010-02-101-4/+10
| | | | | | | | | | | | | | | If a process (or the machine) dies after just after writing the recovery head (pointing at the end of file), the recovery record will filled with 0x42. This will not invoke a recovery on open, since rec.magic != TDB_RECOVERY_MAGIC. Unfortunately, the first transaction commit will happily reuse that area: tdb_recovery_allocate() doesn't check the magic. The recovery record has length 0x42424242, and it writes that back into the now-valid-looking transaction header) for the next comer (which happens to be tdb_wipe_all in my tests). Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* tdb: give a name to the invalid recovery area constant (0)Rusty Russell2010-02-103-4/+5
| | | | Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* release-scripts: parametrize scriptsSimo Sorce2010-02-083-62/+84
| | | | | | | This should make it easier to keep all release scripts alined as it will reduce the difference between them to ideally a few variables Also moves the tdb script in the scripts directory.
* talloc: Fix abi checks in release scriptSimo Sorce2010-02-081-17/+24
| | | | | We must perform abi checks against the version we are going to release. Not against the current tree we are in.
* talloc: Fix abi checks and ifdefsSimo Sorce2010-02-083-4/+32
| | | | | teach the abi check scripts to skip the DOXYGEN sections fix the header to use #ifdef DOXYGEN and not #if DOXYGEN
* libreplace: add check for NSS_WRAPPER_DISABLE similar to SOCKET_WRAPPER_DISABLEStefan Metzmacher2010-02-081-2/+4
| | | | metze
* libreplace: Attempt to fix bug 5910, detect a broken getaddrinfoVolker Lendecke2010-02-081-0/+25
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3: signals are processed twice in child.Bo Yang2010-02-093-5/+36
| | | | Signed-off-by: Bo Yang <boyang@samba.org>
* talloc: fixed doc typoAndrew Tridgell2010-02-081-1/+1
|
* Move the talloc details to the mainpage.Andreas Schneider2010-02-082-64/+69
| | | | Signed-off-by: Andrew Tridgell <tridge@samba.org>
* talloc: Added doxygen config file.Andreas Schneider2010-02-081-0/+1538
| | | | Signed-off-by: Andrew Tridgell <tridge@samba.org>
* talloc: Documented talloc with doxygen.Andreas Schneider2010-02-082-67/+1559
| | | | Signed-off-by: Andrew Tridgell <tridge@samba.org>
* tdb: raise version to 1.2.1Simo Sorce2010-02-061-1/+1
| | | | | after recent fixes we need to raise the version to 1.2.1 so that we can require also the right patched version.
* s4:UID wrapper - Make it work on older distributionsMatthias Dieter Wallnöfer2010-02-052-4/+20
| | | | | | | | | | | On my older CentOS 4 installation I had the problem with the missing substitution prototypes ("uwrap_*"). So I added them to "uid_wrapper.h". Also, I made the head of the "uid_wrapper.c" file more like the one of "nss_wrapper.c" - it shouldn't change that much, I did it only to be consistent. This patch should fix the build on older distributions while keep it running on newer ones.
* s4:UID wrapper - Fix includesMatthias Dieter Wallnöfer2010-02-052-1/+19
| | | | | | | The includes of the UID wrapper headers werent't really efficient according to metze's post on the technical mailing list (http://lists.samba.org/archive/samba-technical/2010-February/069165.html). To achieve this move the "uid_wrapper.h" includes into "lib/util/unix_privs.c", "lib/util/util.c", "ntvfs/posix/pvfs_acl.c" and "ntvfs/unixuid/vfs_unixuid.c".
* Change uint_t to unsigned int in lib/utilMatt Kraai2010-02-024-6/+6
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* Change uint_t to unsigned int in lib/tallocMatt Kraai2010-02-022-6/+6
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* Change uint_t to unsigned int in lib/cryptoMatt Kraai2010-02-021-4/+4
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* Change uint_t to unsigned int in lib/replaceMatt Kraai2010-02-024-4/+1
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* tdb: fix an early release of the global lock that can cause data corruptionVolker Lendecke2010-02-011-5/+10
| | | | | | | | | | | | | | | | | | | There was a bug in tdb where the tdb_brlock(tdb, GLOBAL_LOCK, F_UNLCK, F_SETLKW, 0, 1); (ending the transaction-"mutex") was done before the /* remove the recovery marker */ This means that when a transaction is committed there is a window where another opener of the file sees the transaction marker while the transaction committer is still fully functional and working on it. This led to transaction being rolled back by that second opener of the file while transaction_commit() gave no error to the caller. This patch moves the F_UNLCK to after the recovery marker was removed, closing this window.
* lib/util: remove data_blob_talloc_reference()Stefan Metzmacher2010-01-292-23/+0
| | | | | | We want to avoid the usage of talloc_reference() in Samba. metze
* tsocket: Fix the description of tstream_writev_queue_send/recvKai Blin2010-01-281-6/+6
|
* tsocket: Fix description for tstream_readv_pdu_queue_send/recvKai Blin2010-01-281-7/+6
|
* Revert "libreplace: fix unused varibale warning on IRIX"Björn Jacke2010-01-261-2/+2
| | | | this one was broken
* libreplace: fix unused varibale warning on IRIXBjörn Jacke2010-01-261-2/+2
|
* lib/popt: Fix typo in README.Karolin Seeger2010-01-251-1/+1
| | | | Karolin
* libreplace: Fix a C++ warningVolker Lendecke2010-01-231-2/+2
|
* s4: Include Python.h early to avoid double definition errors.Jelmer Vernooij2010-01-211-0/+1
|
* Work around bad use of autoconf internaLars Müller2010-01-181-13/+37
| | | | | Merge fix made by Andreas Schwab <schwab@linux-m68k.org>. This change had been in use by SUSE since 2008-07-03.
* subunit/testtools: Include newer version.Jelmer Vernooij2010-01-1611-22/+205
|