ira/wip.git
13 years agotevent: fix standalone make test
Stefan Metzmacher [Sat, 3 Jan 2009 09:41:17 +0000 (10:41 +0100)]
tevent: fix standalone make test

metze

13 years agoopen_socket_out is always used with SOCK_STREAM, remove argument "type"
Volker Lendecke [Sat, 3 Jan 2009 17:16:08 +0000 (18:16 +0100)]
open_socket_out is always used with SOCK_STREAM, remove argument "type"

13 years agoFix retval of async_syscall_result_int
Volker Lendecke [Sat, 27 Dec 2008 17:42:45 +0000 (18:42 +0100)]
Fix retval of async_syscall_result_int

13 years agostruct async_req doesn't really need to carry an event_context
Volker Lendecke [Sat, 3 Jan 2009 09:34:59 +0000 (10:34 +0100)]
struct async_req doesn't really need to carry an event_context

13 years agoRemove unused argument "vuid" from make_internal_rpc_pipe_p
Volker Lendecke [Sat, 3 Jan 2009 14:23:13 +0000 (15:23 +0100)]
Remove unused argument "vuid" from make_internal_rpc_pipe_p

13 years agotevent: raise version to 0.9.1
Stefan Metzmacher [Sat, 3 Jan 2009 08:14:23 +0000 (09:14 +0100)]
tevent: raise version to 0.9.1

This 0.9.1 isn't compatible with 0.9.0,
but it makes only sense to raise the major version
after we have reached 1.0.0.

metze

13 years agos4 winbind: Correctly silence a "discard const" warning
Kai Blin [Fri, 2 Jan 2009 21:46:08 +0000 (22:46 +0100)]
s4 winbind: Correctly silence a "discard const" warning

Thanks to metze for pointing out the error.

13 years agoReplace some SMB_ASSERTs with NT_STATUS_INTERNAL_ERROR
Volker Lendecke [Sat, 27 Dec 2008 16:20:25 +0000 (17:20 +0100)]
Replace some SMB_ASSERTs with NT_STATUS_INTERNAL_ERROR

13 years agoOptimize for the common case that packet.c received exactly one full packet
Volker Lendecke [Sat, 20 Dec 2008 09:51:54 +0000 (10:51 +0100)]
Optimize for the common case that packet.c received exactly one full packet

13 years agopacket.h API: The callback is now responsible to talloc_free() "buf"
Volker Lendecke [Sat, 20 Dec 2008 09:44:29 +0000 (10:44 +0100)]
packet.h API: The callback is now responsible to talloc_free() "buf"

13 years agoMerge branch 'master' of ssh://jra@git.samba.org/data/git/samba
Jeremy Allison [Fri, 2 Jan 2009 20:51:18 +0000 (12:51 -0800)]
Merge branch 'master' of ssh://jra@git.samba.org/data/git/samba

13 years agoRemove cli_cm_set_dest_ss() - removes the global dest_ss
Jeremy Allison [Fri, 2 Jan 2009 20:49:49 +0000 (12:49 -0800)]
Remove cli_cm_set_dest_ss() - removes the global dest_ss
from libsmb/clidfs.c. Keep the '-I<address>' option in
smbclient working. The intent is to remove all globals
from libsmb/clidfs.c.
Jeremy.

13 years agoChanged code to use proper talloc context instead of NULL to control memory leak.
scudette@gmail.com [Fri, 2 Jan 2009 11:41:04 +0000 (22:41 +1100)]
Changed code to use proper talloc context instead of NULL to control memory leak.

13 years agoMemory leak fixed due to accumulation of open reg keys.
scudette@gmail.com [Fri, 2 Jan 2009 11:40:32 +0000 (22:40 +1100)]
Memory leak fixed due to accumulation of open reg keys.

13 years agoFixes uninitialised access as reported by valgrind.
scudette@gmail.com [Fri, 2 Jan 2009 11:39:58 +0000 (22:39 +1100)]
Fixes uninitialised access as reported by valgrind.

13 years agoMerge branch 'master' of ssh://jra@git.samba.org/data/git/samba
Jeremy Allison [Fri, 2 Jan 2009 19:39:04 +0000 (11:39 -0800)]
Merge branch 'master' of ssh://jra@git.samba.org/data/git/samba

