| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| |
| |
| |
| |
| |
| |
| |
| | |
messaging wrapper
and tdb_wrap_open.
Volker
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
| |
| |
| |
| |
| | |
into functions.
Jeremy.
|
| |
| |
| |
| | |
Volker
|
| |
| |
| |
| |
| | |
with -DDEVELOPER.
Jeremy.
|
| |
| |
| |
| | |
Jeremy.
|
| |
| |
| |
| |
| | |
moving events around.
Jeremy.
|
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
| |
| |
| |
| |
| | |
pointer deref.
Jeremy
|
| |
| |
| |
| |
| |
| |
| |
| | |
- include system/aio.h
- use full prototype for main
- use ifdef instead if
metze
|
| |
| |
| |
| | |
metze
|
| |
| |
| |
| |
| |
| | |
- remove the epoll configure checks from libreplace
metze
|
| |
| |
| |
| | |
Jeremy.
|
| |
| |
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
| |
| |
| |
| |
| |
| |
| | |
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
|
| |
| |
| |
| |
| | |
found by Volker.
Jeremy
|
| |
| |
| |
| | |
more no previous prototype warnings
|
| |
| |
| |
| | |
clean up a bunch of no previous prototype warnings
|
| |
| |
| |
| | |
get rid of warning: value computed is not used
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
| |
| |
| |
| |
| |
| | |
but always use a talloc context.
Thanks to simo for pointing this out.
Jeremy.
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
- 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
|
| |
| |
| |
| | |
Guenther
|
| |
| |
| |
| | |
Jeremy.
|
| |
| |
| |
| |
| | |
end parsing a file.
Jeremy.
|
| |
| |
| |
| |
| | |
then terminate the traversal once we've done that.
Jeremy.
|
| |
| |
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| |
| | |
is safe from signals.
Jeremy.
|
| |
| |
| |
| | |
inside the #ifdef HAVE_NATIVE_ICONV
|
| | |
|
| |
| |
| |
| | |
Simo.
|
| |
| |
| |
| |
| | |
and lib/replace. Found by Herb - thanks !
Jeremy.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| |
| |
| | |
may have inherited from our parent in the winbindd
forked child.
Jeremy.
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
| |
| |
| |
| |
| |
| | |
<ks@sernet.de>
Volker
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| | |
|
| |
| |
| |
| |
| |
| |
| | |
Metze, you wanted to port talloc_get_type_abort() to 4. Should I just use it
in 3-ldb?
Volker
|