sfrench/samba-autobuild/.git
16 years agor23344: Better error message
Volker Lendecke [Mon, 4 Jun 2007 19:50:30 +0000 (19:50 +0000)]
r23344: Better error message

16 years agor23343: Fix error return
Volker Lendecke [Mon, 4 Jun 2007 19:45:41 +0000 (19:45 +0000)]
r23343: Fix error return

16 years agor23342: Stop Coverity from getting confused.
Jeremy Allison [Mon, 4 Jun 2007 19:29:40 +0000 (19:29 +0000)]
r23342: Stop Coverity from getting confused.
Jeremy.

16 years agor23341: pdb interfaces should be versioned. As SAMBA_3_0 and SAMBA_3_0_26
Jeremy Allison [Mon, 4 Jun 2007 19:03:33 +0000 (19:03 +0000)]
r23341: pdb interfaces should be versioned. As SAMBA_3_0 and SAMBA_3_0_26
are now identical, use the same version number (16) for both.
Jeremy.

16 years agor23340: Fix typo in debug ouput. Found by Karolin Seeger <ks@sernet.de>.
Michael Adam [Mon, 4 Jun 2007 14:48:26 +0000 (14:48 +0000)]
r23340: Fix typo in debug ouput. Found by Karolin Seeger <ks@sernet.de>.
Michael

16 years agor23337: fix a crash bug...I wonder why only HP-UX 11.00 ans 11.11 noticed
Stefan Metzmacher [Mon, 4 Jun 2007 14:25:52 +0000 (14:25 +0000)]
r23337: fix a crash bug...I wonder why only HP-UX 11.00 ans 11.11 noticed
it via a SIGBUS...

