samba.git
16 years agosmbd: fix session setup with security = share.
Michael Adam [Thu, 20 Mar 2008 15:50:52 +0000 (16:50 +0100)]
smbd: fix session setup with security = share.

Broken by pstring removal in 9ed12bfc48fe7f9b1863a9dd88e881974083053c.
Jeremy, please check.

Thanks to Yannick Bergeron <yaberger@ca.ibm.com> for noting this.

Michael

16 years agoFix an uninitialized variable warning
Volker Lendecke [Thu, 20 Mar 2008 15:15:38 +0000 (16:15 +0100)]
Fix an uninitialized variable warning

16 years agoPort 3c1f1f0797e from 3-0-ctdb
root [Thu, 20 Mar 2008 14:59:37 +0000 (15:59 +0100)]
Port 3c1f1f0797e from 3-0-ctdb

We need to inform ctdb about the client's TCP connection so that after a fail
over ctdbd can trigger the client to reconnect very quickly

16 years agoFix some warnings in the tsmsm module
Volker Lendecke [Thu, 20 Mar 2008 11:49:13 +0000 (12:49 +0100)]
Fix some warnings in the tsmsm module

Alexander, please check!

16 years agoloadparm: reenable checking files for updates while in registry configuration.
Michael Adam [Wed, 19 Mar 2008 14:18:06 +0000 (15:18 +0100)]
loadparm: reenable checking files for updates while in registry configuration.

This is necessary now that includes (to files) are enabled from registry.

Michael

16 years agoloadparm: remove unneeded include.
Michael Adam [Wed, 19 Mar 2008 10:00:29 +0000 (11:00 +0100)]
loadparm: remove unneeded include.

libnet.h unneeded after separation of libsmbconf from libnet.

Michael

16 years agoregistry: use available string constant in debug statement.
Michael Adam [Thu, 20 Mar 2008 13:35:41 +0000 (14:35 +0100)]
registry: use available string constant in debug statement.

Michael

16 years agoregistry: in regdb_init, not only complain about INFO/version, store it...
Michael Adam [Thu, 20 Mar 2008 13:33:43 +0000 (14:33 +0100)]
registry: in regdb_init, not only complain about INFO/version, store it...

Michael

16 years agoregistry: reformat regdb_init() slightly, breaking long lines.
Michael Adam [Thu, 20 Mar 2008 13:26:42 +0000 (14:26 +0100)]
registry: reformat regdb_init() slightly, breaking long lines.

Michael

16 years agoregistry: untangle assignment and if-statement in regdb_init().
Michael Adam [Thu, 20 Mar 2008 13:24:12 +0000 (14:24 +0100)]
registry: untangle assignment and if-statement in regdb_init().

Michael

16 years agoregistry: separate initialization of registry data from regdb_init().
Michael Adam [Thu, 20 Mar 2008 13:08:29 +0000 (14:08 +0100)]
registry: separate initialization of registry data from regdb_init().

Leave this to the users (currently registry_init_smbconf() and
init_registry()) to initialize as much of preliminary registry data
as needed.

Michael

16 years agoregistry: add a transaction wrapper to init_registry_key_internal().
Michael Adam [Thu, 20 Mar 2008 13:01:13 +0000 (14:01 +0100)]
registry: add a transaction wrapper to init_registry_key_internal().

Michael

16 years agoregistry: refactor creation of subkeys out of init_registry_data().
Michael Adam [Thu, 20 Mar 2008 12:59:09 +0000 (13:59 +0100)]
registry: refactor creation of subkeys out of init_registry_data().

Michael

16 years agoStart to prepare WHATSNEW for 3.2.0pre3.
Karolin Seeger [Thu, 20 Mar 2008 13:15:29 +0000 (14:15 +0100)]
Start to prepare WHATSNEW for 3.2.0pre3.

Karolin

16 years agoRemove unused marshalling for SVCCTL_ENUM_DEPENDENT_SERVICES.
Günther Deschner [Thu, 20 Mar 2008 00:40:04 +0000 (01:40 +0100)]
Remove unused marshalling for SVCCTL_ENUM_DEPENDENT_SERVICES.

Guenther

16 years agoUse pidl for _svcctl_EnumDependentServicesW().
Günther Deschner [Thu, 20 Mar 2008 00:38:23 +0000 (01:38 +0100)]
Use pidl for _svcctl_EnumDependentServicesW().

