summaryrefslogtreecommitdiffstats
path: root/source/lib
Commit message (Collapse)AuthorAgeFilesLines
...
| * r21076: Two pieces of infrastructure from Samba4: An API-compatible ↵Volker Lendecke2007-01-312-0/+219
| | | | | | | | | | | | | | | | messaging wrapper and tdb_wrap_open. Volker
| * r21064: The core of this patch isVolker Lendecke2007-01-304-16/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | void message_register(int msg_type, void (*fn)(int msg_type, struct process_id pid, - void *buf, size_t len)) + void *buf, size_t len, + void *private_data), + void *private_data) { struct dispatch_fns *dfn; So this adds a (so far unused) private pointer that is passed from message_register to the message handler. A prerequisite to implement a tiny samba4-API compatible wrapper around our messaging system. That itself is necessary for the Samba4 notify system. Yes, I know, I could import the whole Samba4 messaging system, but I want to do it step by step and I think getting notify in is more important in this step. Volker
| * r21060: Start refactoring out the non-return case statementsJeremy Allison2007-01-301-8/+8
| | | | | | | | | | into functions. Jeremy.
| * r21005: Add a debug message for EAGAIN error of setresuid.Volker Lendecke2007-01-241-1/+7
| | | | | | | | Volker
| * r20916: Add in the delete on close final fix - but only enabledJeremy Allison2007-01-191-0/+4
| | | | | | | | | | with -DDEVELOPER. Jeremy.
| * r20913: Fix the build.Jeremy Allison2007-01-191-3/+4
| | | | | | | | Jeremy.
| * r20912: Ensure the list always remains sorted even whenJeremy Allison2007-01-191-17/+29
| | | | | | | | | | moving events around. Jeremy.
| * r20873: Some correctness fixes w.r.t. Samba4 torture BASE-DELETE.Jeremy Allison2007-01-181-0/+16
| | | | | | | | | | | | | | | | Allow us to correctly refuse to set delete on close on a non-empty directory. There are still some delete-on-close wrinkles to be fixed, but I understand how to do that better now. I'll fix this tomorrow. Jeremy.
| * r20846: Before this gets out of control...Volker Lendecke2007-01-171-22/+197
| | | | | | | | | | | | | | | | | | | | | | This add a struct event_context and infrastructure for fd events to smbd. This is step zero to import lib/events. Jeremy, I rely on you to watch the change in receive_message_or_smb() closely. For the normal code path this should be the only relevant change. The rest is either not yet used or is cosmetic. Volker
| * r20838: Small fix from Jiri.Sasek@Sun.COM to fix nullJeremy Allison2007-01-161-2/+3
| | | | | | | | | | pointer deref. Jeremy
| * r20820: merge from samba4:Stefan Metzmacher2007-01-152-2/+3
| | | | | | | | | | | | | | | | - include system/aio.h - use full prototype for main - use ifdef instead if metze
| * r20817: sync lib/replace with samba4Stefan Metzmacher2007-01-1512-40/+149
| | | | | | | | metze
| * r20789: merge from samba4:Stefan Metzmacher2007-01-152-12/+0
| | | | | | | | | | | | - remove the epoll configure checks from libreplace metze
| * r20695: Remove duplication of constants.Jeremy Allison2007-01-121-11/+2
| | | | | | | | Jeremy.
| * r20694: To get this right we need to do signed 64-bitJeremy Allison2007-01-121-7/+7
| | | | | | | | | | | | | | comparisons here, not unsigned as we're eventually casting into what it normall a signed 32 bit value. Guenther please check (but I think I'm right here). Jeremy.
| * r20692: Fix bug found by Guenther -Jeremy Allison2007-01-121-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Just try to log on in offline mode without the fix: all accounts are expired, although they are set to never expire in the PAC/info3. NTTIME "Never" needs to get (time_t) -1. We were casting a uint64 to time_t before comparing, and we should have been doing it the other way around. Guenther please check this fixes things. Jeremy.
| * r20394: This is a *VERY* early start of my work on notify.Volker Lendecke2006-12-281-0/+31
| | | | | | | | | | | | | | | | | | Checking in because Jeremy was bugging me. Potentially this becomes quite intrusive, I'm not sure if I should open a temporary branch for this. Jeremy, Jerry, do you think 3_0 is the right place for this? Volker
| * r20385: merge from samba4:Stefan Metzmacher2006-12-281-5/+7
| | | | | | | | | | | | | | only try to find dlfcn.h if the dlopen symbol was found, it hopefully fixes systems where dlfcn.h but no library with dlopen metze
| * r20361: Prevent strnlen_w reading beyond max. ValgrindJeremy Allison2006-12-271-1/+1
| | | | | | | | | | found by Volker. Jeremy
| * r20269: merge -r20264:20267 from SAMBA_3_0_24Herb Lewis2006-12-205-0/+11
| | | | | | | | more no previous prototype warnings
| * r20261: merge 20260 from samba_3_0_24Herb Lewis2006-12-192-1/+2
| | | | | | | | clean up a bunch of no previous prototype warnings
| * r20248: merge 20247 from samba_3_0_24Herb Lewis2006-12-181-1/+1
| | | | | | | | get rid of warning: value computed is not used
| * r20215: Next step trying to fix the Solaris build.Volker Lendecke2006-12-161-2/+2
| | | | | | | | | | | | | | | | | | I think "anonimous" is correctly spelled "anonymous". The Solaris compile is referring to this as "anonymous" in line 814 of smbldap.c. Simo, please check. Thanks, Volker
| * r20208: Change sprintf_append() never to use malloc,Jeremy Allison2006-12-162-19/+13
| | | | | | | | | | | | but always use a talloc context. Thanks to simo for pointing this out. Jeremy.
| * r20197: merge talloc fixes from samba4:Stefan Metzmacher2006-12-152-20/+18
| | | | | | | | | | | | | | | | | | - make most static functions inline - handle NULL pointers in talloc_parent_chunk() - use talloc_parent_chunk() in talloc_parent_name() to fix a bug found by the IBM checker metze
| * r20183: Fix the build.Günther Deschner2006-12-151-6/+6
| | | | | | | | Guenther
| * r20181: Improve NT status to pam error mapping.Jeremy Allison2006-12-151-0/+7
| | | | | | | | Jeremy.
| * r20179: Sync up with Samba4 - remove blank lines at theJeremy Allison2006-12-151-3/+9
| | | | | | | | | | end parsing a file. Jeremy.
| * r20174: If we're only going to call one handler per messageJeremy Allison2006-12-141-4/+4
| | | | | | | | | | then terminate the traversal once we've done that. Jeremy.
| * r20165: Change messaging subsystem to only allow one messageJeremy Allison2006-12-141-3/+11
| | | | | | | | | | | | | | per type - this is all we use right now and makes re-entrancy problems with deleting handlers with a message dispatch loop go away. Jeremy.
| * r20160: Fix long-standing (ie. from initial code I think) bugJeremy Allison2006-12-131-2/+5
| | | | | | | | | | | | | | | | in tdb message processing. If we're inside a dispatch function and we delete our own handler we'd walk onto the next pointer from a deleted memory block. Fixes crash bug in winbindd (and goodness knows where else). Jeremy.
| * r20148: Forgot to merge. Ensure open_any_socket_out()Jeremy Allison2006-12-131-1/+1
| | | | | | | | | | is safe from signals. Jeremy.
| * r20133: get rid of defined but not used warning - static function only usedHerb Lewis2006-12-121-5/+2
| | | | | | | | inside the #ifdef HAVE_NATIVE_ICONV
| * r20131: get rid of a few no previous prototype warningsHerb Lewis2006-12-122-0/+2
| |
| * r20116: Start merging in the work done to create the new idmap subsystem.Simo Sorce2006-12-121-25/+50
| | | | | | | | Simo.
| * r20110: Fix interaction between paranoid malloc checkerJeremy Allison2006-12-111-0/+17
| | | | | | | | | | and lib/replace. Found by Herb - thanks ! Jeremy.
| * r20090: Fix a class of bugs found by James Peach. EnsureJeremy Allison2006-12-095-46/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | we never mix malloc and talloc'ed contexts in the add_XX_to_array() and add_XX_to_array_unique() calls. Ensure that these calls always return False on out of memory, True otherwise and always check them. Ensure that the relevent parts of the conn struct and the nt_user_tokens are TALLOC_DESTROYED not SAFE_FREE'd. James - this should fix your crash bug in both branches. Jeremy.
| * r20087: Ensure we clean up any random pending events weJeremy Allison2006-12-081-0/+15
| | | | | | | | | | | | may have inherited from our parent in the winbindd forked child. Jeremy.
| * r20054: Revert my changes, Simo promised to work on it :-)Volker Lendecke2006-12-061-67/+42
| |
| * r20050: Remove a bogus NULL check, LTDB_OBJECTCLASS is a static stringVolker Lendecke2006-12-061-3/+0
| |
| * r20049: ReformattingVolker Lendecke2006-12-061-39/+67
| |
| * r20046: Add ldb_search_exp_fmt and port comment to 4Volker Lendecke2006-12-051-0/+10
| |
| * r20036: Merge ldb_search_exp_fmt -- Thanks simoVolker Lendecke2006-12-051-0/+39
| |
| * r19991: Sorry for this 2000-liner...Volker Lendecke2006-12-011-30/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The main thing here is a rewrite of srv_winreg_nt.c. The core functionality has moved to registry/reg_api.c which is then usable by the rest of Samba as well. On that way it fixes creating keys with more than one element in the path. This did not work before. Two things that sneaked in (sorry :-) is the change of some routines from NTSTATUS to WERROR the removed "parent" argument to regkey_open_internal. Volker
| * r19982: From Michael Adam (ma@sernet.de) (thanks!:-)Stefan Metzmacher2006-12-011-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | Metze: as noted by "shattered" and discussed on the irc, here is a patch to lib/sysquotas_linux.c replacing some "get"s by "set"s. The other lib/sysquotas*.c files look ok to me. But in the linux variant, the problem is not in the actual call of quotactl but in the preparation of the respective "D" structs. This makes the difference between the get and set calls for SMB_USER_FS_QUOTA_TYPE and SMB_GROUP_FS_QUOTA_TYPE. metze
| * r19978: More "net sam policy" improvements. Thanks to Karolin Seeger ↵Volker Lendecke2006-12-011-16/+12
| | | | | | | | | | | | <ks@sernet.de> Volker
| * r19963: Add 'registry shares = yes' and registry key security descriptors.Volker Lendecke2006-11-301-4/+61
| |
| * r19957: Initial framework to make winbindd robustJeremy Allison2006-11-291-0/+2
| | | | | | | | | | | | | | | | against tdb corruption. Needs fleshing out (and I forgot one record type) and needs helpful suggestion from Volker to validate freelist, but should give an idea of how this will look. Jeremy.
| * r19950: talloc_destroy is replaced these daysVolker Lendecke2006-11-291-2/+1
| |
| * r19942: Fix Coverity id 333, a dereference before a NULL check.Volker Lendecke2006-11-291-3/+6
| | | | | | | | | | | | | | Metze, you wanted to port talloc_get_type_abort() to 4. Should I just use it in 3-ldb? Volker