I missed to remove the samba3 specifc code path to tdb_open_ex()
when I synced lib/tdb/ with samba4. The explicit cast in on tdb_open_ex()
dropped the compiler warning :-(

metze

16 years agor23335: as not all source files include replace.h/config.h
Stefan Metzmacher [Mon, 4 Jun 2007 09:57:59 +0000 (09:57 +0000)]
r23335: as not all source files include replace.h/config.h
before unistd.h we need to pass -D_FILE_OFFSET_BITS=64
together with -Dpread=pread64 -Dpwrite=pwrite64

metze

16 years agor23330: always include "winbind_client.h" as first header
Stefan Metzmacher [Mon, 4 Jun 2007 08:03:46 +0000 (08:03 +0000)]
r23330: always include "winbind_client.h" as first header
as it brings in "replace.h" this will bring in "config.h"

metze

16 years agor23328: don't typedef ber_tag_t when it's already done by openldap
Stefan Metzmacher [Mon, 4 Jun 2007 08:01:48 +0000 (08:01 +0000)]
r23328: don't typedef ber_tag_t when it's already done by openldap
headers on HP-UX (lber_types.h defines _LBER_TYPES_H).

metze

16 years agor23323: merged ldb changes from 3.0.26
Andrew Tridgell [Mon, 4 Jun 2007 01:51:18 +0000 (01:51 +0000)]
r23323: merged ldb changes from 3.0.26

16 years agor23321: remove unused variable (due to mad merge from Centeris patches)
Gerald Carter [Mon, 4 Jun 2007 01:33:00 +0000 (01:33 +0000)]
r23321: remove unused variable (due to mad merge from Centeris patches)

16 years agor23317: Fix the build: r23315 was a little overeager in removing the
Michael Adam [Sun, 3 Jun 2007 20:24:25 +0000 (20:24 +0000)]
r23317: Fix the build: r23315 was a little overeager in removing the
INIPARSER_OBJ from the bin/net target altogether. I re-add it
in the guise of @BUILD_INIPARSER@ (to NET_OBJ). This also
eliminates the need to have @BUILD_INIPARSER@ in the deps for
the bin/net target.
Same procedure for the pam_winbindd module.

Michael

16 years agor23316: Ouch... This would not have run in production without cluster code
Volker Lendecke [Sun, 3 Jun 2007 19:56:41 +0000 (19:56 +0000)]
r23316: Ouch... This would not have run in production without cluster code
anyway.

16 years agor23315: - don't use the builtin and -liniparser together in bin/net
Stefan Metzmacher [Sun, 3 Jun 2007 16:21:40 +0000 (16:21 +0000)]
r23315: - don't use the builtin and -liniparser together in bin/net
- unify handling on @BUILD_INIPARSER@

btw: nsswitch/pam_winbind.c doesn't compile anymore on SuSE 10.2!
     I think we should build pam modules by default to notice things
     like this in the build-farm...

metze

16 years agor23314: For some systems it's needed to inject replace.h into
Stefan Metzmacher [Sun, 3 Jun 2007 15:51:09 +0000 (15:51 +0000)]
r23314: For some systems it's needed to inject replace.h into
the iniparser source code, I do it in a way we can still have
a unmodified copy of iniparser in source/iniparser/
and have the wrapper stuff in source/iniparser_build/.

If the build-farm is happy with this I'll merge it to 3_0_26
tomorrow...

metze

16 years agor23313: Janitor for tridge:
Volker Lendecke [Sun, 3 Jun 2007 06:54:51 +0000 (06:54 +0000)]
r23313: Janitor for tridge:

we need to use tdb_wrap_open in both these backends to allow for
multiple opens.  This is done for notify.tdb. Otherwise we die when a
2nd share with notify is setup

16 years agor23312: As per Volker, rename the "windbind:ads" parameter "winbind:rpc only".
James Peach [Sat, 2 Jun 2007 21:12:47 +0000 (21:12 +0000)]
r23312: As per Volker, rename the "windbind:ads" parameter "winbind:rpc only".

16 years agor23309: sync lib/replace with SAMBA_4_0
Stefan Metzmacher [Sat, 2 Jun 2007 09:10:08 +0000 (09:10 +0000)]
r23309: sync lib/replace with SAMBA_4_0

metze

16 years agor23307: move readahead stuff out of libreplace and make it samba3 specific
Stefan Metzmacher [Sat, 2 Jun 2007 08:30:42 +0000 (08:30 +0000)]
r23307: move readahead stuff out of libreplace and make it samba3 specific
as we can't replace this function in libreplace and we do
the some stuff for other function in the same way.

metze

16 years agor23305: merge from samba4:
Stefan Metzmacher [Sat, 2 Jun 2007 08:14:27 +0000 (08:14 +0000)]
r23305: merge from samba4:

fix large file support on HP-UX 11.00 and 11.11

metze

16 years agor23302: Refactor vfs_gpfs module, fix problems with chmod Tridge has found during...
Alexander Bokovoy [Sat, 2 Jun 2007 06:28:38 +0000 (06:28 +0000)]
r23302: Refactor vfs_gpfs module, fix problems with chmod Tridge has found during ctdb tests

16 years agor23300: AFAICT these are not needed. Jerry, can you please review and revert
James Peach [Fri, 1 Jun 2007 19:42:23 +0000 (19:42 +0000)]
r23300: AFAICT these are not needed. Jerry, can you please review and revert
if this is not correct.

16 years agor23299: Fix the build for !WITH_SENDFILE.
James Peach [Fri, 1 Jun 2007 19:34:08 +0000 (19:34 +0000)]
r23299: Fix the build for !WITH_SENDFILE.

16 years agor23297: This introduces the winbind:ads parameter which defaults to True. Setting it
Volker Lendecke [Fri, 1 Jun 2007 18:39:50 +0000 (18:39 +0000)]
r23297: This introduces the winbind:ads parameter which defaults to True. Setting it
to False makes winbind use RPC and not LDAP methods to connect to the DCs,
even when it figured out they are AD.

16 years agor23295: Apply proto_exists and bin/.dummy dependencies consistently for all
James Peach [Fri, 1 Jun 2007 16:06:40 +0000 (16:06 +0000)]
r23295: Apply proto_exists and bin/.dummy dependencies consistently for all
binaries.  Fix vfs_zfsacl build rule in SAMBA_3_0.

16 years agor23291: Undo the somewhat naive change of r23279:
Michael Adam [Fri, 1 Jun 2007 12:24:57 +0000 (12:24 +0000)]
r23291: Undo the somewhat naive change of r23279:
The clear text presentaion of the sid in the ldap expression
does work with w2k3 but not with w2k....

Thanks to Guenther for advising me of this issue.

Michael

16 years agor23290: Fix another small and stupid but severe typo.
Michael Adam [Fri, 1 Jun 2007 12:18:16 +0000 (12:18 +0000)]
r23290: Fix another small and stupid but severe typo.
Hopfully, I have finally got this right... :-)