Guenther

16 years agoRe-run make idl.
Günther Deschner [Thu, 20 Mar 2008 00:35:58 +0000 (01:35 +0100)]
Re-run make idl.

Guenther

16 years agoFix IDL for svcctl_EnumDependentServicesW().
Günther Deschner [Thu, 20 Mar 2008 00:32:20 +0000 (01:32 +0100)]
Fix IDL for svcctl_EnumDependentServicesW().

Guenther

16 years agoMove svc_status_string() out of rpc_client/cli_svcctl.c
Günther Deschner [Thu, 20 Mar 2008 00:26:37 +0000 (01:26 +0100)]
Move svc_status_string() out of rpc_client/cli_svcctl.c

Guenther

16 years agoNo need to compose CLI_SERVER_NAME_SLASH in "net rpc service" anymore.
Günther Deschner [Thu, 20 Mar 2008 00:24:55 +0000 (01:24 +0100)]
No need to compose CLI_SERVER_NAME_SLASH in "net rpc service" anymore.

Guenther

16 years agoAdd error mapping for WERR_SERVICE_NEVER_STARTED.
Günther Deschner [Wed, 19 Mar 2008 23:31:26 +0000 (00:31 +0100)]
Add error mapping for WERR_SERVICE_NEVER_STARTED.

Guenther

16 years agoFix crash bug in check_sam_security() when make_server_info_sam() did a
Günther Deschner [Wed, 19 Mar 2008 23:30:01 +0000 (00:30 +0100)]
Fix crash bug in check_sam_security() when make_server_info_sam() did a
talloc_steal and talloc_free on the sam account already.

Guenther

16 years agontlm_auth: Improve compliance to the Squid helper protocol
Kai Blin [Wed, 19 Mar 2008 22:32:38 +0000 (23:32 +0100)]
ntlm_auth: Improve compliance to the Squid helper protocol

This fixes bug #4235.

Patch from Pawel Worach <pawel.worach@gmail.com> with some linebreaks
added by me.

Also fix one BH message that the original patch didn't fix.

16 years agolibreplace: replace.c does not need system/network.h anymore.
Michael Adam [Tue, 18 Mar 2008 16:50:23 +0000 (17:50 +0100)]
libreplace: replace.c does not need system/network.h anymore.

Michael
(cherry picked from commit 2d3c2f34f33338ff422047dae9cc262522689328)

16 years agolibreplace: move rep_socketpair() to its own module.
Michael Adam [Tue, 18 Mar 2008 16:20:47 +0000 (17:20 +0100)]
libreplace: move rep_socketpair() to its own module.

Prototype is now in system/network.h,
implementation in socketpair.c, and
check in socketpair.m4.

Now the last networking function has vanished from replace.c.

Michael
(cherry picked from commit 94ac8a25be15b55f66eff96fdddc2fdc71a43b1e)

16 years ago!NT_STATUS_IS_OK != NT_STATUS_IS_ERR
Volker Lendecke [Wed, 19 Mar 2008 21:37:24 +0000 (22:37 +0100)]
!NT_STATUS_IS_OK != NT_STATUS_IS_ERR

When reading from a pipe, Windows return STATUS_BUFFER_OVERFLOW which is *not*
an error.

16 years agoFix a warning
Volker Lendecke [Wed, 19 Mar 2008 16:04:50 +0000 (17:04 +0100)]
Fix a warning

16 years agoMerge dd9e0bea31751 from 3-0-ctdb -- use NetSamLogonEx when possible
Volker Lendecke [Wed, 19 Mar 2008 15:09:37 +0000 (16:09 +0100)]
Merge dd9e0bea31751 from 3-0-ctdb -- use NetSamLogonEx when possible

NetSamLogonEx has the advantage that it does not use the credential chain

16 years agoFix some "nexted extern" warnins
Volker Lendecke [Wed, 19 Mar 2008 15:08:24 +0000 (16:08 +0100)]
Fix some "nexted extern" warnins

16 years agoFix bug 5338 -- thanks to Yuya Katayama <yuya999@gmail.com>
Volker Lendecke [Wed, 19 Mar 2008 14:01:30 +0000 (15:01 +0100)]
Fix bug 5338 -- thanks to Yuya Katayama <yuya999@gmail.com>

