platform/upstream/dbus.git
13 years agotest-privserver-client: wait for server to die between iterations
Simon McVittie [Thu, 20 Jan 2011 13:41:58 +0000 (13:41 +0000)]
test-privserver-client: wait for server to die between iterations

This fixes a race condition: the server exits while the client continues
to the next iteration. If the server wins, the test passes. If the client
wins, it sends a message to the dying service, never gets a reply, and the
test fails.

My branch to refactor the main loop for fd.o #23194 seems to make the
client more likely to win this race, resulting in intermittent test
failures.

This is an instance of the general problem described by fd.o #11454.

13 years agotest_server_shutdown: disconnect the server before causing it to be freed
Simon McVittie [Wed, 19 Jan 2011 17:34:10 +0000 (17:34 +0000)]
test_server_shutdown: disconnect the server before causing it to be freed

Otherwise we die with an assertion failure.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=33277

13 years agotest_server_setup: allocate two server-data blobs, for watches and timeouts
Simon McVittie [Wed, 19 Jan 2011 17:33:31 +0000 (17:33 +0000)]
test_server_setup: allocate two server-data blobs, for watches and timeouts

This is similar to how ConnectionData works. Without this change, we
deserve to segfault: when the first set of callbacks (either watches or
timeouts) is cleaned up, we unref the server and loop, and free sd;
when the second set of callbacks is cleaned up, we use-after-free sd,
the server and the loop, then double-free sd.

However, due to fd.o #33277 we don't even get that far, because we've
already died with an assertion failure.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=33277

13 years agotest_server_setup: on OOM while setting up watch/timeout, don't leak sd
Simon McVittie [Wed, 19 Jan 2011 17:28:58 +0000 (17:28 +0000)]
test_server_setup: on OOM while setting up watch/timeout, don't leak sd

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=33128
Reviwed-by: Colin Walters <walters@verbum.org>
13 years ago_dbus_read_credentials_socket: support OpenBSD
Simon McVittie [Fri, 21 Jan 2011 13:27:18 +0000 (13:27 +0000)]
_dbus_read_credentials_socket: support OpenBSD

OpenBSD SO_PEERCRED is nearly the same as Linux SO_PEERCRED, but the
struct is named differently. Sigh.

Based on a patch from 'ajacoutot'.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=32542

13 years agofix bad DBusMessageIter doc example
Richard A. Hankins [Wed, 19 Jan 2011 15:59:24 +0000 (15:59 +0000)]
fix bad DBusMessageIter doc example

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=11190
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
13 years agosystemd: ensure that the system bus is unlikely to be killed on OOM
Lennart Poettering [Tue, 18 Jan 2011 22:46:15 +0000 (23:46 +0100)]
systemd: ensure that the system bus is unlikely to be killed on OOM

13 years ago_dbus_listen_tcp_socket: unify cleanup for EADDRINUSE and other failures
Simon McVittie [Tue, 18 Jan 2011 16:07:24 +0000 (16:07 +0000)]
_dbus_listen_tcp_socket: unify cleanup for EADDRINUSE and other failures

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=29881

13 years ago_dbus_listen_tcp_socket: free listen_fd in the error case
Christian Dywan [Tue, 18 Jan 2011 16:00:05 +0000 (16:00 +0000)]
_dbus_listen_tcp_socket: free listen_fd in the error case

Origin: vendor, Maemo
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=29881
Bug-NB: NB#180486
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
13 years agoFix failure in configure test for abstract sockets
Wulf C. Krueger [Mon, 30 Aug 2010 22:45:12 +0000 (22:45 +0000)]
Fix failure in configure test for abstract sockets

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=29895
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
13 years agoclean up credentials on OOM in process_config_first_time_only
Christian Dywan [Mon, 17 Jan 2011 12:41:12 +0000 (12:41 +0000)]
clean up credentials on OOM in process_config_first_time_only

Origin: vendor, Maemo
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=33128
Bug-NB: NB#180486
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
13 years agodbus-cleanup-sockets: free list of socket entries
Simon McVittie [Mon, 17 Jan 2011 12:18:40 +0000 (12:18 +0000)]
dbus-cleanup-sockets: free list of socket entries