13 years agoFix warnings in make test code.
Jeremy Allison [Fri, 2 Jan 2009 19:38:24 +0000 (11:38 -0800)]
Fix warnings in make test code.
Jeremy.

13 years agos4:lib/events: remove unused events_internal.h
Stefan Metzmacher [Fri, 2 Jan 2009 15:41:21 +0000 (16:41 +0100)]
s4:lib/events: remove unused events_internal.h

external users need to use tevent_internal.h anyway

metze

13 years agos4:selftest: report tevent tests as 'tevent.python'
Stefan Metzmacher [Fri, 2 Jan 2009 15:27:48 +0000 (16:27 +0100)]
s4:selftest: report tevent tests as 'tevent.python'

metze

13 years agos4:lib/events: convert to use tevent_* functions instead of compat macros
Stefan Metzmacher [Fri, 2 Jan 2009 14:34:37 +0000 (15:34 +0100)]
s4:lib/events: convert to use tevent_* functions instead of compat macros

metze

13 years agotevent: only provide compat macros if the caller wants them
Stefan Metzmacher [Fri, 2 Jan 2009 15:28:38 +0000 (16:28 +0100)]
tevent: only provide compat macros if the caller wants them

metze

13 years agotevent: change pytevent to tevent_*
Stefan Metzmacher [Fri, 2 Jan 2009 15:27:11 +0000 (16:27 +0100)]
tevent: change pytevent to tevent_*

metze

13 years agotevent: use TEVENT_FD_* instead of EVENT_FD_*
Stefan Metzmacher [Fri, 2 Jan 2009 15:25:29 +0000 (16:25 +0100)]
tevent: use TEVENT_FD_* instead of EVENT_FD_*

metze

13 years agotevent: rename ev_debug_ops => tevent_debug_ops
Stefan Metzmacher [Fri, 2 Jan 2009 12:39:56 +0000 (13:39 +0100)]
tevent: rename ev_debug_ops => tevent_debug_ops

And related changes, but we keep compat macros

metze

13 years agotevent: rename events => tevent in tevent.pc
Stefan Metzmacher [Fri, 2 Jan 2009 13:20:37 +0000 (14:20 +0100)]
tevent: rename events => tevent in tevent.pc

metze

13 years agotevent: pass down handler_name and location to the backend layer
Stefan Metzmacher [Fri, 2 Jan 2009 12:26:32 +0000 (13:26 +0100)]
tevent: pass down handler_name and location to the backend layer

metze

13 years agotevent: make tevent_add_*() macros arround _tevent_add_*()
Stefan Metzmacher [Fri, 2 Jan 2009 10:44:17 +0000 (11:44 +0100)]
tevent: make tevent_add_*() macros arround _tevent_add_*()

This passes some additional debug information into
the events system to make it easier to find bugs.

metze

13 years agotevent: use HAVE_EPOLL instead of HAVE_EVENTS_EPOLL
Stefan Metzmacher [Fri, 2 Jan 2009 12:39:26 +0000 (13:39 +0100)]
tevent: use HAVE_EPOLL instead of HAVE_EVENTS_EPOLL

metze

13 years agotevent: rename event_register_backend() => tevent_register_backend()
Stefan Metzmacher [Fri, 2 Jan 2009 12:35:32 +0000 (13:35 +0100)]
tevent: rename event_register_backend() => tevent_register_backend()

And fix the callers and there init functions.

metze

13 years agotevent: rename event_context_init* => tevent_context_init*()
Stefan Metzmacher [Fri, 2 Jan 2009 10:30:00 +0000 (11:30 +0100)]
tevent: rename event_context_init* => tevent_context_init*()

metze

13 years agotevent: rename event_[s|g]et_fd_flags => tevent_fd_[s|g]et_flags
Stefan Metzmacher [Fri, 2 Jan 2009 10:36:52 +0000 (11:36 +0100)]
tevent: rename event_[s|g]et_fd_flags => tevent_fd_[s|g]et_flags

metze