16 years agoFix the build (by calling NDR_SRVSVC_NETFILEENUM).
Günther Deschner [Wed, 19 Mar 2008 01:47:22 +0000 (02:47 +0100)]
Fix the build (by calling NDR_SRVSVC_NETFILEENUM).

Guenther

16 years agoRemove unused marshalling for SRV_NET_FILE_ENUM.
Günther Deschner [Wed, 19 Mar 2008 00:31:09 +0000 (01:31 +0100)]
Remove unused marshalling for SRV_NET_FILE_ENUM.

Guenther

16 years agoUse pidl for _srvsvc_NetFileEnum.
Günther Deschner [Wed, 19 Mar 2008 00:25:59 +0000 (01:25 +0100)]
Use pidl for _srvsvc_NetFileEnum.

Guenther

16 years agoBind Group Policy processing closer to the samba registry.
Günther Deschner [Tue, 18 Mar 2008 20:30:34 +0000 (21:30 +0100)]
Bind Group Policy processing closer to the samba registry.

Guenther

16 years ago[samba-3-0-ctdb.tridge @ tridge@samba.org-20070602053809-kpw5kjkcyjs8yjbl]
Andrew Tridgell [Sat, 2 Jun 2007 05:38:09 +0000 (15:38 +1000)]
[samba-3-0-ctdb.tridge @ tridge@samba.org-20070602053809-kpw5kjkcyjs8yjbl]
suppress that darn message
(cherry picked from commit 542e46a21898f6fcc8a0aeb63925607a60e0b99f)

16 years agolibreplace: remove duplicate entry of inet_ntoa from README.
Michael Adam [Tue, 18 Mar 2008 15:31:15 +0000 (16:31 +0100)]
libreplace: remove duplicate entry of inet_ntoa from README.

Michael
(cherry picked from commit 98ee8c84300757d778733a458c6ca3e6022b40ea)

16 years agolibreplace: remove trailing white spaces.
Michael Adam [Tue, 18 Mar 2008 12:10:22 +0000 (13:10 +0100)]
libreplace: remove trailing white spaces.

Michael
(cherry picked from commit 1f9ca7eed965904f67cf78fbac007432b8a057fd)

16 years agolibreplace: replace inet_ntoa() when it is missing
Michael Adam [Tue, 18 Mar 2008 11:16:47 +0000 (12:16 +0100)]
libreplace: replace inet_ntoa() when it is missing

...not only replace it when it is broken.

This moves the defintion of rep_inet_ntoa from replace.c
to inet_ntoa.c and adds configure checks for existence
of inet_ntoa(). Checks are moved to an include file of its own.

NOTE: The original rep_inet_ntoa in replace.c was wrapped
into a "#ifndef WITH_PTHREADS" but the prototype in replace.h
and the define in system/network.h were not. I removed that
ifndef since the inet_ntoa() function is usually not thread safe
anyways, since it returns a pointer to a static buffer.

So whoever calls inet_ntoa() should be aware that it is not
thread safe anyways.

Michael
(cherry picked from commit 974c0c45ad42644348e0b55454715b12158f1028)

16 years agolibreplace: put inet_aton.c under LGPL instead of GPL.
Michael Adam [Fri, 14 Mar 2008 14:53:38 +0000 (15:53 +0100)]
libreplace: put inet_aton.c under LGPL instead of GPL.

Michael
(cherry picked from commit cca5d6626fe395f08fd4c8b2344e4e43646cb987)

16 years agolibreplace: remove unused SOCKET_LIBS and NSL_LIBS
Stefan Metzmacher [Tue, 18 Mar 2008 14:01:34 +0000 (15:01 +0100)]
libreplace: remove unused SOCKET_LIBS and NSL_LIBS

metze
(cherry picked from commit 62bb177a6e4a3e1f949b78c7cd7583f2e1271739)

16 years agolibreplace: for samba4 create LIBREPLACE_NETWORK as EXT_LIB
Stefan Metzmacher [Tue, 18 Mar 2008 13:55:05 +0000 (14:55 +0100)]
libreplace: for samba4 create LIBREPLACE_NETWORK as EXT_LIB

metze
(cherry picked from commit 79037c31334e271a718fcac234148038814b591e)