Michael

16 years agor23287: Use talloc_move instead of talloc_steal as this is what I really
Michael Adam [Fri, 1 Jun 2007 10:10:57 +0000 (10:10 +0000)]
r23287: Use talloc_move instead of talloc_steal as this is what I really
wanted to do.

Michael

16 years agor23284: Oh what a nasty typo! This gave me some headache,
Michael Adam [Thu, 31 May 2007 23:58:56 +0000 (23:58 +0000)]
r23284: Oh what a nasty typo! This gave me some headache,
with talloc randomly failing.

Hey, shouldn't TALLOC_ARRAY _not_ return NULL when
requested to allocate an array with zero entries? :-)

Michael

16 years agor23283: Use a temporary talloc context in ads:lookup_groupmem.
Michael Adam [Thu, 31 May 2007 23:55:37 +0000 (23:55 +0000)]
r23283: Use a temporary talloc context in ads:lookup_groupmem.
And clean up unused stuff at the end.
Daringly, I use talloc_steal at some point, where it
appears natural to me.

Michael

16 years agor23279: Replace occurrence of sid_binstring inside lookup_groupmem
Michael Adam [Thu, 31 May 2007 22:02:49 +0000 (22:02 +0000)]
r23279: Replace occurrence of sid_binstring inside lookup_groupmem
by sid_string_static.

16 years agor23274: merge CloseEventlog() pidl conversion from 3.0.26 && fix a few init call...
Gerald Carter [Thu, 31 May 2007 17:59:04 +0000 (17:59 +0000)]
r23274: merge CloseEventlog() pidl conversion from 3.0.26 && fix a few init call renames for svcctl in the previous commit

16 years agor23272: Fix main event loop - reviewed by Volker.
Jeremy Allison [Thu, 31 May 2007 17:26:30 +0000 (17:26 +0000)]
r23272: Fix main event loop - reviewed by Volker.
Jeremy.

16 years agor23271: merge service control pidl change for CloseServiceHandle() from SAMBA_3_0_26
Gerald Carter [Thu, 31 May 2007 17:24:30 +0000 (17:24 +0000)]
r23271: merge service control pidl change for CloseServiceHandle() from SAMBA_3_0_26

16 years agor23269: Regenerate svcctl files after IDL fixes
Gerald Carter [Thu, 31 May 2007 15:46:01 +0000 (15:46 +0000)]
r23269: Regenerate svcctl files after IDL fixes

16 years agor23268: Rename some variables in the svcctl.idl to prevent
Gerald Carter [Thu, 31 May 2007 15:43:40 +0000 (15:43 +0000)]
r23268: Rename some variables in the svcctl.idl to prevent
redeclaration compile failures in the generated client
code.

16 years agor23263: Remove an unused variable -- Fix Coverity ID 358
Volker Lendecke [Thu, 31 May 2007 09:23:51 +0000 (09:23 +0000)]
r23263: Remove an unused variable -- Fix Coverity ID 358

16 years agor23253: Add some debugging output.
Michael Adam [Wed, 30 May 2007 22:40:26 +0000 (22:40 +0000)]
r23253: Add some debugging output.