13 years agotevent: rename event_loop_* => tevent_loop_*
Stefan Metzmacher [Fri, 2 Jan 2009 10:32:29 +0000 (11:32 +0100)]
tevent: rename event_loop_* => tevent_loop_*

metze

13 years agotevent: rename event_set_default_backend() => tevent_set_default_backend()
Stefan Metzmacher [Fri, 2 Jan 2009 10:17:00 +0000 (11:17 +0100)]
tevent: rename event_set_default_backend() => tevent_set_default_backend()

metze

13 years agotevent: use libreplace headers instead of system headers
Stefan Metzmacher [Fri, 2 Jan 2009 11:53:05 +0000 (12:53 +0100)]
tevent: use libreplace headers instead of system headers

metze

13 years agos4:lib/events: deprecate event_context_find()
Stefan Metzmacher [Fri, 2 Jan 2009 14:33:23 +0000 (15:33 +0100)]
s4:lib/events: deprecate event_context_find()

metze

13 years agos4:tevent: move event_context_find() to tevent_s4.c
Stefan Metzmacher [Fri, 2 Jan 2009 11:06:39 +0000 (12:06 +0100)]
s4:tevent: move event_context_find() to tevent_s4.c

metze

13 years agos4:pyregistry: use tevent_context_init()
Stefan Metzmacher [Fri, 2 Jan 2009 15:06:31 +0000 (16:06 +0100)]
s4:pyregistry: use tevent_context_init()

metze

13 years agoRevert "s4 winbind: Copy SID to avoid "discard const" warning"
Stefan Metzmacher [Fri, 2 Jan 2009 17:10:26 +0000 (18:10 +0100)]
Revert "s4 winbind: Copy SID to avoid "discard const" warning"

This reverts commit 102028ec722d942d7f91eb92e8da4f1480d140d1.

state->ctx is the composite_context, which is a temporary context!

metze

13 years agoRevert "s4 winbind: Avoid a "discards const" compiler warning."
Stefan Metzmacher [Fri, 2 Jan 2009 16:52:14 +0000 (17:52 +0100)]
Revert "s4 winbind: Avoid a "discards const" compiler warning."

This reverts commit dd8d4b6fd178df6847052dac207a4aafc0697d71.

s3call->response.extra_data.data is a pointer and no fstring!

metze

13 years agolibrpc/gen_ndr: rerun make idl_full after pidl changes
Stefan Metzmacher [Fri, 2 Jan 2009 15:26:00 +0000 (16:26 +0100)]
librpc/gen_ndr: rerun make idl_full after pidl changes

metze

13 years agopidl: add dummy element for empty unions
Stefan Metzmacher [Fri, 2 Jan 2009 15:22:18 +0000 (16:22 +0100)]
pidl: add dummy element for empty unions

This hopefully fixes the build on Solaris and IRIX.

metze

13 years agoAlternative fix for 45db33e73 and 0d443ae7931
Volker Lendecke [Fri, 2 Jan 2009 13:53:26 +0000 (14:53 +0100)]
Alternative fix for 45db33e73 and 0d443ae7931

Simo is right, we need to ask passdb first. At least this fixes a nasty to find
NT_STATUS_ACCESS_DENIED problem in the build farm for the test run I just did
on host "opi".

Michael, can you re-check if this also fixes the error you found, leading to
the two fixes?

Thanks,

Volker

13 years agoRevert "s:Fix uid_to_sid mapping when the idmap cache is empty."
Volker Lendecke [Fri, 2 Jan 2009 13:51:23 +0000 (14:51 +0100)]
Revert "s:Fix uid_to_sid mapping when the idmap cache is empty."

This reverts commit 9a9b64dbdfce4414ada22d4f882c8c757b5813e1.

13 years agoRevert "s3:idmap: Remove passd check from idmap_backends_unixid_to_sid()."
Volker Lendecke [Fri, 2 Jan 2009 13:51:06 +0000 (14:51 +0100)]
Revert "s3:idmap: Remove passd check from idmap_backends_unixid_to_sid()."

This reverts commit 45db33e73262d8e195a46fb96405dfb3dc43d6bc.

