Simon McVittie
69c0c06e35
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>
2011-01-17 12:04:09 +00:00
Christian Dywan
0f67e86308
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>
2011-01-17 12:02:30 +00:00
Christian Dywan
85cb8414ff
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>
2011-01-17 11:58:26 +00:00
Christian Dywan
6520ecde58
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>
2011-01-17 11:54:08 +00:00
Simon McVittie
84d4ed242a
Merge branch 'tmp'
...
Reviewed-by: Will Thompson <will.thompson@collabora.co.uk>
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=32854
2011-01-14 15:19:23 +00:00
Simon McVittie
5b6369d783
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>
2011-01-14 15:18:19 +00:00
Simon McVittie
e870df7b82
Add autolaunch test to .gitignore
2011-01-06 17:35:35 +00:00
Simon McVittie
297919ae61
cmake/cross-compile.sh: use mktemp(1) to avoid a symlink attack in /tmp
2011-01-05 19:10:43 +00:00
Simon McVittie
c71f1e9657
Fix the check for -Wfloat-equal
2011-01-05 19:10:24 +00:00
Simon McVittie
d83d74dc68
configure.in: use AC_TRY_COMPILE to avoid a symlink attack in /tmp during compilation
2011-01-05 19:10:12 +00:00
Christian Dywan
916620ea96
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>
2011-01-05 14:55:42 +00:00
Christian Dywan
68b1d6ad5f
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>
2011-01-05 14:51:03 +00:00
Christian Dywan
14be9f738b
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
2011-01-05 14:47:12 +00:00
Christian Dywan
79b4e478d7
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
2011-01-05 14:42:45 +00:00
Cristian Rodríguez
e2be7b92a6
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
2011-01-05 13:13:48 +00:00
Will Thompson
56d8d4f58e
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.
2011-01-05 12:08:57 +00:00
Christian Dywan
11b71e901c
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>
2011-01-04 19:37:19 +00:00
Christian Dywan
7fa27f7d09
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>
2011-01-04 19:27:33 +00:00
Pau Garcia i Quiles
b46b4cf3c4
Windows fix: MSVC 2010 has errno.h.
2010-12-31 16:12:18 +01:00
Marcus Brinkmann
93f98dc3d8
Avoid live lock in Windows (CE) under some situations due to unfair condition variables.
2010-12-29 22:44:27 +01:00
Ralf Habacker
02d973686a
Use absolute session service dir path in bus-test on windows.
2010-12-29 14:43:24 +01:00
Ralf Habacker
79026cee36
Keep in sync with autotools.
2010-12-29 14:42:45 +01:00
Mike McQuaid
88004d6b66
sysdeps-unix: use #if for HAVE_DECL_MSG_NOSIGNAL
...
Signed-off-by: Will Thompson <will.thompson@collabora.co.uk>
2010-12-24 14:34:46 +00:00
Will Thompson
0f41007b7c
Mention maintainer-upload-docs in the release process
2010-12-21 15:56:34 +00:00
Will Thompson
0d40697750
Bump development version to 1.4.3.
...
The last release should have been 1.4.2; sorry.
2010-12-21 15:45:03 +00:00
Ralf Habacker
e215d810d1
Fix configure doc: libxml may be named libxml2 on some systems.
2010-12-21 08:46:52 +01:00
Ralf Habacker
34ef61645c
Keep in sync with automake.
2010-12-21 08:24:00 +01:00
Ralf Habacker
2521c59437
Dist additional README's too.
2010-12-21 08:23:27 +01:00
Will Thompson
c3354cafe3
Post-release version bump to 1.4.2
2010-12-20 21:39:30 +00:00
Will Thompson
93f685255a
Bump LT_REVISION for this new release.
2010-12-20 21:39:30 +00:00
Will Thompson
2a16ab9ff2
NEWS for 1.4.1
2010-12-20 21:39:30 +00:00
Havoc Pennington
7d65a3a6ed
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>
2010-12-20 21:39:00 +00:00
Will Thompson
f2905def7b
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.)
2010-12-17 18:42:13 +00:00
Will Thompson
48a16845d6
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>
2010-12-16 19:49:04 +00:00
Scott James Remnant
c5d0998295
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>
2010-12-16 11:12:44 +00:00
Will Thompson
c3a94b57c8
Revert "test-autolaunch is only known to work in launchd environments."
...
This reverts commit 4626b40560 .
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.
2010-12-15 09:43:17 +01:00
Will Thompson
a7e5b20e6a
Ignore generated bus/org.freedesktop.dbus-session.plist
2010-12-15 09:43:11 +01:00
Will Thompson
844134faee
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' …)
2010-12-15 09:42:55 +01:00
Ralf Habacker
4bf509b6fd
Handle case when autolaunched daemon address is already pulished on windows.
2010-12-14 08:12:59 +01:00
Ralf Habacker
3bacc897c7
Windows fix: In install path scope case add hashed install path to mutex/shm name.
2010-12-13 23:13:56 +01:00
Will Thompson
ff393c562d
Fix malformed specification XML.
...
bf532d6 and 28a2d08 each introduced errors in the specification XML that
left it malformed and unbuildable.
2010-12-13 15:35:34 +00:00
Ralf Habacker
72515ae754
Be more verbose when publishing or requesting session bus address on Windows.
2010-12-13 15:06:43 +01:00
Ralf Habacker
bf532d6556
Add documentation for autolaunch meta transport on Windows.
...
Reviewed-by: Romain Pokrzywka
2010-12-13 15:06:33 +01:00
Mike McQuaid
28a2d08815
Add launchd section to specification.
2010-12-13 12:35:55 +01:00
Ralf Habacker
c29637ac6b
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
2010-12-10 08:43:43 +01:00
Ralf Habacker
9b79817148
Fixed bug not freeing mutex handle on Windows.
...
Reviewed-by: Romain Pokrzywka
2010-12-10 08:43:02 +01:00
Ralf Habacker
d808e529bd
Variables and functions name cleanup on Windows.
...
Reviewed-by: Romain Pokrzywka
2010-12-10 08:42:57 +01:00
Mike McQuaid
5232faad40
10.4 is old so set more sensible launchd defaults.
2010-12-09 08:20:07 +01:00
Ralf Habacker
1d2f5607b4
Fix bus-test failure with cmake on unix.
...
SHA1 connection tests needs an non debug-pipe transport for the activation bus.
2010-12-07 22:51:00 +01:00
Benjamin Reed
f1b9aac417
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.
2010-12-06 21:33:14 +01:00