Origin: vendor, Maemo
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=33128
Bug-NB: NB#180486
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
13 years agoremove obviously-redundant code from list_concat_new
Simon McVittie [Mon, 17 Jan 2011 12:04:09 +0000 (12:04 +0000)]
remove obviously-redundant code from list_concat_new

Origin: vendor, Maemo
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=33128
Bug-NB: NB#180486
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
13 years agohandle failure to register inotify shutdown function
Christian Dywan [Mon, 17 Jan 2011 12:02:22 +0000 (12:02 +0000)]
handle failure to register inotify shutdown function

Origin: vendor, Maemo
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=33128
Bug-NB: NB#180486
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
13 years agobus_matchmaker_new: free matchmaker itself, on OOM
Christian Dywan [Mon, 17 Jan 2011 11:58:23 +0000 (11:58 +0000)]
bus_matchmaker_new: free matchmaker itself, on OOM

Origin: vendor, Maemo
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=33128
Bug-NB: NB#180486
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
13 years agodbus-nonce: check results of _dbus_string_init for OOM
Christian Dywan [Mon, 17 Jan 2011 11:53:57 +0000 (11:53 +0000)]
dbus-nonce: check results of _dbus_string_init for OOM

Origin: vendor, Maemo
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=33128
Bug-NB: NB#180486
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
13 years agoMerge branch 'tmp'
Simon McVittie [Fri, 14 Jan 2011 15:19:18 +0000 (15:19 +0000)]
Merge branch 'tmp'

Reviewed-by: Will Thompson <will.thompson@collabora.co.uk>
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=32854

13 years agoRemove vestigial support for $INTLLIBS
Simon McVittie [Thu, 6 Jan 2011 18:21:31 +0000 (18:21 +0000)]
Remove vestigial support for $INTLLIBS

We no longer call AM_GLIB_GNU_GETTEXT or use gettext directly.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=25306
Reviewed-by: Will Thompson <will.thompson@collabora.co.uk>
13 years agoAdd autolaunch test to .gitignore
Simon McVittie [Thu, 6 Jan 2011 17:35:35 +0000 (17:35 +0000)]
Add autolaunch test to .gitignore

13 years agocmake/cross-compile.sh: use mktemp(1) to avoid a symlink attack in /tmp
Simon McVittie [Wed, 5 Jan 2011 19:10:43 +0000 (19:10 +0000)]
cmake/cross-compile.sh: use mktemp(1) to avoid a symlink attack in /tmp

13 years agoFix the check for -Wfloat-equal
Simon McVittie [Wed, 5 Jan 2011 19:10:24 +0000 (19:10 +0000)]
Fix the check for -Wfloat-equal

13 years agoconfigure.in: use AC_TRY_COMPILE to avoid a symlink attack in /tmp during compilation
Simon McVittie [Wed, 5 Jan 2011 19:10:12 +0000 (19:10 +0000)]
configure.in: use AC_TRY_COMPILE to avoid a symlink attack in /tmp during compilation

13 years agoFree session file early in dbus-launch
Christian Dywan [Thu, 23 Sep 2010 16:21:25 +0000 (09:21 -0700)]
Free session file early in dbus-launch

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=29881
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
13 years agoVerify that getsockname succeeded in _dbus_listen_tcp_socket
Christian Dywan [Mon, 19 Jul 2010 11:05:29 +0000 (13:05 +0200)]
Verify that getsockname succeeded in _dbus_listen_tcp_socket

Bug: https://bugs.freedesktop.org//show_bug.cgi?id=29881
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
13 years agoHandle failure to allocate error message in _read_subprocess_line_argv
Christian Dywan [Mon, 19 Jul 2010 09:36:15 +0000 (11:36 +0200)]
Handle failure to allocate error message in _read_subprocess_line_argv

Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=29881

13 years agoCheck return value of XGetWindowProperty in x11_get_address
Christian Dywan [Mon, 19 Jul 2010 09:48:06 +0000 (11:48 +0200)]
Check return value of XGetWindowProperty in x11_get_address

Reviewed-by: Thiago Macieira <thiago@kde.org>
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=29881

13 years agoAnnotate dbus_malloc*() functions with __attribute__ malloc and __attribute__ alloc_size
Cristian Rodríguez [Wed, 29 Dec 2010 00:10:31 +0000 (21:10 -0300)]
Annotate dbus_malloc*() functions with __attribute__ malloc and __attribute__ alloc_size