13 years agopackaging(RHEL): fix typo in [u]mount.cifs installation
Michael Adam [Wed, 17 Dec 2008 21:27:39 +0000 (22:27 +0100)]
packaging(RHEL): fix typo in [u]mount.cifs installation

Michael
(cherry picked from commit 835108bcf84a5f47f46d237c7a93c572348125a1)

Signed-off-by: Michael Adam <obnox@samba.org>
13 years agopackaging(RHEL): fix build of [u]mount.cifs
Michael Adam [Wed, 17 Dec 2008 17:56:34 +0000 (18:56 +0100)]
packaging(RHEL): fix build of [u]mount.cifs

mount.cifs is now built by make everything.
And it needs extra objects anyways (mtab.o),
which is why the build of mount.cifs failed.

Michael
(cherry picked from commit 96c811cf222be5463a6705feae73d6215685c5f1)

Signed-off-by: Michael Adam <obnox@samba.org>
13 years agoHappy New Year!
Stefan Metzmacher [Fri, 2 Jan 2009 08:44:53 +0000 (09:44 +0100)]
Happy New Year!

metze

13 years agoFix bug 5913.
Volker Lendecke [Thu, 1 Jan 2009 21:05:03 +0000 (22:05 +0100)]
Fix bug 5913.

Never seen this to be a problem, but it doesn't hurt either :-)

13 years agoRemove a global variable
Volker Lendecke [Thu, 1 Jan 2009 18:55:20 +0000 (19:55 +0100)]
Remove a global variable

13 years agofix some nonempty blank lines
Volker Lendecke [Thu, 1 Jan 2009 18:47:40 +0000 (19:47 +0100)]
fix some nonempty blank lines

13 years agoRemove two pointless globals
Volker Lendecke [Thu, 1 Jan 2009 17:16:42 +0000 (18:16 +0100)]
Remove two pointless globals

13 years agoThe Tru64 shell doesn't like (*) in a case statement
Volker Lendecke [Thu, 1 Jan 2009 12:28:38 +0000 (13:28 +0100)]
The Tru64 shell doesn't like (*) in a case statement

13 years agos3: Fix caller of print_fsp_open
Tim Prouty [Thu, 1 Jan 2009 05:24:25 +0000 (21:24 -0800)]
s3: Fix caller of print_fsp_open

13 years agoFix typo found by Volker. Thanks for the review.
Jeremy Allison [Thu, 1 Jan 2009 02:34:52 +0000 (18:34 -0800)]
Fix typo found by Volker. Thanks for the review.
Jeremy.

13 years agoFix all warnings in source3 with gcc4.3.
Jeremy Allison [Thu, 1 Jan 2009 02:06:57 +0000 (18:06 -0800)]
Fix all warnings in source3 with gcc4.3.
Jeremy.

13 years agoFix more asprintf and "ignoring return code" warnings from gcc 4.3.
Jeremy Allison [Thu, 1 Jan 2009 00:30:11 +0000 (16:30 -0800)]
Fix more asprintf and "ignoring return code" warnings from gcc 4.3.
Jeremy.

13 years agoReplace a static variable and alarm() calls by using sys_select()
Volker Lendecke [Thu, 25 Dec 2008 13:37:33 +0000 (14:37 +0100)]
Replace a static variable and alarm() calls by using sys_select()

Günther, please check!

13 years agoFix some nonempty blank lines
Volker Lendecke [Thu, 25 Dec 2008 13:29:39 +0000 (14:29 +0100)]
Fix some nonempty blank lines

13 years agoMake a CONST_DISCARD unnecessary by applying some const
Volker Lendecke [Thu, 25 Dec 2008 13:26:17 +0000 (14:26 +0100)]
Make a CONST_DISCARD unnecessary by applying some const

Derrell, please check!

13 years agoReplace "goto again" by "return NT_STATUS_RETRY" in receive_message_or_smb
Volker Lendecke [Sat, 20 Dec 2008 09:42:02 +0000 (10:42 +0100)]
Replace "goto again" by "return NT_STATUS_RETRY" in receive_message_or_smb

This gives lower-level routines the chance to indicate a retry condition

13 years agoDisable the use of splice(2)
Volker Lendecke [Thu, 25 Dec 2008 12:44:11 +0000 (13:44 +0100)]
Disable the use of splice(2)

