Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | strictly, you can't #if on somthing that may or may not be defined. | Andrew Bartlett | 2003-03-15 | 1 | -1/+1 |
| | | | | Andrew Bartlett | ||||
* | Fresh meat in trusted domains code: | Rafal Szczesniak | 2003-03-14 | 1 | -7/+146 |
| | | | | | | | | | | | | | | | - packing/unpacking utility functions for trusted domain password struct; can be used to prepare buffer to store in secrets.tdb or (soon) passdb backend - similiar functions for DOM_SID - respectively modified secrets_(fetch|store) routines - new auth mapping code utilising introduced is_trusted_domain function - added tdb (un)packing of single bytes Rafal | ||||
* | Fixed crash bug when calling tdb_unlockkeys() with no locked keys. | Tim Potter | 2003-03-13 | 1 | -0/+2 |
| | | | | woot! | ||||
* | Remove valgrind_strlen function, hopefully no longer needed with | Martin Pool | 2003-03-11 | 1 | -10/+0 |
| | | | | recent Valgrind relases and clashing with -DVALGRIND. | ||||
* | Note about using Valgrind with tdbs. | Martin Pool | 2003-03-11 | 1 | -0/+21 |
| | |||||
* | When opening an existing DB, don't require the hash_size specified to | Martin Pool | 2003-03-11 | 1 | -2/+1 |
| | | | | | | | | the open call to be the same as that of the existing tdb. The specified hash_size is only used if the tdb needs to be (re)created. With this patch in place, tdbtool can open the printing tdbs, which are created with a hash_size of 5000. Before it would fail with EIO. | ||||
* | Ensure tdb error code is set for corrupt and i/o errors before calling | Jeremy Allison | 2003-02-20 | 1 | -0/+19 |
| | | | | | the log function. This allows the log function to take action. Jeremy. | ||||
* | Doc | Martin Pool | 2003-02-14 | 1 | -1/+5 |
| | |||||
* | Ensure we overwrite a tdb if the hash size changes. | Jeremy Allison | 2003-02-04 | 1 | -1/+2 |
| | | | | Jeremy. | ||||
* | Add 3 second timeout when terminating server and sending print notify | Jeremy Allison | 2003-01-30 | 1 | -4/+13 |
| | | | | | | messages. Stops build-up of large numbers of smbd's waiting to terminate on large print throughput. Jeremy. | ||||
* | Keep all the const warnings in one place, by adding a utility function to | Andrew Bartlett | 2003-01-12 | 1 | -44/+31 |
| | | | | | | make the TDB_DATA. Andrew Bartlett | ||||
* | fix tdb_append() prototype | Gerald Carter | 2003-01-11 | 1 | -1/+1 |
| | |||||
* | Added tdb_append() call. Efficiently adds to an entry. Used by new messaging | Jeremy Allison | 2003-01-11 | 3 | -12/+148 |
| | | | | | code. Also added torture tests for it. Jeremy. | ||||
* | tdb_chainlock_with_timeout: Add TODO: If we time out waiting for a | Martin Pool | 2003-01-09 | 1 | -0/+4 |
| | | | | | | | | | lock, it might be nice to use F_GETLK to get the pid of the process currently holding the lock and print that as part of the debugging message. I'd like to have this in appliance_head, but the code is too different so I won't worry for now. | ||||
* | BIG patch... | Andrew Bartlett | 2003-01-02 | 1 | -21/+21 |
| | | | | | | | | | | | | | | | | This patch makes Samba compile cleanly with -Wwrite-strings. - That is, all string literals are marked as 'const'. These strings are always read only, this just marks them as such for passing to other functions. What is most supprising is that I didn't need to change more than a few lines of code (all in 'net', which got a small cleanup of net.h and extern variables). The rest is just adding a lot of 'const'. As far as I can tell, I have not added any new warnings - apart from making all of tdbutil.c's function const (so they warn for adding that const string to struct). Andrew Bartlett | ||||
* | it's getting comic ... | Simo Sorce | 2002-12-17 | 1 | -1/+2 |
| | | | | yet another missing piece :-O | ||||
* | Fixed auth module code. Added VALGRIND defines to reduce spurious warnings. | Jeremy Allison | 2002-12-11 | 1 | -0/+10 |
| | | | | Jeremy. | ||||
* | Lots of fixes for error paths where tdb_fetch() data need freeing. | Jeremy Allison | 2002-11-23 | 1 | -4/+8 |
| | | | | | Found via a post from Arcady Chernyak <Arcady.Chernyak@efi.com>. Jeremy. | ||||
* | Add chainlock_read functions to get a read lock. Used in *massively* | Jeremy Allison | 2002-11-09 | 2 | -5/+50 |
| | | | | | contended tdb's (and I've got one :-). Jeremy. | ||||
* | Merge of scalable printing code fix... Needs testing. | Jeremy Allison | 2002-11-07 | 2 | -12/+10 |
| | | | | | | | Also tidied up some of Richard's code (I don't think he uses the compiler flags -g -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual like I do :-) :-). Jeremy. | ||||
* | Add a timeout to tdb_lock_bystring(). Ensure we never have more than | Jeremy Allison | 2002-10-04 | 3 | -6/+49 |
| | | | | | MAX_PRINT_JOBS in a queue. Jeremy. | ||||
* | Make explicit the difference between a tdb key with no data attached, and | Jeremy Allison | 2002-09-26 | 1 | -2/+11 |
| | | | | | a non existent entry. Stop a malloc(0) being called in the first case. Jeremy. | ||||
* | tdbdump also needs signal.h. Thanks to Guenther Deschner <gd@suse.de> | Volker Lendecke | 2002-09-23 | 1 | -0/+1 |
| | | | | Volker | ||||
* | tdb tools need #include <signal.h> | Jeremy Allison | 2002-09-19 | 3 | -0/+3 |
| | | | | Jeremy. | ||||
* | Never, *ever* hold a mutex lock in the message database where there may | Jeremy Allison | 2002-09-17 | 3 | -0/+17 |
| | | | | | | | be traversals being attempted. Yes, this was from bitter experience (and an out of control server :-). Also allow callers to break out of a tdb_chainlock with sigalarm if desired. Jeremy. | ||||
* | ensure that we unlock in case we hit a tdb error | Andrew Tridgell | 2002-08-30 | 1 | -0/+3 |
| | |||||
* | don't report the faiilure of non-blocking locks. They are supposed to | Andrew Tridgell | 2002-07-15 | 1 | -1/+1 |
| | | | | fail sometimes, thats why they are non-blocking :) | ||||
* | *Experimental* new large-scaling printer code. Splits printing.tdb into | Jeremy Allison | 2002-07-11 | 1 | -1/+2 |
| | | | | | | | a separate tdb per printer, but only keeps (currently one) tdb open at a time (although this is easily changed by changing a #define). Needs scalability testing with large numbers of printers now.... Jeremy. | ||||
* | don't backup to a newer file | Andrew Tridgell | 2002-06-28 | 1 | -1/+17 |
| | |||||
* | Added tdb_delete_by_string() function. | Tim Potter | 2002-06-03 | 1 | -0/+14 |
| | |||||
* | auto-recover from the fairly common case of a non-clean tdb shutdown | Andrew Tridgell | 2002-05-22 | 1 | -0/+10 |
| | | | | | while deleting a record. This leaves us with a non-free record on the free list. | ||||
* | fixed tdbtool from core dumping. But the braces to make Chris happy ! | Jean-François Micouleau | 2002-04-30 | 1 | -2/+4 |
| | | | | J.F. | ||||
* | Merge Herb's idmap endian fix. | Jeremy Allison | 2002-04-27 | 2 | -0/+7 |
| | | | | Jeremy. | ||||
* | We cannot set errno=0 in any of the wrapper calls as this breaks UNIX error | Jeremy Allison | 2002-04-19 | 1 | -1/+0 |
| | | | | | returns to the client. Jeremy. | ||||
* | First cut at fix for the EINTR problem... More needs to be done I think. | Jeremy Allison | 2002-04-19 | 1 | -1/+7 |
| | | | | Jeremy. | ||||
* | ignore a few more files | Andrew Tridgell | 2002-04-16 | 1 | -0/+1 |
| | |||||
* | Extra file for the tdb search code (linked list definition). | Andrew Bartlett | 2002-04-14 | 1 | -0/+37 |
| | | | | Andrew Bartlett | ||||
* | Partly based on the work by mimir (Rafal Szczesniak | Andrew Bartlett | 2002-04-14 | 1 | -0/+72 |
| | | | | | | | | | | | | | | <mimir@diament.ists.pwr.wroc.pl>) this patch allows samba to correctly enumerate its trusted domains - by exaimining the keys in the secrets.tdb file. This patch has been tested with both NT4 and rpcclient/wbinfo, and adds some extra functionality to talloc and rpc_parse to allow it to deal with already unicode strings. Finally, this cleans up some const warnings that were in net_rpc.c by pushing another dash of const into the rpc client code. Andrew Bartlett | ||||
* | Make our atomic increment code actually do this during its first/second run. | Andrew Bartlett | 2002-04-13 | 1 | -5/+20 |
| | | | | | | | The previous code would return the same value for both the initial and second call, only incrementing on later calls. Andrew Bartlett | ||||
* | Added Shirish's client side caching policy change. | Jeremy Allison | 2002-04-10 | 1 | -1/+2 |
| | | | | Jeremy. | ||||
* | When printing a tdb log message display "unnamed" instead of "unknown" if | Tim Potter | 2002-04-09 | 1 | -1/+1 |
| | | | | the tdb has not been named. | ||||
* | uint32 store and fectch functions, a signed int is not enough sometimes | Simo Sorce | 2002-04-07 | 1 | -0/+96 |
| | |||||
* | better check of called function's return | Simo Sorce | 2002-04-07 | 2 | -59/+127 |
| | | | | tdbtorture say it's ok | ||||
* | Make winbindd_idmap tdb endian independent. This is very important for | Jeremy Allison | 2002-03-21 | 1 | -93/+0 |
| | | | | | | | | sharing between machines with rsync. Finally removed tdb_store_int/tdb_fetch_int. Now only tdb_store_int32/tdb_fetch_int32 which are endian independent are allowed. Jeremy. | ||||
* | a bit more portability for tdbbackup | Andrew Tridgell | 2002-03-11 | 1 | -1/+2 |
| | |||||
* | make tdbbackup more portable | Andrew Tridgell | 2002-03-10 | 1 | -4/+17 |
| | |||||
* | prevent bogus compiler complaints about comments in comments | Andrew Tridgell | 2002-03-10 | 1 | -2/+2 |
| | |||||
* | added a bunch of explanation about tdbbackup | Andrew Tridgell | 2002-03-09 | 1 | -0/+23 |
| | |||||
* | don't use -pg by default when building standalone | Andrew Tridgell | 2002-03-09 | 1 | -1/+1 |
| | |||||
* | added -v and -s options | Andrew Tridgell | 2002-03-08 | 1 | -23/+101 |
| | | | | -v is used for verify/restore from backup |