16 years agor23252: Complete the reworking of the ads lookup_groupmem function
Michael Adam [Wed, 30 May 2007 22:04:42 +0000 (22:04 +0000)]
r23252: Complete the reworking of the ads lookup_groupmem function
started in r23070, r23072, r23073, r23078, r23081 and r23082:

After retrieving the list of sids with the extended dn
ldap query, instead of passing all sids to the lsa_lookup_sids
call, now while extracting the sids from the extended dn member
entries, we first try to lookup the sid from cache and only pass
the sids that were not in cache to the lsa_lookup_sids call.

Michael

16 years agor23251: whoops! Fix compile error
Gerald Carter [Wed, 30 May 2007 21:55:49 +0000 (21:55 +0000)]
r23251: whoops!  Fix compile error

16 years agor23249: another sync from 3.0.26 for the echo work to rpcclient
Gerald Carter [Wed, 30 May 2007 21:46:03 +0000 (21:46 +0000)]
r23249: another sync from 3.0.26 for the echo work to rpcclient

16 years agor23248: Merge echo pipe implementation chanegs from SAMBA_3_0_26
Gerald Carter [Wed, 30 May 2007 21:43:48 +0000 (21:43 +0000)]
r23248: Merge echo pipe implementation chanegs from SAMBA_3_0_26
just to stay in sink.  This was more or less just for me
to play with.

16 years agor23244: Fix loop with nscd and NSS recusive calls.
Gerald Carter [Wed, 30 May 2007 19:47:35 +0000 (19:47 +0000)]
r23244: Fix loop with nscd and NSS recusive calls.

> Here's the problem I hit:
>
> getgrnam("foo") -> nscd -> NSS -> winbindd ->
>   winbindd_passdb.c:nam_to_sid() -> lookup_global_sam_name() ->
>   getgrnam("foo") -> nscd -> ....
>
> This is in the SAMBA_3_0 specifically but in theory could happen
> SAMBA_3_0_25 (or 26) for an unknown group.
>
> The attached patch passes down enough state for the
> name_to_sid() call to be able to determine the originating
> winbindd cmd that came into the parent.  So we can avoid
> making more NSS calls if the original call came in trough NSS
> so we don't deadlock ?  But you should still service
> lookupname() calls which are needed for example when
> doing the token access checks for a "valid groups" from
> smb.conf.
>
> I've got this in testing now.  The problem has shown up with the
> DsProvider on OS X and with nscd on SOlaris and Linux.

16 years agor23242: BUG 4671: Fix Makefile syntax error when SMBMOUNT_PROGS is not defined
Gerald Carter [Wed, 30 May 2007 14:53:10 +0000 (14:53 +0000)]
r23242: BUG 4671: Fix Makefile syntax error when SMBMOUNT_PROGS is not defined

16 years agor23241: In preparation for the cluster messaging import the parent smbd needs to
Volker Lendecke [Wed, 30 May 2007 13:41:38 +0000 (13:41 +0000)]
r23241: In preparation for the cluster messaging import the parent smbd needs to
respond to events.c style events.

16 years agor23236: Another bad merge: Correctly free and unlock the session record in
Volker Lendecke [Wed, 30 May 2007 07:02:40 +0000 (07:02 +0000)]
r23236: Another bad merge: Correctly free and unlock the session record in
session_claim. Jerry, this fixes the hanging smbstatus.

Sorry for that,

Volker

16 years agor23228: Merge cleanup to the gpfs module from Tridge. Also potentially disable
Volker Lendecke [Tue, 29 May 2007 19:54:26 +0000 (19:54 +0000)]
r23228: Merge cleanup to the gpfs module from Tridge. Also potentially disable
gpfs share modes in special situations. This might be split up in
several modules later.

16 years agor23226: Make the "debug prefix timestamp" output a bit more readable by making
Volker Lendecke [Tue, 29 May 2007 19:36:13 +0000 (19:36 +0000)]
r23226: Make the "debug prefix timestamp" output a bit more readable by making
the debug level alway at least 2 digits