16 years agolibreplace: use LIBREPLACE_NETWORK_LIBS within some configure checks
Stefan Metzmacher [Tue, 18 Mar 2008 13:53:59 +0000 (14:53 +0100)]
libreplace: use LIBREPLACE_NETWORK_LIBS within some configure checks

...instead of using SOCKET_LIBS and NSL_LIBS.

metze
(cherry picked from commit cef2e8d748756f61c248ad6660e85dd1ac36308a)

16 years agolibreplace: combine SOCKET_LIBS and NSL_LIBS to LIBREPLACE_NETWORK_LIBS
Stefan Metzmacher [Tue, 18 Mar 2008 13:52:36 +0000 (14:52 +0100)]
libreplace: combine SOCKET_LIBS and NSL_LIBS to LIBREPLACE_NETWORK_LIBS

But keep the old ones untill the callers are fixed.

metze
(cherry picked from commit e7115dcc8a0a4f420de7a901e3a21d4f35a6fcf9)

16 years agotestparm: only check for %u und passwd program when passwd program is given.
Michael Adam [Tue, 18 Mar 2008 14:50:27 +0000 (15:50 +0100)]
testparm: only check for %u und passwd program when passwd program is given.

Michael

16 years agotestparm: correctly check for empty lp_passwd_prog().
Michael Adam [Tue, 18 Mar 2008 14:49:31 +0000 (15:49 +0100)]
testparm: correctly check for empty lp_passwd_prog().

Michael

16 years agotestparm: fix irritating indentation.
Michael Adam [Tue, 18 Mar 2008 14:33:25 +0000 (15:33 +0100)]
testparm: fix irritating indentation.

Michael

16 years agotestparm: fix a segfault triggered by setting "unix password sync = yes".
Michael Adam [Tue, 18 Mar 2008 14:30:17 +0000 (15:30 +0100)]
testparm: fix a segfault triggered by setting "unix password sync = yes".

(introduced by pstring removal 041163551194102ca67fef52c57d87020a1d09bc)

Michael

16 years agoFix bug 5334
Volker Lendecke [Tue, 18 Mar 2008 12:20:10 +0000 (13:20 +0100)]
Fix bug 5334

I did not test with a zero length file :-)

16 years agoSome simplifications
Volker Lendecke [Mon, 17 Mar 2008 20:00:16 +0000 (21:00 +0100)]
Some simplifications

16 years agoCoverity fixes
Marc VanHeyningen [Fri, 14 Mar 2008 22:26:28 +0000 (14:26 -0800)]
Coverity fixes

16 years agolibsmbconf: rename all occurrences of libnet_conf_ to smbconf_ .
Michael Adam [Mon, 17 Mar 2008 17:01:33 +0000 (18:01 +0100)]
libsmbconf: rename all occurrences of libnet_conf_ to smbconf_ .

Michael

16 years agoMove libnet_conf to a library lib/smbconf/ of its own, fixing the api.
Michael Adam [Mon, 17 Mar 2008 16:29:44 +0000 (17:29 +0100)]
Move libnet_conf to a library lib/smbconf/ of its own, fixing the api.

The libnet_conf code to access the registry based configuration has
become more of a library used in several places in samba (e.g. loadparm)
than an abstraction of "net conf". So I move it to a location lib/smbconf/.

In the same breath, the api is fixed (not generated by make proto anymore).

Michael

16 years agosocket_wrapper: make pcap code more portable
Stefan Metzmacher [Mon, 17 Mar 2008 13:08:57 +0000 (14:08 +0100)]
socket_wrapper: make pcap code more portable

Now the pcap support works on x86_64.

metze
(cherry picked from commit 61a87bed61ef661d98131239976be95c6a8b4d96)

16 years agoFix use of AuthDataWithContext capability
Derrell Lipman [Mon, 17 Mar 2008 15:34:25 +0000 (11:34 -0400)]
Fix use of AuthDataWithContext capability

During my initial plans for, and the subsequent discussion of a more
significant change to the API for libsmbclient, I had removed the
AuthDataWithContext usage, in favor of a more generalized planned interface.
When the API returned to its original state, I neglected to reinsert this
code.

Use of an authentication function with the context can be tested using

  examples/libsmbclient/testbrowse -C

Derrell

16 years agoIn smbstatus, mark locking.tdb and sessionid.tdb as CLEAR_IF_FIRST
Volker Lendecke [Mon, 17 Mar 2008 13:45:59 +0000 (14:45 +0100)]
In smbstatus, mark locking.tdb and sessionid.tdb as CLEAR_IF_FIRST

