summaryrefslogtreecommitdiffstats
path: root/source/lib
Commit message (Collapse)AuthorAgeFilesLines
* r25403: grab latest changes form 3.2 tree in preparation for release of ↵Gerald Carter2007-09-281-0/+1
| | | | 3.2.0pre1
* r25387: Sync with 3.2.0 svn treeGerald Carter2007-09-2722-512/+794
|
* r25061: Pro-actively shut up Coverity :-)Volker Lendecke2007-09-101-3/+5
|
* r25055: Add file_id_string_tosVolker Lendecke2007-09-101-18/+4
| | | | This removes file_id_string_static and file_id_string_static2
* r25040: Add "net sam rights"Volker Lendecke2007-09-082-1/+39
| | | | | | | Not strictly in the SAM, but close enough. This command acts directly on the local tdb, no running smbd required This also changes the root-only check to a warning
* r25025: Remove an unused functionVolker Lendecke2007-09-081-5/+0
|
* r24993: Apply some constVolker Lendecke2007-09-071-1/+2
|
* r24953: Merge r21785 and r23121:Volker Lendecke2007-09-041-1/+1
| | | | | | | | | | | | Avoid an unnecessary gettimeofday() call Volker Fix Bug #2727 and let pam_smbpass at least link and dlopen correctly again. Thanks to Bartlomiej Solarz-Niesluchowski <Bartlomiej.Solarz-Niesluchowski@wit.edu.pl>. Guenther
* r24950: Merge r21784Volker Lendecke2007-09-042-98/+34
| | | | | | | Replace smb_register_idle_event() with event_add_timed(). This fixes winbind which did not run the idle events to drop ldap connections. Volker
* r24949: Remove some static buffersVolker Lendecke2007-09-043-62/+42
|
* r24903: One more tick in #if 0 codeVolker Lendecke2007-09-021-1/+1
|
* r24902: DEBUG might use talloc_tos() itself...Volker Lendecke2007-09-021-1/+1
|
* r24877: Don't panic in tdb validation code when the fork or waitpid fails.Michael Adam2007-09-021-5/+7
| | | | | | Return error instead. Michael
* r24848: Make tdb_validate() take an open tdb handle instead of a file name.Michael Adam2007-08-311-16/+41
| | | | | | | | | | | A new wrapper tdb_validate_open() takes a filename an opens and closes the tdb before and after calling tdb_validate() respectively. winbindd_validata_cache_nobackup() now dynamically calls one of the above functions depending on whether the cache tdb has already been opened or not. Michael
* r24847: Change standard failure return code of tdb_validate from "-1" to "1".Michael Adam2007-08-311-2/+2
| | | | | | (This is more safely used with casts from int to uint8, e.g.) Michael
* r24809: Consolidate the use of temporary talloc contexts.Volker Lendecke2007-08-301-0/+108
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds the two functions talloc_stackframe() and talloc_tos(). * When a new talloc stackframe is allocated with talloc_stackframe(), then * the TALLOC_CTX returned with talloc_tos() is reset to that new * frame. Whenever that stack frame is TALLOC_FREE()'ed, then the reverse * happens: The previous talloc_tos() is restored. * * This API is designed to be robust in the sense that if someone forgets to * TALLOC_FREE() a stackframe, then the next outer one correctly cleans up and * resets the talloc_tos(). The original motivation for this patch was to get rid of the sid_string_static & friends buffers. Explicitly passing talloc context everywhere clutters code too much for my taste, so an implicit talloc_tos() is introduced here. Many of these static buffers are replaced by a single static pointer. The intended use would thus be that low-level functions can rather freely push stuff to talloc_tos, the upper layers clean up by freeing the stackframe. The more of these stackframes are used and correctly freed the more exact the memory cleanup happens. This patch removes the main_loop_talloc_ctx, tmp_talloc_ctx and lp_talloc_ctx (did I forget any?) So, never do a tmp_ctx = talloc_init("foo"); anymore, instead, use tmp_ctx = talloc_stackframe() :-) Volker
* r24773: Fix a ctdb connection lockupVolker Lendecke2007-08-293-13/+57
| | | | | | | | | The lockup could happen when packet_read_sync() gets two packets in a row, the first one being an async message, and the second one being the response to a ctdb request. Also add some debug msg to ctdb_conn.c, and cut off the "locking key" messages to only dump 20 hex chars at debug level 10. >10 will dump everything.
* r24759: Comment out the _nonnull calls for 3.2.x, as agreed with tridge.Jeremy Allison2007-08-291-0/+6
| | | | | | Leaving the commented out code for now, in case I need to re-test some stuff. Jeremy
* r24744: Increase length by what we got from recv, not from ioctlVolker Lendecke2007-08-281-2/+3
|
* r24743: Fix build warning.Günther Deschner2007-08-281-1/+1
| | | | Guenther
* r24742: Add experimental DsGetDcName() call (will be used by krb5 locator ↵Günther Deschner2007-08-281-0/+72
| | | | | | | | for fine grained KDC DNS queries). Guenther
* r24738: Fix one more use of pwrite in tdb code in the spirit of r23972 and ↵Michael Adam2007-08-281-6/+25
| | | | | | r23977. Michael
* r24733: Add support for storing DATA_BLOBs in gencache.tdb (including ↵Günther Deschner2007-08-281-0/+157
| | | | | | | | | torturetest). Mimir, please have a look. DATA_BLOBs will now just show up as "DATA_BLOB" values with "net cache list". Guenther
* r24660: Merge the inbuf/outbuf changesVolker Lendecke2007-08-253-2/+129
|
* r24653: Some trivial 3_2->3_2_0 mergesVolker Lendecke2007-08-242-7/+7
|
* r24652: Janitor for jelmer, merge r24340:Volker Lendecke2007-08-248-59/+56
| | | | Use standard data type uint32_t rather than tdb-specific u32.
* r24628: merge from SAMBA_4_0:Stefan Metzmacher2007-08-221-2/+12
| | | | | | | | as TALLOC_ABORT() is defined to abort() by default wrap it into a function so that the function name in the backtrace shows what happens. metze
* r24619: move printing out the version string and exit()Stefan Metzmacher2007-08-221-3/+12
| | | | | | | | into the popt _POST processing. Now 'smbd -V --bla' complains about an unknown option metze
* r24610: Add a debug message that the workaround has been activated...Michael Adam2007-08-211-0/+2
|
* r24609: Fix the fix of r23668 for win2k giving one zero byteMichael Adam2007-08-211-1/+1
| | | | | | | | instead of a 2-byte zero character. I can't recall what rode me when I put that "2" there. But now I think I have got it right... :-) Michael
* r24607: Merge the sessionsetup fix from 3.2Jeremy Allison2007-08-211-1/+1
| | | | Jeremy.
* r24547: Fix #4897, patch from David S. Collier-Brown <davecb@spamcop.net> -- ↵Volker Lendecke2007-08-191-6/+6
| | | | Thanks!
* r24546: Fix some C++ and type-punned warningsVolker Lendecke2007-08-191-2/+4
|
* r24435: Fix typo.Günther Deschner2007-08-141-1/+1
| | | | Guenther
* r24305: merge from SAMBA_3_2:Stefan Metzmacher2007-08-101-0/+242
| | | | | | | | | patch from Bjoern JAcke <bj@SerNet.DE>: attached patches add EA support for Solaris. If no one disagrees, can someone check this in please? metze
* r24267: Fix the build farmVolker Lendecke2007-08-071-2/+2
| | | | | I had only tested with "net getlocalsid". posix_locking_init() calls this with a NULL name...
* r24265: Add the tdb_hashsize:<tdbname> parameterVolker Lendecke2007-08-071-0/+22
| | | | | | | | | | This makes it possible to set the default hashsize for any tdb. I would like to remove the "open files database hash size" in favor of this one. I'll check that removal in with the next commit, please complain/revert if it's not ok. Volker
* r24122: merge from SAMBA_3_2:Stefan Metzmacher2007-08-021-4/+3
| | | | | | | | | add a file_id_create() hook into the VFS layer it's needed for some cluster filesystems to overload this function. metze
* r24114: merge from SAMBA_3_2:Stefan Metzmacher2007-08-012-2/+6
| | | | | | | some little fixes to get the correct error message when using "clustering = yes" and ctdbd isn't running metze
* r24054: Fix some warningsVolker Lendecke2007-07-261-2/+2
|
* r24049: Some more 64-bit warningsVolker Lendecke2007-07-251-2/+4
|
* r24033: We need to be able to cope with packet_handler calling itselfVolker Lendecke2007-07-241-4/+5
| | | | recursively
* r24032: It helps testing tremendously if the cluster messaging actually sendsVolker Lendecke2007-07-242-0/+16
| | | | and receives messages to other nodes... :-)
* r24031: Fix some 64 bit warningsVolker Lendecke2007-07-241-3/+4
|
* r24026: packet_send() expects DATA_BLOB elements as vaargsStefan Metzmacher2007-07-241-3/+3
| | | | | | and not TDB_DATA metze
* r24023: Correctly support REG_BINARY in registry_push_value() andGünther Deschner2007-07-241-2/+6
| | | | | | registry_pull_value(). Guenther
* r24008: Fix Bug 4792. Thanks to David Gajewski <dgajews@math.utoledo.edu> and toVolker Lendecke2007-07-231-1/+1
| | | | | | Timur I. Bakeyev for bugging me :-) Volker
* r23981: Make tdb_validate_and_backup try harder to end up with a valid tdb:Michael Adam2007-07-201-23/+60
| | | | | | | | | If restoring a backup fails due to lack of space, remove the corrupt tdb previously moved away to "name.corrupt", and retry. If restoring still fails, move the backup in place instead of copying it. Michael
* r23980: Fix one more use of pwrite in expand_file.Michael Adam2007-07-201-1/+10
| | | | Michael
* r23979: Fix another occurence of (written != requested) as anMichael Adam2007-07-201-5/+22
| | | | | | | | | error condition to write. This is in tdb_new_database. Fix one call to tdb_new_database in tdb_open_ex to not overwrite the newly propagated errno (typically ENOSPC). Michael