16 years agor23225: Attached find a patch that makes use of NetSamLogonEx in
Volker Lendecke [Tue, 29 May 2007 19:31:57 +0000 (19:31 +0000)]
r23225: Attached find a patch that makes use of NetSamLogonEx in
winbind. With this and W2k3 DCs around it is possible to use
more than one winbind on the same machine account, because
NetSamLogonEx does not use the credentials chain.

I added the flag domain->can_do_samlogon_ex because this
only works against W2k3 and with schannel. The theory is to
try if we're AD and have schannel, and fall back to
NetSamLogon if this fails. can_do_samlogon_ex is thus a
protection against multiple failures.

Only checking into 3_0, this needs more review before going
into a production release.

Feel free to comment :-)

16 years agor23224: Move map_nt_error_from_unix to lib/errmap_unix.c. This function is
Volker Lendecke [Tue, 29 May 2007 19:09:38 +0000 (19:09 +0000)]
r23224: Move map_nt_error_from_unix to lib/errmap_unix.c. This function is
useful even in binaries that don't link in libsmb

16 years agor23223: Convert a leftover direct tdb access to sessionid.tdb
Volker Lendecke [Tue, 29 May 2007 18:41:16 +0000 (18:41 +0000)]
r23223: Convert a leftover direct tdb access to sessionid.tdb

16 years agor23222: share_mode_forall() is only for counting and status display stuff, so
Volker Lendecke [Tue, 29 May 2007 18:32:49 +0000 (18:32 +0000)]
r23222: share_mode_forall() is only for counting and status display stuff, so
traverse_read is enough here

16 years agor23221: Fix a bad merge, avoid a memory leak and tdb lock problem
Volker Lendecke [Tue, 29 May 2007 18:14:54 +0000 (18:14 +0000)]
r23221: Fix a bad merge, avoid a memory leak and tdb lock problem

16 years agor23220: Add traverse_read to dbwrap
Volker Lendecke [Tue, 29 May 2007 18:04:38 +0000 (18:04 +0000)]
r23220: Add traverse_read to dbwrap

16 years agor23219: Two warnings
Volker Lendecke [Tue, 29 May 2007 17:57:52 +0000 (17:57 +0000)]
r23219: Two warnings

16 years agor23210: Very funny, we thought to use netr_GetDcName (e.g. in winbind) but were using
Günther Deschner [Tue, 29 May 2007 15:27:13 +0000 (15:27 +0000)]
r23210: Very funny, we thought to use netr_GetDcName (e.g. in winbind) but were using
netr_GetDcAnyName all the time (which is the correct thing to do).

Fix the naming and opcode mixup in all branches.

Guenther

16 years agor23207: merge net help test fix from SAMBA_3_0_26
Gerald Carter [Tue, 29 May 2007 14:53:46 +0000 (14:53 +0000)]
r23207: merge net help test fix from SAMBA_3_0_26

16 years agor23206: remove unreachable code
Gerald Carter [Tue, 29 May 2007 14:53:13 +0000 (14:53 +0000)]
r23206: remove unreachable code

16 years agor23204: Add MSG_SMB_BRL_VALIDATE. Tridge, this is a bit different from your bzr
Volker Lendecke [Tue, 29 May 2007 14:49:19 +0000 (14:49 +0000)]
r23204: Add MSG_SMB_BRL_VALIDATE. Tridge, this is a bit different from your bzr
branch, please check if it fulfils your needs.

Two changes: The validation is not done inside the brlock.c traverse_fn,
it's done as a separate routine.

Secondly, this patch does not call the checker routines in smbcontrol
directly but depends on a running smbd.

16 years agor23195: Add void *private_data to brl_forall
Volker Lendecke [Tue, 29 May 2007 13:26:44 +0000 (13:26 +0000)]
r23195: Add void *private_data to brl_forall

16 years agor23194: cherry pick two fixes from SAMBA_3_0_26
Gerald Carter [Tue, 29 May 2007 13:20:40 +0000 (13:20 +0000)]
r23194: cherry pick two fixes from SAMBA_3_0_26