This is needed to inform ctdb that it's not a persistent database, with the
O_RDONLY the tdb backend ignores this.

Merge from 491f902098d33f in 3-0-ctdb

16 years agoMerge leftovers of 0e1a86bc845 in 3-0-ctdb
Volker Lendecke [Mon, 17 Mar 2008 13:40:07 +0000 (14:40 +0100)]
Merge leftovers of 0e1a86bc845 in 3-0-ctdb

16 years agoUse right control to attach to persistent databases
Volker Lendecke [Mon, 17 Mar 2008 13:12:10 +0000 (14:12 +0100)]
Use right control to attach to persistent databases

This is a merge of 2a8f8b26f08ab09c34dff82417e541d8eb1ec91c and
4e6508dfee0d872a7fa42c9e58ba565137a27b3f from 3-0-ctdb

16 years agoAdd "net idmap aclmapset"
Volker Lendecke [Mon, 17 Mar 2008 12:51:50 +0000 (13:51 +0100)]
Add "net idmap aclmapset"

This is a merge from 3-0-ctdb that goes along with 1daad835, the option
nfs4:sidmap option

16 years agoregistry: untangle assignment and if-clause in init_registry_data().
Michael Adam [Mon, 17 Mar 2008 11:21:32 +0000 (12:21 +0100)]
registry: untangle assignment and if-clause in init_registry_data().

Michael

16 years agoConvert pdb_tdb to use dbwrap
Volker Lendecke [Fri, 14 Mar 2008 19:35:38 +0000 (20:35 +0100)]
Convert pdb_tdb to use dbwrap

16 years agoregistry: convert regdb REGISTRY_OPS to named struct initializers.
Michael Adam [Mon, 17 Mar 2008 00:44:26 +0000 (01:44 +0100)]
registry: convert regdb REGISTRY_OPS to named struct initializers.

Michael

16 years agoregistry: use talloc instead of malloc and provide common exit point
Michael Adam [Mon, 17 Mar 2008 00:39:16 +0000 (01:39 +0100)]
registry: use talloc instead of malloc and provide common exit point

in regdb_get_secdesc().

Michael

16 years agoregistry: remove an unused variable from regdb_set_secdesc().
Michael Adam [Mon, 17 Mar 2008 00:32:47 +0000 (01:32 +0100)]
registry: remove an unused variable from regdb_set_secdesc().

Michael

16 years agoregistry: untangle assignments and if statements in regdb_set_secdesc().
Michael Adam [Mon, 17 Mar 2008 00:31:47 +0000 (01:31 +0100)]
registry: untangle assignments and if statements in regdb_set_secdesc().

Michael

16 years agoregistry: use talloc_stackframe instead of hand crafted temporary context.
Michael Adam [Mon, 17 Mar 2008 00:27:27 +0000 (01:27 +0100)]
registry: use talloc_stackframe instead of hand crafted temporary context.

Michael

16 years agoregistry: use talloc instead of malloc for tdb data in regdb_store_values().
Michael Adam [Mon, 17 Mar 2008 00:26:35 +0000 (01:26 +0100)]
registry: use talloc instead of malloc for tdb data in regdb_store_values().

Michael

16 years agoregistry: don't use talloc_stackframe() instead of talloc_tos() als temp ctx
Michael Adam [Mon, 17 Mar 2008 00:20:18 +0000 (01:20 +0100)]
registry: don't use talloc_stackframe() instead of talloc_tos() als temp ctx

in regdb_store_values(). Also provide common exit path for
freeing memory.

Michael

16 years agoregistry: don't leak to talloc stack in regdb_fetch_keys().
Michael Adam [Mon, 17 Mar 2008 00:17:15 +0000 (01:17 +0100)]
registry: don't leak to talloc stack in regdb_fetch_keys().

Michael

16 years agoregistry: explicitly use talloc context instead of talloc_tos()
Michael Adam [Mon, 17 Mar 2008 00:09:31 +0000 (01:09 +0100)]
registry: explicitly use talloc context instead of talloc_tos()

in regdb_fetch_keys().

Michael

16 years agoregistry: don't leak on success path in regdb_store_keys().
Michael Adam [Mon, 17 Mar 2008 00:05:48 +0000 (01:05 +0100)]
registry: don't leak on success path in regdb_store_keys().