On a debian lenny installation with a kernel that calls itself 2.6.28, I could
repeatably block smbd using splice. According to the output of netstat, the
recvq of the TCP connection was full and at the same time according to strace
smbd was stuck in a splice syscall trying to read from that TCP connection. We
can not protect ourselves from this condition, as nobody will ever notify us
that something is broken. So sadly we can't use splice yet at all. Maybe in
2.6.29...

13 years agoTry to fix recvfile using splice on Linux
Volker Lendecke [Tue, 23 Dec 2008 21:45:03 +0000 (22:45 +0100)]
Try to fix recvfile using splice on Linux

According to the splice(2) manpage, one of the file descriptors *must* be a
pipe. With this patch I could successfully run splice(2) on a debian lenny
installation.

Jeremy, please check!

13 years agoFix a "nested extern" warning
Volker Lendecke [Wed, 24 Dec 2008 12:52:20 +0000 (13:52 +0100)]
Fix a "nested extern" warning

13 years agoRename parent_dirname_talloc() to parent_dirname()
Volker Lendecke [Wed, 24 Dec 2008 12:51:47 +0000 (13:51 +0100)]
Rename parent_dirname_talloc() to parent_dirname()

13 years agoRemove unused function parent_dirname
Volker Lendecke [Wed, 24 Dec 2008 12:47:41 +0000 (13:47 +0100)]
Remove unused function parent_dirname

13 years agoUse parent_dirname_talloc instead of parent_dirname in smb_unix_mknod
Volker Lendecke [Wed, 24 Dec 2008 12:46:22 +0000 (13:46 +0100)]
Use parent_dirname_talloc instead of parent_dirname in smb_unix_mknod

13 years agoUse parent_dirname_talloc instead of parent_dirname in copy_internals
Volker Lendecke [Wed, 24 Dec 2008 12:44:44 +0000 (13:44 +0100)]
Use parent_dirname_talloc instead of parent_dirname in copy_internals

13 years agoUse parent_dirname_talloc instead of parent_dirname in vfswrap_mkdir
Volker Lendecke [Wed, 24 Dec 2008 12:41:42 +0000 (13:41 +0100)]
Use parent_dirname_talloc instead of parent_dirname in vfswrap_mkdir

13 years agoMake use of TALLOC_MEMDUP in parent_dirname_talloc()
Volker Lendecke [Wed, 24 Dec 2008 12:18:35 +0000 (13:18 +0100)]
Make use of TALLOC_MEMDUP in parent_dirname_talloc()

13 years agoRemove unused function get_numlist()
Volker Lendecke [Wed, 24 Dec 2008 12:05:25 +0000 (13:05 +0100)]
Remove unused function get_numlist()

13 years agorecvfile can't be used for printing so far
Volker Lendecke [Wed, 31 Dec 2008 17:37:39 +0000 (18:37 +0100)]
recvfile can't be used for printing so far

13 years agos3:winbindd: we don't need to call messaging_reinit() twice
Stefan Metzmacher [Mon, 29 Dec 2008 15:31:57 +0000 (16:31 +0100)]
s3:winbindd: we don't need to call messaging_reinit() twice

reinit_after_fork() already calls messaging_reinit()

metze

13 years agoEnable individual smbtorture_s3 subtests in make test
Volker Lendecke [Wed, 31 Dec 2008 09:49:57 +0000 (10:49 +0100)]
Enable individual smbtorture_s3 subtests in make test

13 years agoFix an ancient uninitialized variable read
Volker Lendecke [Tue, 30 Dec 2008 21:49:01 +0000 (22:49 +0100)]
Fix an ancient uninitialized variable read

The callers of open_file_ntcreate expect *psbuf to be filled correctly

13 years agos3 build: Revert previous patch to fix the build
Tim Prouty [Wed, 31 Dec 2008 02:46:53 +0000 (18:46 -0800)]
s3 build: Revert previous patch to fix the build

888524623d179ceb4d540f5ac0f3b013d3ce5735 broke the build.  I'm
reverting it for the short term, while I work on a better fix.

