summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2013-10-09D-Bus 1.7.6, spec 0.22Simon McVittie3-5/+10
2013-10-09yet more NEWSSimon McVittie1-3/+15
2013-10-09dbus-monitor: keep backwards compatibilityChengwei Yang1-6/+25
eavesdropping as a match rule key introduced in DBus 1.5.6, and the privous implementation doesn't keep backwards compatibility with older dbus-daemon. And the reference dbus-daemon implementation just fail if unknwon key found in match rule, this is undefined hehavior in DBus Sepcification. Also there is a feature request for change this hehavior to "ignore unknown key in match rule", See https://bugs.freedesktop.org/show_bug.cgi?id=66114 Bug: https://bugs.freedesktop.org/show_bug.cgi?id=66107 Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
2013-10-09dbus-send: replace --address with --peer and --bus.Andrey Mazo1-6/+31
--peer is a direct substitute for --address. With --bus dbus-send registers on bus given by ADDRESS, thus allowing messages to be sent to the bus. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=48816 [adjusted to apply to current master -smcv] Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
2013-10-09Revert "dbus-send: replace --address"... to fix attributionSimon McVittie1-31/+6
This reverts commit 5b74af796c8f1d9f3f60594f22c6bfd4c097ad8b.
2013-10-09Remove unused key-word of DBus .service fileChengwei Yang1-1/+0
Key-word "Group" of DBus .service file hasn't been used since it was introduced in 2007, so it's fine to remove it. https://bugs.freedesktop.org/show_bug.cgi?id=19158 Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
2013-10-09launch-helper: fix error code parsingChengwei Yang3-2/+10
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=66728 Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
2013-10-08Merge branch 'dbus-1.6'Simon McVittie0-0/+0
Conflicts: NEWS configure.ac
2013-10-081.6.17Simon McVittie2-1/+4
2013-10-08releasedebian/1.6.16-1Simon McVittie1-2/+2
2013-10-08Standards-Version: 3.9.4 (no changes needed)Simon McVittie2-1/+2
2013-10-08Add udeb packages, so the graphical installer can use AT-SPI (Closes: #723952)Simon McVittie6-1/+73
2013-10-08Backport the new dbus-run-session tool from D-Bus 1.7Simon McVittie6-0/+827
2013-10-08Spec: document multiple .service files own the same well known nameChengwei Yang1-3/+22
In current dbus-daemon(1) implement, system .serivce must named after its owned name, but this is not the case for session .service. For session service, the result of multiple .service files own the same well known name is undefined since readdir(3) doesn't return dirent in a defined sequence. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=66608 [added some </para><para> -smcv] Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
2013-10-08Unify the way to find dbus-daemon test binaryChengwei Yang4-36/+34
There are two ways to find the dbus-daemon for testing. The first one is defined as string at compile stage and the second one is export it from test environment. The first way has limitation that after defined, it's static string, so it's impossible to run installable check. So let's unify to the second way. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=37849 [added missing "}" -smcv] Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
2013-10-08dbus-send: replace --address with --peer and --bus.Simon McVittie1-6/+31
--peer is a direct substitute for --address. With --bus dbus-send registers on bus given by ADDRESS, thus allowing messages to be sent to the bus. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=48816 [adjusted to apply to current master -smcv] Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
2013-10-08New upstream stable release 1.6.16Simon McVittie1-0/+6
2013-10-08Merge tag 'upstream/1.6.16'Simon McVittie16-214/+298
Upstream version 1.6.16
2013-10-08Imported Upstream version 1.6.16upstream/1.6.16Simon McVittie16-214/+298
2013-10-081.6.14Simon McVittie2-3/+3
2013-10-08fix off by one error message (#13305)Chengwei Yang1-10/+10
This patch is based on the patch created by John (J5) Palmieri <johnp@redhat.com> plus to fix array of string assignment. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=13305 Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
2013-10-08dbus-message.c: unused variable bytes_read in _dbus_message_loader_get_bufferVasiliy Balyasnyy5-28/+14
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=70218 Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
2013-10-08dbus-monitor: remove redundant match rulesChengwei Yang1-16/+1
Currently, DBus Specification only consists of four message types, so to monitor all the types of message, no need to match all of them but just left it empty is OK. Signed-off-by: Chengwei Yang <chengwei.yang@intel.com> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=66107 Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
2013-10-08NEWSSimon McVittie1-0/+8
2013-10-08spec: briefly describe Name, Exec and User keysSimon McVittie1-0/+13
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=66608 Reviewed-by: Chengwei Yang <chengwei.yang@intel.com>
2013-10-08spec: system services' service description files have constrained namesSimon McVittie1-0/+13
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=66608 Reviewed-by: Chengwei Yang <chengwei.yang@intel.com>
2013-10-08Do not suggest user the next step after executed autogen.shChengwei Yang1-7/+1
We assume that user/developer who building dbus from source code are familiar with the standard 'autogen.sh, configure, make, make install' build process, so print such a notice doesn't make a lot of sense. In addition, on *BSD platform, the pre-installed 'make' doesn't work at all since gnu make is required. However, it named to 'gmake' on *BSD platform. So the notice will makes new comer confused. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=65415 Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
2013-10-08Add support for configuring --with-valgrind=autoSimon McVittie1-0/+4
This is the configuration I'd like to use for the "debug build" of dbus on Debian - if we use --with-valgrind=yes, we have to hard-code knowledge of which architectures do and don't have Valgrind in two places instead of just one. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=56925 Reviewed-by: Chengwei Yang <chengwei.yang@intel.com>
2013-10-08When using dbus-launch for tests, fail hard if test binary is missingSimon McVittie1-1/+2
We want to test the version-under-test, not the system version. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=37849 Reviewed-by: Chengwei Yang <chengwei.yang@intel.com>
2013-10-08dbus-launch: avoid asprintf(), and die gracefully on out-of-memorySimon McVittie1-4/+28
asprintf() is a GNU extension (non-portable). Bug: https://bugs.freedesktop.org/show_bug.cgi?id=37849 Reviewed-by: Chengwei Yang <chengwei.yang@intel.com>
2013-10-08Fix build on NetBSD 6.1.1 with gcc 4.5.3Chengwei Yang2-1/+4
There are two build failure on NetBSD 6.1.1 with gcc 4.5.3, the first one is char to int, warning treated as error. The second one is a mismatch between format string and arguments. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=69842 [adjusted commit message -smcv] Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
2013-09-25NEWSSimon McVittie1-0/+2
2013-09-25Use 'cp' instead of 'cp -av' to fix portable issueChengwei Yang1-1/+1
Neither '-a' nor '-v' of 'cp' is available on OpenBSD 5.3, so use 'cp' instead to fix portable issue. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=69789 Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
2013-09-25Use 'chmod' instead of 'chmod -c'Chengwei Yang1-1/+1
chmod -c is not available on *BSD system, and '-v' is not available on OpenBSD, so just execute chmod without any option. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=35881 Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
2013-09-23NEWSSimon McVittie1-0/+3
2013-09-23_dbus_read_credentials_socket: warn or fail at compile time if no supportSimon McVittie1-0/+15
On a whitelist of OSs known to have working credentials-passing (currently FreeBSD, Linux, OpenBSD and NetBSD), it would be a regression for us to not have credentials-passing, so fail hard. On other OSs, raise a warning, which is not normally fatal but will alert developers on those platforms. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=60340 Reviewed-by: Colin Walters <walters@verbum.org>
2013-09-23Prefer getpeerucred() over getpeereid() if a platform has bothSimon McVittie1-31/+32
We want the process ID, and getpeerucred() provides that. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=60340 Reviewed-by: Colin Walters <walters@verbum.org>
2013-09-23bus-test: only expect GetConnectionUnixProcessID to succeed sometimesSimon McVittie1-0/+6
On platforms that use getpeereid(), this can't work. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=60340 Reviewed-by: Colin Walters <walters@verbum.org>
2013-09-23_dbus_read_credentials_socket: document where we use each mechanismSimon McVittie1-1/+41
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=60340 Reviewed-by: Colin Walters <walters@verbum.org>
2013-09-23Remove BSD-style LOCAL_CREDS supportSimon McVittie1-70/+2
It appears that this regressed back in 2009 (commit 7bf132c7) and doesn't compile. Also, with patches from Matt Fischer to make it compile again on QNX, it compiles but doesn't actually work on NetBSD, which was the platform for which this code was added. This might be for the reasons described in <http://julipedia.meroh.net/2006/08/localcreds-socket-credentials.html>. NetBSD pkgsrc has a large unsubmitted patch to use LOCAL_PEEREID, which is analogous to Linux/OpenBSD SO_PEERCRED. So, I think we can safely assume that nobody is relying on this: either they implement one of our many other supported credentials-passing mechanisms, or they're patching it locally anyway. LOCAL_CREDS is not actually very good - it's awkward to use, and doesn't provide the pid, only the uid. Of the platforms known to implement it, QNX and NetBSD both have getpeereid() which provides just as much information, while FreeBSD and Dragonfly BSD both have SCM_CREDS which provides the pid too. So, let's just get rid of it. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=60340 Reviewed-by: Colin Walters <walters@verbum.org>
2013-09-16NEWSSimon McVittie1-1/+16
2013-09-16Fix an incorrect sizeof.Sviatoslav Chagaev1-1/+1
Fix an incorrect sizeof which leads to allocation of more memory than actually needed. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=69329 [elide redundant "* sizeof (char)" which is 1 by definition -smcv] Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
2013-09-16Revert "Fix an incorrect sizeof." to fix attributionSimon McVittie1-1/+1
This reverts commit 3c1938180bdca8fc658907f6f692186be2b81b77.
2013-09-16fix NEWS mis-mergeSimon McVittie1-15/+5
2013-09-16Remove support for platforms with no 64-bit integer typeSimon McVittie11-252/+25
This has been a soft requirement since 1.5.0; anyone on such platforms would have had to configure --without-64-bit, provoking a warning that instructed them to report a D-Bus bug with details of their platform. Nobody has done so, so if anyone still lacks a 64-bit integer type, they're on their own. (Also, I tried the build with --without-64-bit and it's full of fatal compiler warnings, so it's not clear that we're actually losing anything by removing this "feature".) Bug: https://bugs.freedesktop.org/show_bug.cgi?id=65429 Reviewed-by: Chengwei Yang <chengwei.yang@intel.com>
2013-09-16Merge branch 'dbus-1.6'Simon McVittie1-0/+15
Conflicts: NEWS
2013-09-16NEWS for 1.6.xSimon McVittie1-0/+5
2013-09-16dbus-mainloop.c: undeclared variable n_fds if define MAINLOOP_SPEW.Vasiliy Balyasnyy1-1/+1
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=69410 Reviewed-by: Chengwei Yang <chengwei.yang@intel.com> Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
2013-09-16Merge branch 'dbus-1.6'Simon McVittie1-1/+1
2013-09-16dbus-sysdeps-unix.c: undeclared ret2 variable if HAVE_WRITEV undefined.Vasiliy Balyasnyy1-1/+1
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=69409