amitay/samba.git
15 years agoMove next_token_talloc to util.c, as util_str.c is only compiled inside samba 4.
Jelmer Vernooij [Sun, 1 Mar 2009 15:19:38 +0000 (16:19 +0100)]
Move next_token_talloc to util.c, as util_str.c is only compiled inside samba 4.

15 years agoMove next_token_talloc() to top-level.
Jelmer Vernooij [Sun, 1 Mar 2009 15:16:16 +0000 (16:16 +0100)]
Move next_token_talloc() to top-level.

15 years agoFix bug #6082 - smbd_gpfs_getacl failed: Windows client can´t rename or
Jeremy Allison [Sat, 28 Feb 2009 21:14:23 +0000 (13:14 -0800)]
Fix bug #6082 - smbd_gpfs_getacl failed: Windows client can´t rename or
delete file (directory fix).
Jeremy.

15 years agoFix async reading winbindd_response
Volker Lendecke [Sat, 28 Feb 2009 11:20:56 +0000 (12:20 +0100)]
Fix async reading winbindd_response

15 years agoSimplify async_connect_send slightly
Volker Lendecke [Sat, 28 Feb 2009 11:19:24 +0000 (12:19 +0100)]
Simplify async_connect_send slightly

15 years agoAnd the prize for the most pain caused in the build farm for a simple
Jeremy Allison [Sat, 28 Feb 2009 04:57:49 +0000 (20:57 -0800)]
And the prize for the most pain caused in the build farm for a simple
typo goes to.....
Tim Prouty !!!!
Sorry Tim, nice test but you made a typo in passing in
the size of an array so we were reading uninitialized
memory :-).
That took far longer than it should have to track down...
(%$&#ing build system....).
The build farm should now slowly go back to normal.
Jeremy.

15 years agoInitialize the id_map status in idmap_ldap to avoid surprise
Bo Yang [Thu, 26 Feb 2009 09:44:33 +0000 (17:44 +0800)]
Initialize the id_map status in idmap_ldap to avoid surprise

15 years agos3: re-run make samba3-idl.
Günther Deschner [Fri, 27 Feb 2009 12:33:51 +0000 (13:33 +0100)]
s3: re-run make samba3-idl.

Guenther

15 years agospoolss: fill in spoolss_SetJobInfo1,2,3,4.
Günther Deschner [Fri, 27 Feb 2009 12:31:02 +0000 (13:31 +0100)]
spoolss: fill in spoolss_SetJobInfo1,2,3,4.

Guenther

15 years agospoolss: add spoolss_PortInfo3 and spoolss_PortInfoFF.
Günther Deschner [Fri, 27 Feb 2009 10:27:44 +0000 (11:27 +0100)]
spoolss: add spoolss_PortInfo3 and spoolss_PortInfoFF.

Guenther

15 years agos3-spoolss: use DSPRINT flags instead of SPOOLS_DS flags.
Günther Deschner [Thu, 26 Feb 2009 22:40:58 +0000 (23:40 +0100)]
s3-spoolss: use DSPRINT flags instead of SPOOLS_DS flags.

Guenther

15 years agoUse talloc_tos() in regkey_access_check()
Volker Lendecke [Fri, 27 Feb 2009 10:18:35 +0000 (11:18 +0100)]
Use talloc_tos() in regkey_access_check()

15 years agos3: fix guest auth when winbindd is running
Steven Danneman [Fri, 27 Feb 2009 01:47:32 +0000 (17:47 -0800)]
s3: fix guest auth when winbindd is running

This fix is very subtle.  If a server is configured with "security = share"
and "guest ok = yes" and winbindd is running authorization will fail during
tree connect.

This is due to our inability to map the guest sid S-1-5-21-X-501 to a uid
through sid_to_uid().  Winbindd is unaware of the hard coded mapping
between this sid and whatever uid the name in lp_guestaccount() is assigned.
So sid_to_uid() fails and we exit create_token_from_username() without
ever calling pdb_getsampwsid() which IS aware of the hard coded mapping.

This patch just reorganizes the code, moving sid_to_uid() down to the
block of code in which it is needed, avoiding this early failure.

15 years agos3-rpcclient: add getjob spoolss command.
Günther Deschner [Thu, 26 Feb 2009 14:35:12 +0000 (15:35 +0100)]
s3-rpcclient: add getjob spoolss command.

Guenther

15 years agos3-rpcclient: use is_valid_policy_hnd before closing handles.
Günther Deschner [Thu, 26 Feb 2009 14:33:16 +0000 (15:33 +0100)]
s3-rpcclient: use is_valid_policy_hnd before closing handles.

Guenther

15 years agos3-spoolss: remove old rpccli_spoolss_getjob.
Günther Deschner [Thu, 26 Feb 2009 14:34:46 +0000 (15:34 +0100)]
s3-spoolss: remove old rpccli_spoolss_getjob.

Guenther

15 years agos3-spoolss: add rpccli_spoolss_getjob convenience wrapper.
Günther Deschner [Thu, 26 Feb 2009 14:33:57 +0000 (15:33 +0100)]
s3-spoolss: add rpccli_spoolss_getjob convenience wrapper.

Guenther

15 years agos3: re-run make samba3-idl.
Günther Deschner [Thu, 26 Feb 2009 21:01:55 +0000 (22:01 +0100)]
s3: re-run make samba3-idl.

Guenther

15 years agospoolss: add 2 new SPOOLSS_JOB_CONTROL values.
Günther Deschner [Thu, 26 Feb 2009 14:52:51 +0000 (15:52 +0100)]
spoolss: add 2 new SPOOLSS_JOB_CONTROL values.

Guenther

15 years agospoolss: add spoolss_JobInfo2, JobInfo3 and JobInfo4 (new in vista).
Günther Deschner [Thu, 26 Feb 2009 14:29:23 +0000 (15:29 +0100)]
spoolss: add spoolss_JobInfo2, JobInfo3 and JobInfo4 (new in vista).

Guenther

15 years agodon't hardcode python path
Björn Jacke [Thu, 26 Feb 2009 15:32:57 +0000 (16:32 +0100)]
don't hardcode python path

Signed-off-by: Michael Adam <obnox@samba.org>
15 years agoMake us pass the RAW-RENAME torture test I just added.
Jeremy Allison [Thu, 26 Feb 2009 19:42:23 +0000 (11:42 -0800)]
Make us pass the RAW-RENAME torture test I just added.

Inside a directory, keep a file open and then renaming
the directory should fail with ACCESS_DENIED.

Jeremy.

15 years agoAdd another torture test inspired by George @ Apple.
Jeremy Allison [Thu, 26 Feb 2009 18:13:57 +0000 (10:13 -0800)]
Add another torture test inspired by George @ Apple.
Inside a directory, keep a file open and then renaming
the directory should fail with ACCESS_DENIED. This
is connected to the test case where the close was
failing due to a delayed write on a file not being
able to succeed when Samba allowed the containing
directory to be renamed.

I will fix this in the server shortly (this should be done
across connections also but with will be very hard
in Samba - would need a full scan of the open file
db on every directory rename) - so I will fix for
the local case first (scanning local file opens
inside an smbd is cheap).

Jeremy.

15 years agolib/torture: fix depency to map_nt_error_from_unix()
Stefan Metzmacher [Thu, 26 Feb 2009 14:36:16 +0000 (15:36 +0100)]
lib/torture: fix depency to map_nt_error_from_unix()

This should fix the build on Mac OS 10

metze

15 years agos3: fix the build JOB_STATUS_BLOCKED -> JOB_STATUS_BLOCKED_DEVQ
Michael Adam [Thu, 26 Feb 2009 13:34:38 +0000 (14:34 +0100)]
s3: fix the build JOB_STATUS_BLOCKED -> JOB_STATUS_BLOCKED_DEVQ

Günther, please check...

Michael

15 years agotevent: add tevent_queue infrastructure
Stefan Metzmacher [Tue, 17 Feb 2009 10:42:01 +0000 (11:42 +0100)]
tevent: add tevent_queue infrastructure

metze

15 years agos3:registry: tighten the subkey loop in reg_deletekey_recursive()
Michael Adam [Thu, 26 Feb 2009 01:59:07 +0000 (02:59 +0100)]
s3:registry: tighten the subkey loop in reg_deletekey_recursive()

and loop from the end to the beginning so that we don't need
to rehash the subkeys...

This gets "net conf drop" with 2000 shares down to 14 seconds
on my box.

Michael

15 years agos3:registry: use delete_reg_subkey() in reg_deletekey()
Michael Adam [Thu, 26 Feb 2009 01:57:59 +0000 (02:57 +0100)]
s3:registry: use delete_reg_subkey() in reg_deletekey()

This further speeds up net conf drop.

Michael

15 years agos3:registry: implement delete_subkey in the smbconf backend
Michael Adam [Thu, 26 Feb 2009 01:56:50 +0000 (02:56 +0100)]
s3:registry: implement delete_subkey in the smbconf backend

delegating the call to the db backend

Michael

15 years agos3:registry: implement delete_subkey in the db backend
Michael Adam [Thu, 26 Feb 2009 01:56:00 +0000 (02:56 +0100)]
s3:registry: implement delete_subkey in the db backend

Michael

15 years agos3:registry: add a delete_subkey method to the backend ops.
Michael Adam [Thu, 26 Feb 2009 01:54:50 +0000 (02:54 +0100)]
s3:registry: add a delete_subkey method to the backend ops.

This is to provide a more atomic means of deleting a subkey of a key.

Michael

15 years agos3:registry: refactor deletion of various subkey lists out of regdb_store_keys()
Michael Adam [Thu, 26 Feb 2009 00:43:58 +0000 (01:43 +0100)]
s3:registry: refactor deletion of various subkey lists out of regdb_store_keys()

Micheal

15 years agos3:registry: streamline and cleanup regdb_set_secdesc() somewhat.
Michael Adam [Thu, 26 Feb 2009 00:22:03 +0000 (01:22 +0100)]
s3:registry: streamline and cleanup regdb_set_secdesc() somewhat.

Michael

15 years agos3:registry: refactor deletion of value/secdesc/subkey list tdb records out
Michael Adam [Thu, 26 Feb 2009 00:16:07 +0000 (01:16 +0100)]
s3:registry: refactor deletion of value/secdesc/subkey list tdb records out

of regdb_store_values().

Michael

15 years agos3:registry: streamline reg_deletekey() somewhat.
Michael Adam [Wed, 25 Feb 2009 22:13:07 +0000 (23:13 +0100)]
s3:registry: streamline reg_deletekey() somewhat.

use W_ERROR_... macros and separate assignments from checks

Michael

15 years agos3:registry: use create_reg_subkey() in reg_createkey().
Michael Adam [Wed, 25 Feb 2009 21:06:47 +0000 (22:06 +0100)]
s3:registry: use create_reg_subkey() in reg_createkey().

Instead of calling store_reg_keys()

On my box, importing 2000 shares into an empty smbconf key
now takes some 32 seconds.

Michael

15 years agos3:registry: implement create_subkey for the smbconf backend
Michael Adam [Wed, 25 Feb 2009 21:04:58 +0000 (22:04 +0100)]
s3:registry: implement create_subkey for the smbconf backend

by delegating to the db backend

Michael

15 years agos3:registry: implement create_subkey for the db backend.
Michael Adam [Wed, 25 Feb 2009 21:04:07 +0000 (22:04 +0100)]
s3:registry: implement create_subkey for the db backend.

Michael

15 years agos3:registry: add a create_subkey method to the backend ops.
Michael Adam [Wed, 25 Feb 2009 20:59:54 +0000 (21:59 +0100)]
s3:registry: add a create_subkey method to the backend ops.

This is to provide a more atomic means of adding a subkey of a key.

Michael

15 years agolibcli/util/werror.h: add macro W_ERROR_NOT_OK_GOTO(x, y)
Michael Adam [Wed, 25 Feb 2009 15:55:28 +0000 (16:55 +0100)]
libcli/util/werror.h: add macro W_ERROR_NOT_OK_GOTO(x, y)

a goto destination can be specified as a second parameter.

Michael

15 years agos3: move definition of W_ERROR_NOT_OK_GOTO_DONE down to libcli/util/werror.h
Michael Adam [Wed, 25 Feb 2009 15:53:05 +0000 (16:53 +0100)]
s3: move definition of W_ERROR_NOT_OK_GOTO_DONE down to libcli/util/werror.h

Michael

15 years agos3:net rpc registry: use regsubkey_ctr_init() instead of using talloc directly.
Michael Adam [Wed, 25 Feb 2009 13:49:30 +0000 (14:49 +0100)]
s3:net rpc registry: use regsubkey_ctr_init() instead of using talloc directly.

Michael

15 years agos3:registry: hash the list of subkeys in the regsubkey_ctr
Michael Adam [Wed, 25 Feb 2009 08:53:16 +0000 (09:53 +0100)]
s3:registry: hash the list of subkeys in the regsubkey_ctr

This removes many loops over all the arrays
(from regsubkey_ctr_key_exists) and thus
reduces "net conf drop" from 1m55 to 48seconds
and "net conf import" from 1m55 to 58 seconds
for 2000 shares on my box.

Michael

15 years agos3:registry: remove definition of regsubkey_ctr from the surface.
Michael Adam [Tue, 24 Feb 2009 23:33:24 +0000 (00:33 +0100)]
s3:registry: remove definition of regsubkey_ctr from the surface.

All access is now through accessor functions in reg_objects.c
This allows for performance tuning under the hood in the next step.

Michael

15 years agos3:profiles: use regsubkey_ctr_init() instead of using talloc directly.
Michael Adam [Tue, 24 Feb 2009 23:32:21 +0000 (00:32 +0100)]
s3:profiles: use regsubkey_ctr_init() instead of using talloc directly.

Michael

15 years agos3:registry: use regsubkey_ctr_init() in reg_eventlog.c
Michael Adam [Tue, 24 Feb 2009 22:28:48 +0000 (23:28 +0100)]
s3:registry: use regsubkey_ctr_init() in reg_eventlog.c

Michael

15 years agos3:services_db: use regsubkey_ctr_init() instead of using talloc directly
Michael Adam [Tue, 24 Feb 2009 22:23:04 +0000 (23:23 +0100)]
s3:services_db: use regsubkey_ctr_init() instead of using talloc directly

Michael

15 years agos3:registry: use regsubkey_ctr_get_seqnum() in reg_backend_db.c
Michael Adam [Tue, 24 Feb 2009 22:19:35 +0000 (23:19 +0100)]
s3:registry: use regsubkey_ctr_get_seqnum() in reg_backend_db.c

Michael

15 years agos3:registry: use regsubkey_ctr_set_seqnum() in reg_backend_db.c
Michael Adam [Tue, 24 Feb 2009 22:19:08 +0000 (23:19 +0100)]
s3:registry: use regsubkey_ctr_set_seqnum() in reg_backend_db.c

Michael

15 years agos3:registry: use regsubkey_ctr_init() in reg_backend_db.c
Michael Adam [Tue, 24 Feb 2009 22:18:20 +0000 (23:18 +0100)]
s3:registry: use regsubkey_ctr_init() in reg_backend_db.c

instead of using talloc directly.

Michael

15 years agos3:registry: use regsubkey_ctr_init() in reg_api.c
Michael Adam [Tue, 24 Feb 2009 22:17:05 +0000 (23:17 +0100)]
s3:registry: use regsubkey_ctr_init() in reg_api.c

instead of using talloc on struct regsubkey_ctr.

Michael

15 years agos3:registry: add regsubkey_ctr_get_seqnum() to hide implementation
Michael Adam [Tue, 24 Feb 2009 22:15:55 +0000 (23:15 +0100)]
s3:registry: add regsubkey_ctr_get_seqnum() to hide implementation

Michael

15 years agos3:registry: add regsubkey_ctr_set_seqnum to hide implementation from caller.
Michael Adam [Tue, 24 Feb 2009 22:10:35 +0000 (23:10 +0100)]
s3:registry: add regsubkey_ctr_set_seqnum to hide implementation from caller.

Michael

15 years agos3:registry: add a regsubkey_ctr_init function for allocating a regsubkey_ctr
Michael Adam [Tue, 24 Feb 2009 21:43:47 +0000 (22:43 +0100)]
s3:registry: add a regsubkey_ctr_init function for allocating a regsubkey_ctr

Michael

15 years agos3:registry: fix a comment
Michael Adam [Tue, 24 Feb 2009 21:41:40 +0000 (22:41 +0100)]
s3:registry: fix a comment

Michael

15 years agos3:registry: don't directly access key->subkeys->subkeys[] in reg_backend_db.c
Michael Adam [Tue, 24 Feb 2009 21:16:40 +0000 (22:16 +0100)]
s3:registry: don't directly access key->subkeys->subkeys[] in  reg_backend_db.c

Use the reg_objects accessor regsubkey_ctr_specific_key() instead.

Michael

15 years agos3:registry: don't directly access key->subkeys->subkeys[] in reg_api.c
Michael Adam [Tue, 24 Feb 2009 20:12:26 +0000 (21:12 +0100)]
s3:registry: don't directly access key->subkeys->subkeys[] in  reg_api.c

Use the reg_objects accessor regsubkey_ctr_specific_key() instead.

Michael

15 years agos3:registry: don't directly access key->subkeys->num_subkeys in reg_backend_db.
Michael Adam [Tue, 24 Feb 2009 16:42:50 +0000 (17:42 +0100)]
s3:registry: don't directly access key->subkeys->num_subkeys in reg_backend_db.

Use the reg_objects api instead.

Michael

15 years agos3:registry: don't directly access key->subkeys->num_subkeys in reg_api.c
Michael Adam [Tue, 24 Feb 2009 16:30:23 +0000 (17:30 +0100)]
s3:registry: don't directly access key->subkeys->num_subkeys in reg_api.c

Use the reg_objects api instead.

Michael

15 years agos3:registry: replace typedef "REGSUBKEY_CTR" by "struct regsubkey_ctr"
Michael Adam [Tue, 24 Feb 2009 14:19:18 +0000 (15:19 +0100)]
s3:registry: replace typedef "REGSUBKEY_CTR" by "struct regsubkey_ctr"

This paves the way for hiding the typedef and the implementation from the
surface.

Michael

15 years agoRevert "Fix a O(n^2) algorithm in regdb_fetch_keys()"
Michael Adam [Tue, 24 Feb 2009 16:51:09 +0000 (17:51 +0100)]
Revert "Fix a O(n^2) algorithm in regdb_fetch_keys()"

This reverts commit a13f065bad0f4d21a67e68b743f17f45bf0a4691.

This fix is reverted, because the speedup is going to move
further down into reg_objects.c. The unsorted list of subkey names
is going to be indexed: This O(n^2) search bites us in more places.
This re-establishes the abstraction of reg_objects.c.

Michael

15 years agoRemove a temporary debug message -- sorry
Volker Lendecke [Thu, 26 Feb 2009 12:24:59 +0000 (13:24 +0100)]
Remove a temporary debug message -- sorry

15 years agos3-spoolss: fix search_notify(). sorry...
Günther Deschner [Thu, 26 Feb 2009 12:19:24 +0000 (13:19 +0100)]
s3-spoolss: fix search_notify(). sorry...

Guenther

15 years agos3: re-run make samba3-idl.
Günther Deschner [Thu, 26 Feb 2009 12:15:47 +0000 (13:15 +0100)]
s3: re-run make samba3-idl.

Guenther

15 years agos3-spoolss: job status defines moved to IDL.
Günther Deschner [Thu, 26 Feb 2009 00:10:58 +0000 (01:10 +0100)]
s3-spoolss: job status defines moved to IDL.

Guenther

15 years agospoolss: add spoolss_JobStatus.
Günther Deschner [Thu, 26 Feb 2009 00:10:37 +0000 (01:10 +0100)]
spoolss: add spoolss_JobStatus.

Guenther

15 years agos3-spoolss: remove some unused defines and structs.
Günther Deschner [Wed, 25 Feb 2009 23:49:02 +0000 (00:49 +0100)]
s3-spoolss: remove some unused defines and structs.

Guenther

15 years agos4:heimdal_build: correrctly switch closefrom() and get/setprogname() replacements...
Stefan Metzmacher [Thu, 26 Feb 2009 12:12:54 +0000 (13:12 +0100)]
s4:heimdal_build: correrctly switch closefrom() and get/setprogname() replacements on and off

metze

15 years agoConvert open_socket_out to tevent_req
Volker Lendecke [Thu, 26 Feb 2009 11:34:39 +0000 (12:34 +0100)]
Convert open_socket_out to tevent_req

15 years agoAdd tevent_req helpers to includes.h
Volker Lendecke [Thu, 26 Feb 2009 11:34:14 +0000 (12:34 +0100)]
Add tevent_req helpers to includes.h

15 years agoAdd tevent_ntstatus
Volker Lendecke [Thu, 26 Feb 2009 09:48:41 +0000 (10:48 +0100)]
Add tevent_ntstatus

15 years agos3:net: wrap net conf import into one big transaction
Michael Adam [Tue, 24 Feb 2009 09:54:13 +0000 (10:54 +0100)]
s3:net: wrap net conf import into one big transaction

This speeds up "net conf import" of a file with 2000 shares
from 11 minutest to 1m50s on my box.

Michael

15 years agos3:libsmbconf: add transactions to the libsmbconf api
Michael Adam [Tue, 24 Feb 2009 09:52:30 +0000 (10:52 +0100)]
s3:libsmbconf: add transactions to the libsmbconf api

This is useful for wrapping higher level aggregate operations
in transactions. The text backend implementations just return
WERR_OK, the registry backend implementatoins use the
regdb_transaction_start|commit|cancel routines just added.

Michael

15 years agos3:registry: wrap deletekey_recursive in one big transaction.
Michael Adam [Tue, 24 Feb 2009 14:40:05 +0000 (15:40 +0100)]
s3:registry: wrap deletekey_recursive in one big transaction.

This speeds up "net conf drop" with 2000 shares on my box from
4m40s to 1m50s, leaving virtually only cpu load.

Michael

15 years agos3:registry: provide transaction_start|commit|cancel fns for the registry tdb
Michael Adam [Tue, 24 Feb 2009 09:44:48 +0000 (10:44 +0100)]
s3:registry: provide transaction_start|commit|cancel fns for the registry tdb

Michael

15 years agoWrap creating the sorted subkey cache in a transaction
Volker Lendecke [Sun, 22 Feb 2009 09:11:29 +0000 (10:11 +0100)]
Wrap creating the sorted subkey cache in a transaction

Signed-off-by: Michael Adam <obnox@samba.org>
15 years agoAdd a comment describing the sorted subkeys
Volker Lendecke [Sun, 22 Feb 2009 00:11:51 +0000 (01:11 +0100)]
Add a comment describing the sorted subkeys

Signed-off-by: Michael Adam <obnox@samba.org>
15 years agoAdd sorted subkey cache
Volker Lendecke [Fri, 20 Feb 2009 05:01:16 +0000 (06:01 +0100)]
Add sorted subkey cache

On my box this gets net conf list for 1000 records down to .1 seconds

Signed-off-by: Michael Adam <obnox@samba.org>
15 years agoAdd db_tdb_parse
Volker Lendecke [Sat, 21 Feb 2009 23:47:54 +0000 (00:47 +0100)]
Add db_tdb_parse

Signed-off-by: Michael Adam <obnox@samba.org>
15 years agoAdd dbwrap->parse_record
Volker Lendecke [Sat, 21 Feb 2009 23:18:05 +0000 (00:18 +0100)]
Add dbwrap->parse_record

Signed-off-by: Michael Adam <obnox@samba.org>
15 years agoSpeed up "net conf list"
Volker Lendecke [Sat, 21 Feb 2009 17:00:42 +0000 (18:00 +0100)]
Speed up "net conf list"

For 1000 shares this speeds up net conf list from .6 to .25 seconds on my box

Signed-off-by: Michael Adam <obnox@samba.org>
15 years agoSpeed up "net conf list"
Volker Lendecke [Sat, 21 Feb 2009 16:01:58 +0000 (17:01 +0100)]
Speed up "net conf list"

With 1000 shares in the registry, this changed the time of "net conf list" from
1.1 seconds to .6 seconds.

Signed-off-by: Michael Adam <obnox@samba.org>
15 years agos4:Makefile: try to fix 'make installheaders' on *BSD systems
Stefan Metzmacher [Thu, 26 Feb 2009 09:55:00 +0000 (10:55 +0100)]
s4:Makefile: try to fix 'make installheaders' on *BSD systems

metze

15 years agos4:heimdal_build: don't always build setprogname.o
Stefan Metzmacher [Thu, 26 Feb 2009 09:05:58 +0000 (10:05 +0100)]
s4:heimdal_build: don't always build setprogname.o

This hopefully fixes the build on Mac OS 10, where setprogname()
is available via libc.

asn1_compile and compile_et use only .ho files again
and don't use socket_wrapper anymore.

metze

15 years agolibreplace: make it possible to disable socket_wrapper via -DSOCKET_WRAPPER_DISABLE=1
Stefan Metzmacher [Thu, 26 Feb 2009 09:29:55 +0000 (10:29 +0100)]
libreplace: make it possible to disable socket_wrapper via -DSOCKET_WRAPPER_DISABLE=1

metze

15 years agos4:ldb_map: include ldb_includes.h first to get replace.h as first header
Stefan Metzmacher [Thu, 26 Feb 2009 08:42:29 +0000 (09:42 +0100)]
s4:ldb_map: include ldb_includes.h first to get replace.h as first header

This should bring the build on AIX one step further.

metze

15 years agos4:VERSION: mark as 4.0.0-alpha8 gitsnapshot
Stefan Metzmacher [Thu, 26 Feb 2009 08:10:23 +0000 (09:10 +0100)]
s4:VERSION: mark as 4.0.0-alpha8 gitsnapshot

metze

15 years agoMark as the Samba 4.0 alpha7 release release-4-0-0alpha7 samba-4.0.0alpha7
Andrew Bartlett [Thu, 26 Feb 2009 02:21:08 +0000 (13:21 +1100)]
Mark as the Samba 4.0 alpha7 release

15 years agoA simple hack to avoid the segfault in #6138
Andrew Bartlett [Thu, 26 Feb 2009 02:12:07 +0000 (13:12 +1100)]
A simple hack to avoid the segfault in #6138

Thanks to Andrew Kroeger <andrew@id10ts.net> for reporting this.  This
fix just for the release.  A better fix will make it into the master
branch soon.

Andrew Bartlett

15 years agoFix more POSIX path lstat calls. Fix bug where close can return
Jeremy Allison [Wed, 25 Feb 2009 22:57:16 +0000 (14:57 -0800)]
Fix more POSIX path lstat calls. Fix bug where close can return
failure if we have a pending modtime and the containing directory
of the file has been renamed (there is no POSIX "update time by
fd" call). This can't happen on Windows as the rename will fail
if there are open files beneath it. Will add a torture test
for this.
Jeremy.

15 years agoUse fsp->posix_open in preference if we have it.
Jeremy Allison [Wed, 25 Feb 2009 22:50:19 +0000 (14:50 -0800)]
Use fsp->posix_open in preference if we have it.
Jeremy.

15 years agos3-spoolss: fix _spoolss_AddJob behaviour.
Günther Deschner [Wed, 25 Feb 2009 22:43:55 +0000 (23:43 +0100)]
s3-spoolss: fix _spoolss_AddJob behaviour.

Guenther

15 years agos4-spoolss: implement dcesrv_spoolss_AddJob which always is a dummy.
Günther Deschner [Wed, 25 Feb 2009 22:42:03 +0000 (23:42 +0100)]
s4-spoolss: implement dcesrv_spoolss_AddJob which always is a dummy.

Guenther

15 years agos4-smbtorture: add test_AddJob test to RPC-SPOOLSS test.
Günther Deschner [Mon, 9 Feb 2009 21:22:45 +0000 (22:22 +0100)]
s4-smbtorture: add test_AddJob test to RPC-SPOOLSS test.

Guenther

15 years agoEnsure ACL modules work with POSIX paths.
Jeremy Allison [Wed, 25 Feb 2009 22:12:51 +0000 (14:12 -0800)]
Ensure ACL modules work with POSIX paths.
Jeremy.

15 years agos4-spoolss: implement dcesrv_spoolss_GetPrintProcessorDirectory.
Günther Deschner [Wed, 25 Feb 2009 22:04:52 +0000 (23:04 +0100)]
s4-spoolss: implement dcesrv_spoolss_GetPrintProcessorDirectory.

Guenther

15 years agolib/tdb: if we know pwrite and pread are thread/fork safe tdb_reopen_all() should...
Stefan Metzmacher [Thu, 22 Jan 2009 09:54:12 +0000 (10:54 +0100)]
lib/tdb: if we know pwrite and pread are thread/fork safe tdb_reopen_all() should be a noop

The reason for tdb_reopen_all() is that the seek pointer on fds are shared between
parent and child.

metze

15 years agos3: Report the correct path when dumping core on FreeBSD
Tim Prouty [Wed, 25 Feb 2009 00:42:18 +0000 (16:42 -0800)]
s3: Report the correct path when dumping core on FreeBSD

Utilize the kern.corefile sysctl value on FreeBSD

15 years agos3: Refactor and cleanup the error paths in dump_core_setup
Tim Prouty [Tue, 24 Feb 2009 22:45:46 +0000 (14:45 -0800)]
s3: Refactor and cleanup the error paths in dump_core_setup

15 years agos3 OneFS: Add .snapshot directory configuration handling
Tim Prouty [Mon, 23 Feb 2009 22:51:17 +0000 (14:51 -0800)]
s3 OneFS: Add .snapshot directory configuration handling