13 years agoFix more "ignore return value" warnings from gcc 4.3.
Jeremy Allison [Wed, 31 Dec 2008 02:24:39 +0000 (18:24 -0800)]
Fix more "ignore return value" warnings from gcc 4.3.
Jeremy

13 years agolibrpc: Re-run make idl-full from source3
Tim Prouty [Wed, 31 Dec 2008 00:02:09 +0000 (16:02 -0800)]
librpc: Re-run make idl-full from source3

13 years agopidl: Fix a const build warning in the samba3 merged build
Tim Prouty [Tue, 30 Dec 2008 21:47:58 +0000 (13:47 -0800)]
pidl: Fix a const build warning in the samba3 merged build

The warning:
../librpc/gen_ndr/ndr_spoolss.c: In function ‘ndr_pull_spoolss_EnumPrinterData’:
../librpc/gen_ndr/ndr_spoolss.c:14792: warning: passing argument 1 of ‘memset’ discards qualifiers from pointer target type

In some case the pidl generated code needs to memset a const struct
field.  This causes the above warning.  This patch discardeds the const
in this case.  I'm open to a more elegant fix, but this eliminates the
warning and should be relatively safe.

13 years agos3/s4: Move CONST_DISCARD into lib/util so it's available from s3 and s4
Tim Prouty [Tue, 30 Dec 2008 21:41:18 +0000 (13:41 -0800)]
s3/s4: Move CONST_DISCARD into lib/util so it's available from s3 and s4

13 years agos3 build: Remove redundant #defines that are in idl generated headers
Tim Prouty [Tue, 30 Dec 2008 21:45:29 +0000 (13:45 -0800)]
s3 build: Remove redundant #defines that are in idl generated headers

This fixes a series of samba3 build warnings in the merged build:
'error: "X" redefined', where X is one of the redundant #defines

13 years agos4: simplify some overly-complicated logic
Tim Prouty [Tue, 30 Dec 2008 22:40:33 +0000 (14:40 -0800)]
s4: simplify some overly-complicated logic

13 years agos3 build: Fix warning
Tim Prouty [Tue, 30 Dec 2008 20:53:34 +0000 (12:53 -0800)]
s3 build: Fix warning

13 years agos3:cluster: register the client connection via CTDB_CONTROL_TCP_ADD
Stefan Metzmacher [Thu, 18 Dec 2008 14:02:42 +0000 (15:02 +0100)]
s3:cluster: register the client connection via CTDB_CONTROL_TCP_ADD

This means we correctly pass IPv6 addresses too.
(CTDB_CONTROL_TCP_CLIENT was IPv4 only)

metze

13 years agoFix a memory leak in cups_pull_comment_location
Volker Lendecke [Tue, 30 Dec 2008 14:47:06 +0000 (15:47 +0100)]
Fix a memory leak in cups_pull_comment_location

We allocated "request" with ippNew, so we also should ippDelete it.

13 years agoFix a spinning smbd when printing
Volker Lendecke [Tue, 30 Dec 2008 13:05:26 +0000 (14:05 +0100)]
Fix a spinning smbd when printing

Without this, we end up adding more than one timed event. In the event handler
print_notify_event_send_messages() only one event will be deleted, all others
will fire indefinitely.

13 years agoPrint the vuid in BENCH-SESSSETUP
Volker Lendecke [Mon, 29 Dec 2008 21:07:56 +0000 (22:07 +0100)]
Print the vuid in BENCH-SESSSETUP

13 years agoSecond part of the bugfix for #5933
Volker Lendecke [Mon, 29 Dec 2008 21:06:08 +0000 (22:06 +0100)]
Second part of the bugfix for #5933

Incrementing the next vuid did not correctly overflow

Now we survive BENCH-SESSSETUP with -o 100000. Takes a while though :-)

Thanks a lot to Ofer Tal <otsmb@shmoop.org> for reporting #5933

13 years agoFirst part of bugfix for #5933
Volker Lendecke [Mon, 29 Dec 2008 21:01:57 +0000 (22:01 +0100)]
First part of bugfix for #5933