Michael

16 years agoregistry: allocate tempory data in talloc stack in regdb_store_keys().
Michael Adam [Mon, 17 Mar 2008 00:02:47 +0000 (01:02 +0100)]
registry: allocate tempory data in talloc stack in regdb_store_keys().

Michael

16 years agoregistry: separate cancel and failur exit paths in regdb_store_keys().
Michael Adam [Mon, 17 Mar 2008 00:00:40 +0000 (01:00 +0100)]
registry: separate cancel and failur exit paths in regdb_store_keys().

Michael

16 years agoregistry: don't leak memory on transaction fail in regdb_store_keys().
Michael Adam [Sun, 16 Mar 2008 23:43:56 +0000 (00:43 +0100)]
registry: don't leak memory on transaction fail in regdb_store_keys().

Michael

16 years agoregistry: don't leak (to talloc_tos()) in regdb_store_keys().
Michael Adam [Sun, 16 Mar 2008 23:41:59 +0000 (00:41 +0100)]
registry: don't leak (to talloc_tos()) in regdb_store_keys().

use talloc_stackframe() and free on error path.

Michael

16 years agoregistry: reformat regdb_store_keys_internal(), killing long lines.
Michael Adam [Sun, 16 Mar 2008 23:22:12 +0000 (00:22 +0100)]
registry: reformat regdb_store_keys_internal(), killing long lines.

Michael

16 years agoregistry: don't leak (to talloc_tos()) in regdb_store_keys_internal().
Michael Adam [Sun, 16 Mar 2008 23:09:07 +0000 (00:09 +0100)]
registry: don't leak (to talloc_tos()) in regdb_store_keys_internal().

Michael

16 years agoregistry: reformat init_registry_data() some, killing long lines.
Michael Adam [Sun, 16 Mar 2008 23:02:52 +0000 (00:02 +0100)]
registry: reformat init_registry_data() some, killing long lines.

Michael

16 years agoregistry: explicitly use talloc context instead of talloc_tos()
Michael Adam [Sun, 16 Mar 2008 22:52:40 +0000 (23:52 +0100)]
registry: explicitly use talloc context instead of talloc_tos()

in init_registry_data().

Michael

16 years agoregistry: don't leak (to talloc_tos()) in init_registry_data().
Michael Adam [Sun, 16 Mar 2008 22:49:59 +0000 (23:49 +0100)]
registry: don't leak (to talloc_tos()) in init_registry_data().

Michael

16 years agoregistry: rename tdb_refcount to regdb_refcount after change to dbwrap.
Michael Adam [Sun, 16 Mar 2008 22:08:33 +0000 (23:08 +0100)]
registry: rename tdb_refcount to regdb_refcount after change to dbwrap.

Michael

16 years agoregistry: rename tdb_reg to regdb after change to dbwrap.
Michael Adam [Sun, 16 Mar 2008 22:07:15 +0000 (23:07 +0100)]
registry: rename tdb_reg to regdb after change to dbwrap.

Michael

16 years agoregistry: migrate tdb registry backend to dbwrap.
Michael Adam [Sun, 16 Mar 2008 22:03:34 +0000 (23:03 +0100)]
registry: migrate tdb registry backend to dbwrap.

Michael

16 years agoFix Coverity ID 567
Volker Lendecke [Sun, 16 Mar 2008 19:23:44 +0000 (12:23 -0700)]
Fix Coverity ID 567

Jeremy, please push it if you like it and mark the bug as fixed on the Coverity
site.

Thanks,

Volker

16 years agoNeed to close the /dev/zero fd
Volker Lendecke [Sun, 16 Mar 2008 10:55:59 +0000 (11:55 +0100)]
Need to close the /dev/zero fd

16 years agoFix Coverity ID 554
Volker Lendecke [Sat, 15 Mar 2008 21:27:05 +0000 (22:27 +0100)]
Fix Coverity ID 554

16 years agoFix Coverity ID 555
Volker Lendecke [Sat, 15 Mar 2008 21:22:53 +0000 (22:22 +0100)]
Fix Coverity ID 555

16 years agoFix Coverity ID 563
Volker Lendecke [Sat, 15 Mar 2008 21:16:42 +0000 (22:16 +0100)]
Fix Coverity ID 563