This improves optimization as well catches buffer overflows at compile time.

code like:

foo = dbus_malloc(2);
strcpy(foo, "epicfail");

will emit:

"warning ... will always overflow the destination buffer..."

Signed-off-by: Cristian Rodríguez <cristian.rodriguez@opensuse.org>
Reviewed-by: Thiago Macieira <thiago@kde.org>
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=32710

13 years agoconnection: correct HAVE_DECL_MSG_NOSIGNAL guard
Will Thompson [Fri, 24 Dec 2010 14:40:49 +0000 (14:40 +0000)]
connection: correct HAVE_DECL_MSG_NOSIGNAL guard

Helpfully, AC_CHECK_DECLS (which configure.in uses to define
HAVE_DECL_MSG_NOSIGNAL) behaves differently to every similar AC_CHECK_*
macro and, rather than producing #undef HAVE_DECL_MSG_NOSIGNAL if the
given symbol is not found, instead produces #define
HAVE_DECL_MSG_NOSIGNAL 0.

Mike McQuaid's patch fixes the uses of this constant in sysdeps-unix;
with this patch, all code is guarded consistently and correctly.

13 years agoFix error condition in _dbus_pipe_close
Christian Dywan [Tue, 4 Jan 2011 19:36:43 +0000 (19:36 +0000)]
Fix error condition in _dbus_pipe_close

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=32264
Reviewed-by: Colin Walters <walters@verbum.org>
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
13 years agoMake _dbus_system_logv actually exit with DBUS_SYSTEM_LOG_FATAL
Christian Dywan [Tue, 4 Jan 2011 19:23:47 +0000 (19:23 +0000)]
Make _dbus_system_logv actually exit with DBUS_SYSTEM_LOG_FATAL

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=32262
Bug-NB: NB#180486
Reviewed-by: Thiago Macieira <thiago@kde.org>
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
13 years agoWindows fix: MSVC 2010 has errno.h.
Pau Garcia i Quiles [Fri, 31 Dec 2010 15:10:42 +0000 (16:10 +0100)]
Windows fix: MSVC 2010 has errno.h.

13 years agoAvoid live lock in Windows (CE) under some situations due to unfair condition variables.
Marcus Brinkmann [Wed, 22 Dec 2010 16:02:33 +0000 (17:02 +0100)]
Avoid live lock in Windows (CE) under some situations due to unfair condition variables.

13 years agoUse absolute session service dir path in bus-test on windows.
Ralf Habacker [Wed, 29 Dec 2010 11:31:42 +0000 (12:31 +0100)]
Use absolute session service dir path in bus-test on windows.

13 years agoKeep in sync with autotools.
Ralf Habacker [Wed, 29 Dec 2010 13:41:41 +0000 (14:41 +0100)]
Keep in sync with autotools.

13 years agosysdeps-unix: use #if for HAVE_DECL_MSG_NOSIGNAL
Mike McQuaid [Fri, 24 Dec 2010 13:30:22 +0000 (13:30 +0000)]
sysdeps-unix: use #if for HAVE_DECL_MSG_NOSIGNAL

Signed-off-by: Will Thompson <will.thompson@collabora.co.uk>
13 years agoMention maintainer-upload-docs in the release process
Will Thompson [Tue, 21 Dec 2010 15:56:34 +0000 (15:56 +0000)]
Mention maintainer-upload-docs in the release process

13 years agoBump development version to 1.4.3.
Will Thompson [Tue, 21 Dec 2010 15:45:03 +0000 (15:45 +0000)]
Bump development version to 1.4.3.

The last release should have been 1.4.2; sorry.

13 years agoFix configure doc: libxml may be named libxml2 on some systems.
Ralf Habacker [Tue, 21 Dec 2010 07:46:52 +0000 (08:46 +0100)]
Fix configure doc: libxml may be named libxml2 on some systems.

13 years agoKeep in sync with automake.
Ralf Habacker [Tue, 21 Dec 2010 07:24:00 +0000 (08:24 +0100)]
Keep in sync with automake.

13 years agoDist additional README's too.
Ralf Habacker [Tue, 21 Dec 2010 07:23:27 +0000 (08:23 +0100)]
Dist additional README's too.