* strptime() failure check
* make legcacy sid/uid/gid calls static

16 years agor23192: Remove fallback to looking up group mappings by the
Gerald Carter [Tue, 29 May 2007 13:18:57 +0000 (13:18 +0000)]
r23192: Remove fallback to looking up group mappings by the
Unix name after discussion with Simo.

16 years agor23186: Checkin on behalf of Tridge:
Volker Lendecke [Tue, 29 May 2007 10:50:25 +0000 (10:50 +0000)]
r23186: Checkin on behalf of Tridge:

Change notify.tdb to use dbwrap

16 years agor23185: Try to fix the IRIX build, also add the forgotten file_id.c in .26
Volker Lendecke [Tue, 29 May 2007 10:48:42 +0000 (10:48 +0000)]
r23185: Try to fix the IRIX build, also add the forgotten file_id.c in .26

16 years agor23184: Checkin for Tridge: Add a speed test to tdbtool
Volker Lendecke [Tue, 29 May 2007 10:15:01 +0000 (10:15 +0000)]
r23184: Checkin for Tridge: Add a speed test to tdbtool

16 years agor23183: Check in a change made by Tridge:
Volker Lendecke [Tue, 29 May 2007 09:30:34 +0000 (09:30 +0000)]
r23183: Check in a change made by Tridge:

This replaces the internal explicit dev/ino file id representation by a
"struct file_id". This is necessary as cluster file systems and NFS
don't necessarily assign the same device number to the shared file
system. With this structure in place we can now easily add different
schemes to map a file to a unique 64-bit device node.

Jeremy, you might note that I did not change the external interface of
smb_share_modes.c.

Volker

16 years agor23173: Convert sessionid.tdb to ctdb. The 3.0.26 patch is a bit larger because
Volker Lendecke [Mon, 28 May 2007 13:33:54 +0000 (13:33 +0000)]
r23173: Convert sessionid.tdb to ctdb. The 3.0.26 patch is a bit larger because
it brings across the tdb-based list_sessions

16 years agor23172: Change shutdown_other_smbds to use connections_traverse instead of
Volker Lendecke [Mon, 28 May 2007 12:39:39 +0000 (12:39 +0000)]
r23172: Change shutdown_other_smbds to use connections_traverse instead of
session_traverse.

16 years agor23171: Convert connections.tdb to dbwrap
Volker Lendecke [Mon, 28 May 2007 11:38:42 +0000 (11:38 +0000)]
r23171: Convert connections.tdb to dbwrap

16 years agor23170: Add map_nt_error_from_tdb()
Volker Lendecke [Mon, 28 May 2007 11:08:58 +0000 (11:08 +0000)]
r23170: Add map_nt_error_from_tdb()

16 years agor23169: Merge 535 of Tridge's bzr tree:
Volker Lendecke [Sun, 27 May 2007 17:12:08 +0000 (17:12 +0000)]
r23169: Merge 535 of Tridge's bzr tree:

  store the right data after cleaning lock records. This fixes
  RAW-BENCH-LOCK after a recovery on a cluster

16 years agor23168: Move the lp_max_connections() into service.c.
Volker Lendecke [Sun, 27 May 2007 16:34:49 +0000 (16:34 +0000)]
r23168: Move the lp_max_connections() into service.c.

16 years agor23167: Remove an unused parameter
Volker Lendecke [Sun, 27 May 2007 16:22:12 +0000 (16:22 +0000)]
r23167: Remove an unused parameter

16 years agor23166: Bring samba.org's iniparser copy in sync with the upstream version 2.17.
Lars Müller [Sun, 27 May 2007 15:58:19 +0000 (15:58 +0000)]
r23166: Bring samba.org's iniparser copy in sync with the upstream version 2.17.

16 years agor23165: Convert brlock.tdb to dbwrap
Volker Lendecke [Sun, 27 May 2007 10:35:14 +0000 (10:35 +0000)]
r23165: Convert brlock.tdb to dbwrap