dirmask is always set here, we've dereferenced it before anyway

16 years agoFix Coverity ID 564
Volker Lendecke [Sat, 15 Mar 2008 21:07:44 +0000 (22:07 +0100)]
Fix Coverity ID 564

finfo1==NULL just does not happen in current code

16 years agoAllocate one 0-byte in asprintf replacement when len==0
Volker Lendecke [Sat, 15 Mar 2008 20:47:22 +0000 (21:47 +0100)]
Allocate one 0-byte in asprintf replacement when len==0

Some S3 code depends on this.

16 years agoFix typo.
Günther Deschner [Sat, 15 Mar 2008 11:55:17 +0000 (12:55 +0100)]
Fix typo.

Guenther

16 years agoFix bug 5317
Volker Lendecke [Fri, 14 Mar 2008 21:22:30 +0000 (22:22 +0100)]
Fix bug 5317

Thanks to oster@cs.usask.ca

16 years agoFix bug 4901
Volker Lendecke [Fri, 14 Mar 2008 17:01:06 +0000 (18:01 +0100)]
Fix bug 4901

16 years agolibreplace: fix samba4 build (by not setting global LIBS).
Michael Adam [Fri, 14 Mar 2008 08:39:58 +0000 (09:39 +0100)]
libreplace: fix samba4 build (by not setting global LIBS).

This corrects the earlier fix of the standalone build, by setting
LIBS to the desired value only in configure.ac but not in getifaddrs.m4.

Not that this changes the standalone build in that it adds these libs
undconditionally and not only if they are needed by the getifaddrs
replacement functions.

Michael
(cherry picked from commit ff3af1703ddc9e5383f32156bc5be8351f795e76)

16 years agolibreplace: add -I$libreplacedir to CPPFLAGS for getifaddrs tests.
Michael Adam [Fri, 14 Mar 2008 07:52:16 +0000 (08:52 +0100)]
libreplace: add -I$libreplacedir to CPPFLAGS for getifaddrs tests.

This is needed, otherwise $libreplacedir/system/network.h does not
find $libreplacedir/getaddrinfo.h on some systems (solaris, e.g.).

Michael
(cherry picked from commit 297c3bece094ddb5f268b02e61e33f512ccfe6f5)

16 years agolibreplace: add an inet_aton() function that calls inet_pton().
Michael Adam [Fri, 14 Mar 2008 07:49:34 +0000 (08:49 +0100)]
libreplace: add an inet_aton() function that calls inet_pton().

inet_aton() is even needed inside libreplace, in the implementation
of rep_getaddrinfo().

Michael
(cherry picked from commit bcb2f3a880f8da8f9bedb7a8e61d7d7b533f1919)

16 years agoAllow parameter "include" in registry based configuration (again).
Michael Adam [Thu, 13 Mar 2008 22:08:07 +0000 (23:08 +0100)]
Allow parameter "include" in registry based configuration (again).

This is for instance important to allow includes with %I to setup
individual logging (e.g.) for certain clients.

Michael

16 years agoFix %I macro expansion for IPv4 mapped IPv6 addresses.
Michael Adam [Thu, 13 Mar 2008 22:02:58 +0000 (23:02 +0100)]
Fix %I macro expansion for IPv4 mapped IPv6 addresses.

On some systems (linux e.g.), when listening on ipv6 and ipv4,
addresses of ipv4 clients are printed as mapped ipv4 addresses
by getnameinfo (e.g. ::ffff:127.0.0.1). This re-establishes
the original behaviour of %I to expand to the plain ipv4 address
for an ipv4 client.

Michael

16 years agoUse existing srv_name_slash.
Günther Deschner [Wed, 12 Mar 2008 15:35:41 +0000 (16:35 +0100)]
Use existing srv_name_slash.

Guenther

16 years agoFor convenience reasons, always create cli->srv_name_slash in the rpc_client.
Günther Deschner [Wed, 12 Mar 2008 15:19:56 +0000 (16:19 +0100)]
For convenience reasons, always create cli->srv_name_slash in the rpc_client.

Guenther

16 years agoRemove unused marshalling for SRV_NET_DISK_ENUM.
Günther Deschner [Wed, 12 Mar 2008 15:18:54 +0000 (16:18 +0100)]
Remove unused marshalling for SRV_NET_DISK_ENUM.

Guenther