13 years agoPost-release version bump to 1.4.2
Will Thompson [Mon, 20 Dec 2010 21:24:24 +0000 (21:24 +0000)]
Post-release version bump to 1.4.2

13 years agoBump LT_REVISION for this new release. dbus-1.4.1
Will Thompson [Mon, 20 Dec 2010 21:18:17 +0000 (21:18 +0000)]
Bump LT_REVISION for this new release.

13 years agoNEWS for 1.4.1
Will Thompson [Mon, 20 Dec 2010 21:18:10 +0000 (21:18 +0000)]
NEWS for 1.4.1

13 years agoCVE 2010-4352: Reject deeply nested variants
Havoc Pennington [Mon, 13 Dec 2010 02:08:43 +0000 (21:08 -0500)]
CVE 2010-4352: Reject deeply nested variants

Add DBUS_INVALID_NESTED_TOO_DEEPLY validity problem and a test that
should generate it.

Previously, we rejected deep nesting in the signature, but
variants allow dynamic message nesting, conditional only
on the depth of the message body.

The nesting limit is 64, which was also the limit in static
signatures.  Empirically, dynamic nesting depth observed on my
Fedora 14 system doesn't exceed 2; 64 is really a huge limit.

https://bugs.freedesktop.org/show_bug.cgi?id=32321

Signed-Off-By: Colin Walters <walters@verbum.org>
Signed-off-by: Will Thompson <will.thompson@collabora.co.uk>
13 years agopolicy tests: Use bin rather than nogroup, wheel, or root
Will Thompson [Fri, 17 Dec 2010 18:42:13 +0000 (18:42 +0000)]
policy tests: Use bin rather than nogroup, wheel, or root

This group seems to exist on all of Debian, Fedora and Mac OS X. (I
mistakenly believed that nogroup exists on Fedora.)

13 years agosysdeps-unix: check for HAVE_DECL_MSG_NOSIGNAL
Will Thompson [Thu, 16 Dec 2010 13:56:04 +0000 (13:56 +0000)]
sysdeps-unix: check for HAVE_DECL_MSG_NOSIGNAL

MSG_NOSIGNAL could theoretically be an enum member or something rather
than an #define, so it's better to check for the flag defined by the
configure check (as is done in dbus-connection.c already).

Reviewed-by: Colin Walters <walters@verbum.org>
Reviewed-by: Scott James Remnant <scott@netsplit.com>
13 years agosysdeps-unix: use MSG_NOSIGNAL when sending creds
Scott James Remnant [Thu, 16 Dec 2010 11:11:44 +0000 (11:11 +0000)]
sysdeps-unix: use MSG_NOSIGNAL when sending creds

Since SIGPIPE is no longer touched by default when MSG_NOSIGNAL is
available, it's extra-critical that all socket writes actually pass
that flag.

Signed-off-by: Will Thompson <will.thompson@collabora.co.uk>
13 years agoRevert "test-autolaunch is only known to work in launchd environments."
Will Thompson [Mon, 13 Dec 2010 17:54:57 +0000 (17:54 +0000)]
Revert "test-autolaunch is only known to work in launchd environments."

This reverts commit 4626b405609900812125a407ef5fdd31c7b89868.
test-autolaunch works fine in non-launchd environments (and non-X11
environments, based on a quick test passing enable_x11=no to configure).
On the contrary: this commit *broke* the build on non-launchd
environments, because test/name-test/run-test.sh still tried to run this
test even if it hadn't been built.

13 years agoIgnore generated bus/org.freedesktop.dbus-session.plist
Will Thompson [Mon, 13 Dec 2010 17:52:40 +0000 (17:52 +0000)]
Ignore generated bus/org.freedesktop.dbus-session.plist

13 years agopolicy tests: Use 'nogroup' rather than 'wheel' or 'root'
Will Thompson [Mon, 13 Dec 2010 17:22:00 +0000 (17:22 +0000)]
policy tests: Use 'nogroup' rather than 'wheel' or 'root'

The excellently-titled commit 197bef8 “Fix test failures on OSX.” broke
the tests on Linux, since there's no wheel group on this side of the
tracks. So here's a group everyone should enjoy.

(If anyone comes along and tells me that DragonflyBSD doesn't have
'nogroup' …)