Ofer Tal <otsmb@shmoop.org> fully correctly noted that we're incrementing
num_validated_vuids twice per session setup, but decrement it only once.
Looking at sesssetup.c we always call register_initial_vuid() before
register_existing_vuid(), so there's no point in incrementing it in
register_existing_vuid().

Jeremy, please check!

13 years agoMove a comment to its place
Volker Lendecke [Mon, 29 Dec 2008 20:07:41 +0000 (21:07 +0100)]
Move a comment to its place

13 years agoSimplify invalidate_vuid slightly
Volker Lendecke [Mon, 29 Dec 2008 20:03:15 +0000 (21:03 +0100)]
Simplify invalidate_vuid slightly

get_valid_user_struct_internal() checks for UID_FIELD_INVALID itself

13 years agoSimplify is_partial_auth_vuid slightly
Volker Lendecke [Mon, 29 Dec 2008 20:01:13 +0000 (21:01 +0100)]
Simplify is_partial_auth_vuid slightly

13 years agoSimplify invalidate_all_vuids() slightly
Volker Lendecke [Mon, 29 Dec 2008 18:50:39 +0000 (19:50 +0100)]
Simplify invalidate_all_vuids() slightly

invalidate_vuid takes care of removing the user_struct from validated_users

13 years agoFix the merged build
Stefan Metzmacher [Tue, 30 Dec 2008 09:09:59 +0000 (10:09 +0100)]
Fix the merged build

metze

13 years agolib/tevent: fix standalone make distclean realdistclean
Stefan Metzmacher [Tue, 30 Dec 2008 07:58:52 +0000 (08:58 +0100)]
lib/tevent: fix standalone make distclean realdistclean

Bug report by Brad Hards <bradh@frogmouth.net>.

metze

13 years agopidl: don't generate invalid C code
Stefan Metzmacher [Mon, 29 Dec 2008 20:07:11 +0000 (21:07 +0100)]
pidl: don't generate invalid C code

When we don't know how to handle a type for the python bindings,
we should not generate invalid C code.

Jelmer: please fix do the full fix for this.

metze

13 years agos3:pdb_tdb: store the next rid counter in passdb.tdb instead of winbind_idmap.tdb
Stefan Metzmacher [Mon, 15 Dec 2008 18:28:27 +0000 (19:28 +0100)]
s3:pdb_tdb: store the next rid counter in passdb.tdb instead of winbind_idmap.tdb

This upgrades the TDBSAM_VERSION to 4 and SAMU_BUFFER_V4.

metze

13 years agos3:passdb: add SAMU_BUFFER_V4 with no changes
Stefan Metzmacher [Tue, 16 Dec 2008 10:51:14 +0000 (11:51 +0100)]
s3:passdb: add SAMU_BUFFER_V4 with no changes

The upgrade is required because of the followin TDBSAM_VERSION
upgrade.

metze

13 years agos3:passdb: make marshalling struct samu from and to a buffer more generic
Stefan Metzmacher [Mon, 15 Dec 2008 17:46:37 +0000 (18:46 +0100)]
s3:passdb: make marshalling struct samu from and to a buffer more generic

This marshalling isn't specific to tdbsam and it's
ugly to have the related functions in two different files.

metze

13 years agos4:cluster: fix dependency to TDB_WRAP
Stefan Metzmacher [Mon, 29 Dec 2008 19:55:02 +0000 (20:55 +0100)]
s4:cluster: fix dependency to TDB_WRAP

metze

13 years agos4:lib/tevent: rename structs
Stefan Metzmacher [Mon, 29 Dec 2008 19:24:57 +0000 (20:24 +0100)]
s4:lib/tevent: rename structs

list=""
list="$list event_context:tevent_context"
list="$list fd_event:tevent_fd"
list="$list timed_event:tevent_timer"

for s in $list; do
o=`echo $s | cut -d ':' -f1`
n=`echo $s | cut -d ':' -f2`
r=`git grep "struct $o" |cut -d ':' -f1 |sort -u`
files=`echo "$r" | grep -v source3 | grep -v nsswitch | grep -v packaging4`
for f in $files; do
cat $f | sed -e "s/struct $o/struct $n/g" > $f.tmp
mv $f.tmp $f
done
done

metze