16 years agor23164: Minor cosmetic checkin
Volker Lendecke [Sun, 27 May 2007 10:25:23 +0000 (10:25 +0000)]
r23164: Minor cosmetic checkin

16 years agor23163: Convert locking.tdb to dbwrap
Volker Lendecke [Sun, 27 May 2007 09:57:05 +0000 (09:57 +0000)]
r23163: Convert locking.tdb to dbwrap

16 years agor23162: Make use of messaging_send_buf
Volker Lendecke [Sun, 27 May 2007 09:29:26 +0000 (09:29 +0000)]
r23162: Make use of messaging_send_buf

16 years agor23161: Add TDB_VOLATILE as open_flag to activate the per-hashchain dead record
Volker Lendecke [Sun, 27 May 2007 09:22:11 +0000 (09:22 +0000)]
r23161: Add TDB_VOLATILE as open_flag to activate the per-hashchain dead record
optimization.

16 years agor23156: Install the smb_share_modes.h header file.
Lars Müller [Sat, 26 May 2007 13:33:56 +0000 (13:33 +0000)]
r23156: Install the smb_share_modes.h header file.

16 years agor23155: Rename INSTALLPERMS to INSTALLPERMS_BIN to differenciate clearer from
Lars Müller [Sat, 26 May 2007 13:30:45 +0000 (13:30 +0000)]
r23155: Rename INSTALLPERMS to INSTALLPERMS_BIN to differenciate clearer from
INSTALLPERMS_DATA.

16 years agor23154: Add INSTALLPERMS_DATA set to 0644 to install the header files with this
Lars Müller [Sat, 26 May 2007 13:24:56 +0000 (13:24 +0000)]
r23154: Add INSTALLPERMS_DATA set to 0644 to install the header files with this
permission set instead of 0755.

16 years agor23151: Re-arrange the logic so it looks identical to the
Jeremy Allison [Sat, 26 May 2007 01:26:09 +0000 (01:26 +0000)]
r23151: Re-arrange the logic so it looks identical to the
"file existed" case above. This has no functional
change but is easier to see that it's doing the
same thing.
Jeremy.

16 years agor23150: Fix Samba3 in the build farm again. In the case where the
Jeremy Allison [Sat, 26 May 2007 01:19:51 +0000 (01:19 +0000)]
r23150: Fix Samba3 in the build farm again. In the case where the
file was being created and we go into the race condition check,
we were testing for compatible open modes, but were not breaking
oplocks in the same way as if the file existed. This meant that
we weren't going into the code path that sets fsp->oplock = FAKE_LEVEL_II_OPLOCK
if the client didn't ask for an oplock on file create. We need
to do this as internally it's what Windows does.
Jeremy.