13 years agoHandle case when autolaunched daemon address is already pulished on windows.
Ralf Habacker [Tue, 14 Dec 2010 07:12:59 +0000 (08:12 +0100)]
Handle case when autolaunched daemon address is already pulished on windows.

13 years agoWindows fix: In install path scope case add hashed install path to mutex/shm name.
Ralf Habacker [Mon, 13 Dec 2010 21:17:12 +0000 (22:17 +0100)]
Windows fix: In install path scope case add hashed install path to mutex/shm name.

13 years agoFix malformed specification XML.
Will Thompson [Mon, 13 Dec 2010 15:35:16 +0000 (15:35 +0000)]
Fix malformed specification XML.

bf532d6 and 28a2d08 each introduced errors in the specification XML that
left it malformed and unbuildable.

13 years agoBe more verbose when publishing or requesting session bus address on Windows.
Ralf Habacker [Tue, 7 Dec 2010 01:32:36 +0000 (02:32 +0100)]
Be more verbose when publishing or requesting session bus address on Windows.

13 years agoAdd documentation for autolaunch meta transport on Windows.
Ralf Habacker [Tue, 7 Dec 2010 01:23:39 +0000 (02:23 +0100)]
Add documentation for autolaunch meta transport on Windows.

Reviewed-by: Romain Pokrzywka
13 years agoAdd launchd section to specification.
Mike McQuaid [Wed, 8 Dec 2010 22:49:30 +0000 (22:49 +0000)]
Add launchd section to specification.

13 years agoImplements user limited session bus on Windows.
Ralf Habacker [Tue, 7 Dec 2010 01:16:14 +0000 (02:16 +0100)]
Implements user limited session bus on Windows.

This feature is enabled by using the session bus address
"autolaunch:scope=*user" for the client and the server.

Reviewed-by: Romain Pokrzywka
13 years agoFixed bug not freeing mutex handle on Windows.
Ralf Habacker [Tue, 7 Dec 2010 00:34:38 +0000 (01:34 +0100)]
Fixed bug not freeing mutex handle on Windows.

Reviewed-by: Romain Pokrzywka
13 years agoVariables and functions name cleanup on Windows.
Ralf Habacker [Tue, 7 Dec 2010 00:07:05 +0000 (01:07 +0100)]
Variables and functions name cleanup on Windows.

Reviewed-by: Romain Pokrzywka
13 years ago10.4 is old so set more sensible launchd defaults.
Mike McQuaid [Wed, 8 Dec 2010 22:58:32 +0000 (22:58 +0000)]
10.4 is old so set more sensible launchd defaults.

13 years agoFix bus-test failure with cmake on unix.
Ralf Habacker [Sun, 11 Apr 2010 09:46:04 +0000 (11:46 +0200)]
Fix bus-test failure with cmake on unix.

SHA1 connection tests needs an non debug-pipe transport for the activation bus.

13 years agoEnable launchd.
Benjamin Reed [Sun, 19 Jul 2009 15:45:34 +0000 (11:45 -0400)]
Enable launchd.

This patch enables support for Mac OS X's launch daemon
for startup as well as sharing of the DBus session bus
environment.  It includes a LaunchAgent plist for automatic
start of the session bus.

13 years agoLook up DISPLAY from launchd if not initialized.
Benjamin Reed [Tue, 21 Jul 2009 14:33:32 +0000 (10:33 -0400)]
Look up DISPLAY from launchd if not initialized.

13 years agoAdd launchd implementation.
Benjamin Reed [Sun, 19 Jul 2009 15:44:50 +0000 (11:44 -0400)]
Add launchd implementation.

13 years agoFixed wrong libtoolize presence check.
Ralf Habacker [Mon, 6 Dec 2010 20:31:14 +0000 (21:31 +0100)]
Fixed wrong libtoolize presence check.

13 years agolibtoolize is called glibtoolize on OSX so check for it too.
Mike McQuaid [Tue, 5 Oct 2010 19:52:54 +0000 (20:52 +0100)]
libtoolize is called glibtoolize on OSX so check for it too.

13 years agoFix test failures on OSX.
Mike McQuaid [Tue, 5 Oct 2010 21:31:40 +0000 (22:31 +0100)]
Fix test failures on OSX.

13 years agotest-autolaunch is only known to work in launchd environments.
Mike McQuaid [Sat, 4 Dec 2010 22:47:35 +0000 (23:47 +0100)]
test-autolaunch is only known to work in launchd environments.

13 years agoKeep in sync with automake.
Ralf Habacker [Sat, 4 Dec 2010 00:07:07 +0000 (01:07 +0100)]
Keep in sync with automake.

13 years agoAdded a test-autolaunch.
Colin Walters [Wed, 11 Jun 2008 22:01:16 +0000 (18:01 -0400)]
Added a test-autolaunch.

* test/name-test/test-autolaunch.c: New file,
unsets DBUS_SESSION_BUS_ADDRESS so we should
fall back to autolaunch:.
* test/name-test/run-test.sh: Run it.
* test/name-test/Makefile.am: Build it.

13 years agoFix PROFILE_TIMED_FORMAT printf warning on OSX.
Mike McQuaid [Mon, 19 Apr 2010 18:04:28 +0000 (20:04 +0200)]
Fix PROFILE_TIMED_FORMAT printf warning on OSX.

14 years agoAdded revision history.
Ralf Habacker [Wed, 3 Nov 2010 14:15:24 +0000 (15:15 +0100)]
Added revision history.

14 years agoDocumentated autolaunch implementation for X Windowing system.
Thiago Macieira [Wed, 3 Nov 2010 13:59:26 +0000 (14:59 +0100)]
Documentated autolaunch implementation for X Windowing system.

14 years agoService dir related bug fix on windows.
Ralf Habacker [Fri, 29 Oct 2010 09:46:33 +0000 (11:46 +0200)]
Service dir related bug fix on windows.

The code for accessing services requires absolute pathes, which are based
on DBUS_DATADIR. DBUS_DATADIR on windows is defined relative. This patch
makes sure that those pathes are absolute.

14 years agoRestore the close_on_exec flag on windows.
Romain Pokrzywka [Mon, 4 Oct 2010 10:33:36 +0000 (12:33 +0200)]
Restore the close_on_exec flag on windows.

14 years agoMerge branch 'documentation-build-system'
Will Thompson [Tue, 26 Oct 2010 16:11:10 +0000 (17:11 +0100)]
Merge branch 'documentation-build-system'

14 years agoDist Readme.win instead of Readme.windbus
Andre Heinecke [Tue, 12 Oct 2010 13:36:56 +0000 (15:36 +0200)]
Dist Readme.win instead of Readme.windbus

14 years agoCleaned up windows related README's.
Ralf Habacker [Tue, 12 Oct 2010 12:45:12 +0000 (14:45 +0200)]
Cleaned up windows related README's.

14 years agoFixed reference to cmake configure options.
Ralf Habacker [Tue, 12 Oct 2010 11:50:10 +0000 (13:50 +0200)]
Fixed reference to cmake configure options.

14 years agokeep version in sync with automake
Ralf Habacker [Mon, 11 Oct 2010 22:20:21 +0000 (00:20 +0200)]
keep version in sync with automake

14 years agoMerge branch 'master' of ssh://git.freedesktop.org/git/dbus/dbus
Ralf Habacker [Fri, 8 Oct 2010 19:09:01 +0000 (21:09 +0200)]
Merge branch 'master' of ssh://git.freedesktop.org/git/dbus/dbus

14 years agoRevert "Added documentation for autolaunch transport."
Ralf Habacker [Fri, 8 Oct 2010 12:56:57 +0000 (14:56 +0200)]
Revert "Added documentation for autolaunch transport."

This reverts commit 2e61875728deca49a96e2db52275f3a5e24bb59b.

14 years agoTentative workaround for the random hangs on windows.
Romain Pokrzywka [Sun, 3 Oct 2010 23:46:42 +0000 (01:46 +0200)]
Tentative workaround for the random hangs on windows.

The problem seems to be a race condition with winsock's
internal threads for the non-blocking mode of the sockets,
but I haven't had time to try a standalone test case yet
to confirm it. Anyway, I found a workaround that fixes it
in all cases, so it's good enough for now.

14 years agotentative workaround for the random hangs on windows
Romain Pokrzywka [Sun, 3 Oct 2010 23:46:42 +0000 (01:46 +0200)]
tentative workaround for the random hangs on windows