16 years agor23148: Fix old old bug in cli_smbwrite() (not incrementing
Jeremy Allison [Fri, 25 May 2007 23:50:35 +0000 (23:50 +0000)]
r23148: Fix old old bug in cli_smbwrite() (not incrementing
data being sent). Patch from mnix@wanm.com.au.
Jeremy.

16 years agor23147: Patch #4566 from jacob berkman <jberkman@novell.com>. Pass password data...
Jeremy Allison [Fri, 25 May 2007 22:04:03 +0000 (22:04 +0000)]
r23147: Patch #4566 from jacob berkman <jberkman@novell.com>. Pass password data to krb5_prompter.
Jeremy.

16 years agor23128: Fix typo.
Günther Deschner [Thu, 24 May 2007 23:17:24 +0000 (23:17 +0000)]
r23128: Fix typo.

Guenther

16 years agor23127: Fill in some more netlogon dsgetdcname flavours (netr_DsRGetDCNameEx,
Günther Deschner [Thu, 24 May 2007 23:11:11 +0000 (23:11 +0000)]
r23127: Fill in some more netlogon dsgetdcname flavours (netr_DsRGetDCNameEx,
netr_DsRGetDCNameEx2) and add new ds request and reply flags, also add some
more WERROR codes.

Guenther

16 years agor23122: Fix bug #4655. We marshall the enumdataex correctly,
Jeremy Allison [Thu, 24 May 2007 20:40:46 +0000 (20:40 +0000)]
r23122: Fix bug #4655. We marshall the enumdataex correctly,
but W2K3 doesn't follow our rules when sending data to
us. Ensure we look for the data at the correct offsets
when reading the data.
Too late for 3.0.25a - don't merge.
Jeremy.

16 years agor23121: Fix Bug #2727 and let pam_smbpass at least link and dlopen correctly again.
Günther Deschner [Thu, 24 May 2007 20:26:07 +0000 (20:26 +0000)]
r23121: 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

16 years agor23117: Factor out local messaging.
Volker Lendecke [Thu, 24 May 2007 14:47:24 +0000 (14:47 +0000)]
r23117: Factor out local messaging.

This removes message_block / message_unblock. I've talked to Jeremy and
Günther, giving them my reasons why I believe they have no effect.
Neither could come up with a counter-argument, so they go :-)

16 years agor23116: Fix typo, found by Karolin Seeger
Volker Lendecke [Thu, 24 May 2007 13:49:10 +0000 (13:49 +0000)]
r23116: Fix typo, found by Karolin Seeger

16 years agor23112: Trim down the message.c API slightly: The messages_pending_for_pid is now
Volker Lendecke [Thu, 24 May 2007 11:09:37 +0000 (11:09 +0000)]
r23112: Trim down the message.c API slightly: The messages_pending_for_pid is now
replaced by MSG_FLAG_LOWPRIORITY or'ed into the msg_type. To enable this,
changed the msg_type definitions to hexadecimal.

This way we could theoretically add the MSG_FLAG_NODUPLICATES again, but I
would rather not do this, because that one is racy and can't be guaranteed at
all.

16 years agor23109: Redo the change from r22772 I accidentially undid in r23108.
Michael Adam [Thu, 24 May 2007 09:06:15 +0000 (09:06 +0000)]
r23109: Redo the change from r22772 I accidentially undid in r23108.

Michael

16 years agor23108: Add defines of RTLD_NOW and RTLD_GLOBAL to replace.h.
Michael Adam [Thu, 24 May 2007 07:15:36 +0000 (07:15 +0000)]
r23108: Add defines of RTLD_NOW and RTLD_GLOBAL to replace.h.
Fixing build of ldb for instance on some systems without dlfcn.h.

16 years agor23107: Fix renames on file descriptors that are supposed to overwrite the
Jeremy Allison [Thu, 24 May 2007 01:57:02 +0000 (01:57 +0000)]
r23107: Fix renames on file descriptors that are supposed to overwrite the
target. Needs merging for 3.0.25a (sorry).
Jeremy.

16 years agor23106: Use lchown for symlinks.
Jeremy Allison [Thu, 24 May 2007 00:13:24 +0000 (00:13 +0000)]
r23106: Use lchown for symlinks.
Jeremy.

16 years agor23105: Add lchown to the vfs layer. We need this in the POSIX code.
Jeremy Allison [Wed, 23 May 2007 23:55:12 +0000 (23:55 +0000)]
r23105: Add lchown to the vfs layer. We need this in the POSIX code.
Jeremy.

16 years agor23100: Implement the delete on close semantics I've just tested for
Jeremy Allison [Wed, 23 May 2007 21:32:10 +0000 (21:32 +0000)]
r23100: Implement the delete on close semantics I've just tested for
in Samba4 smbtorture. Fix rename on an open file handle.
Needed for 3.0.25a.
Jeremy.

16 years agor23098: Fix the case of the #include statements so this module can be built on a
James Peach [Wed, 23 May 2007 20:48:53 +0000 (20:48 +0000)]
r23098: Fix the case of the #include statements so this module can be built on a
case-sensitive filesystem.