14 years agoOnly use signature directly inside _dbus_verbose
Christian Dywan [Tue, 20 Jul 2010 13:23:31 +0000 (15:23 +0200)]
Only use signature directly inside _dbus_verbose

14 years agoDon't pretend to free lock if it was never allocated
Christian Dywan [Tue, 20 Jul 2010 13:01:03 +0000 (15:01 +0200)]
Don't pretend to free lock if it was never allocated

14 years agoAlways get current time in _dbus_connection_block_pending_call
Christian Dywan [Tue, 21 Sep 2010 12:43:39 +0000 (14:43 +0200)]
Always get current time in _dbus_connection_block_pending_call

14 years agoTake care to free windows_sid in cache_peer_loginfo_string
Christian Dywan [Tue, 20 Jul 2010 09:53:15 +0000 (11:53 +0200)]
Take care to free windows_sid in cache_peer_loginfo_string

14 years agoFree envvar and args in pass_info in the oom case
Christian Dywan [Tue, 20 Jul 2010 10:50:23 +0000 (12:50 +0200)]
Free envvar and args in pass_info in the oom case

14 years agoMove uploading docs into build system.
Will Thompson [Thu, 9 Sep 2010 12:15:57 +0000 (13:15 +0100)]
Move uploading docs into build system.

This uploads a doc tarball, and its contents, to the appropriate
location on dbus.freedesktop.org. It also uploads the DTDs to the
appropriate location on specifications.freedesktop.org.

I believe this uploads the same files as the old update-dbus-docs.sh
script did.

14 years agoIntegrate building HTML-ified manpages with the build system
Will Thompson [Wed, 8 Sep 2010 21:38:22 +0000 (22:38 +0100)]
Integrate building HTML-ified manpages with the build system

14 years agoReport correct result of doxygen/xml doc checks
Will Thompson [Wed, 8 Sep 2010 21:12:00 +0000 (22:12 +0100)]
Report correct result of doxygen/xml doc checks

Previously the configure output always said these were enabled during
the 'Checking for...' stage, even if they weren't. The summary at the
end of configure was correct, though.

14 years agoMove manpages to doc/
Will Thompson [Wed, 8 Sep 2010 21:10:47 +0000 (22:10 +0100)]
Move manpages to doc/

This will make integrating the building of HTML versions of these
manpages into the build system way easier, at the cost of keeping
manpages in a different directory to the source for the program they
describe. I think this is an acceptable trade-off.

14 years agoBuild Doxygen documentation for `make all`.
Will Thompson [Wed, 8 Sep 2010 19:58:05 +0000 (20:58 +0100)]
Build Doxygen documentation for `make all`.

This depends on GNU Make for the wildcard dependency on all the source
files in dbus/. If anyone objects very strongly to this, I'd welcome
suggestions of a more portable way to do this.

14 years agoUpdate a load of .gitignores
Will Thompson [Wed, 8 Sep 2010 21:19:28 +0000 (22:19 +0100)]
Update a load of .gitignores

14 years agoSilence silent build a bit more.
Will Thompson [Wed, 8 Sep 2010 18:42:19 +0000 (19:42 +0100)]
Silence silent build a bit more.

14 years agoSquash warnings and spurious output from autogen.sh
Will Thompson [Wed, 8 Sep 2010 18:25:40 +0000 (19:25 +0100)]
Squash warnings and spurious output from autogen.sh

14 years agoUse Automake 1.11, if available, for silent rules
Will Thompson [Wed, 8 Sep 2010 18:20:18 +0000 (19:20 +0100)]
Use Automake 1.11, if available, for silent rules

Automake 1.11 adds support for silent rules, which are conditionally
enabled in configure.in if available.

Also, previously it was impossible to override the version chosen by
this script; this patch makes that possible.

14 years agoWhen launching dbus-daemon be more verbose in error case.
Ralf Habacker [Tue, 28 Sep 2010 06:17:38 +0000 (08:17 +0200)]
When launching dbus-daemon be more verbose in error case.

14 years agoKeep unix autolaunch functions in sync.
Ralf Habacker [Mon, 27 Sep 2010 20:21:29 +0000 (22:21 +0200)]
Keep unix autolaunch functions in sync.