windbus-svn Mailing List for winDBus (Page 2)
Brought to you by:
syntheticpp
You can subscribe to this list here.
2006 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(16) |
Aug
(159) |
Sep
(139) |
Oct
(22) |
Nov
(128) |
Dec
(35) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2007 |
Jan
(12) |
Feb
(22) |
Mar
(38) |
Apr
(1) |
May
(10) |
Jun
(53) |
Jul
(71) |
Aug
(19) |
Sep
|
Oct
|
Nov
|
Dec
(2) |
2008 |
Jan
|
Feb
(1) |
Mar
(10) |
Apr
(7) |
May
(9) |
Jun
|
Jul
(5) |
Aug
(5) |
Sep
|
Oct
(8) |
Nov
|
Dec
|
2009 |
Jan
(6) |
Feb
(6) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(3) |
Dec
|
2010 |
Jan
(5) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: <che...@us...> - 2008-10-23 17:38:40
|
Revision: 795 http://windbus.svn.sourceforge.net/windbus/?rev=795&view=rev Author: chehrlic Date: 2008-10-23 17:38:30 +0000 (Thu, 23 Oct 2008) Log Message: ----------- tag 1.2.4 Added Paths: ----------- tags/1.2.4/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <che...@us...> - 2008-10-23 17:35:50
|
Revision: 794 http://windbus.svn.sourceforge.net/windbus/?rev=794&view=rev Author: chehrlic Date: 2008-10-23 17:35:39 +0000 (Thu, 23 Oct 2008) Log Message: ----------- update to 1.2.4 Modified Paths: -------------- trunk/cmake/CMakeLists.txt trunk/configure trunk/configure.in trunk/dbus/dbus-credentials.h trunk/dbus/dbus-marshal-recursive.c trunk/dbus/dbus-marshal-validate-util.c trunk/dbus/dbus-marshal-validate.c trunk/dbus/dbus-sysdeps-unix.c trunk/dbus/dbus-sysdeps-util-unix.c trunk/doc/dbus-faq.html trunk/doc/dbus-specification.html trunk/doc/dbus-test-plan.html trunk/test/data/invalid-service-files-system/org.freedesktop.DBus.TestSuiteNoService.service trunk/test/data/invalid-service-files-system/org.freedesktop.DBus.TestSuiteNoUser.service trunk/test/data/valid-config-files/debug-allow-all-sha1.conf trunk/test/data/valid-config-files/debug-allow-all.conf trunk/test/data/valid-config-files-system/debug-allow-all-fail.conf trunk/test/data/valid-config-files-system/debug-allow-all-pass.conf trunk/test/data/valid-service-files/org.freedesktop.DBus.TestSuite.PrivServer.service trunk/test/data/valid-service-files/org.freedesktop.DBus.TestSuiteEchoService.service trunk/test/data/valid-service-files/org.freedesktop.DBus.TestSuiteSegfaultService.service trunk/test/data/valid-service-files/org.freedesktop.DBus.TestSuiteShellEchoServiceFail.service trunk/test/data/valid-service-files/org.freedesktop.DBus.TestSuiteShellEchoServiceSuccess.service trunk/test/data/valid-service-files-system/org.freedesktop.DBus.TestSuiteEchoService.service trunk/test/data/valid-service-files-system/org.freedesktop.DBus.TestSuiteSegfaultService.service trunk/test/data/valid-service-files-system/org.freedesktop.DBus.TestSuiteShellEchoServiceFail.service trunk/test/data/valid-service-files-system/org.freedesktop.DBus.TestSuiteShellEchoServiceSuccess.service Property Changed: ---------------- trunk/ Property changes on: trunk ___________________________________________________________________ Modified: svn:mergeinfo - /branches/import:775-788 + /branches/import:775-793 Modified: trunk/cmake/CMakeLists.txt =================================================================== --- trunk/cmake/CMakeLists.txt 2008-10-23 17:28:41 UTC (rev 793) +++ trunk/cmake/CMakeLists.txt 2008-10-23 17:35:39 UTC (rev 794) @@ -3,7 +3,7 @@ # the version major, minor and release number should be synchron to the dbus cvs - windows releases should only update the patch level set (VERSION_MAJOR "1") set (VERSION_MINOR "2") -set (VERSION_RELEASE "3") +set (VERSION_RELEASE "4") set (VERSION_PATCH "0") if (VERSION_PATCH) set (VERSION "${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_RELEASE}-${VERSION_PATCH}" ) Modified: trunk/configure =================================================================== --- trunk/configure 2008-10-23 17:28:41 UTC (rev 793) +++ trunk/configure 2008-10-23 17:35:39 UTC (rev 794) @@ -1,6 +1,6 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.61 for dbus 1.2.3. +# Generated by GNU Autoconf 2.61 for dbus 1.2.4. # # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. @@ -726,8 +726,8 @@ # Identity of this package. PACKAGE_NAME='dbus' PACKAGE_TARNAME='dbus' -PACKAGE_VERSION='1.2.3' -PACKAGE_STRING='dbus 1.2.3' +PACKAGE_VERSION='1.2.4' +PACKAGE_STRING='dbus 1.2.4' PACKAGE_BUGREPORT='' # Factoring default headers for most tests. @@ -1496,7 +1496,7 @@ # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF -\`configure' configures dbus 1.2.3 to adapt to many kinds of systems. +\`configure' configures dbus 1.2.4 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1571,7 +1571,7 @@ if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of dbus 1.2.3:";; + short | recursive ) echo "Configuration of dbus 1.2.4:";; esac cat <<\_ACEOF @@ -1714,7 +1714,7 @@ test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -dbus configure 1.2.3 +dbus configure 1.2.4 generated by GNU Autoconf 2.61 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, @@ -1728,7 +1728,7 @@ This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. -It was created by dbus $as_me 1.2.3, which was +It was created by dbus $as_me 1.2.4, which was generated by GNU Autoconf 2.61. Invocation command line was $ $0 $@ @@ -2546,7 +2546,7 @@ # Define the identity of the package. PACKAGE='dbus' - VERSION='1.2.3' + VERSION='1.2.4' cat >>confdefs.h <<_ACEOF @@ -2834,8 +2834,8 @@ DBUS_MAJOR_VERSION=1 DBUS_MINOR_VERSION=2 -DBUS_MICRO_VERSION=3 -DBUS_VERSION=1.2.3 +DBUS_MICRO_VERSION=4 +DBUS_VERSION=1.2.4 @@ -30351,7 +30351,7 @@ # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" -This file was extended by dbus $as_me 1.2.3, which was +This file was extended by dbus $as_me 1.2.4, which was generated by GNU Autoconf 2.61. Invocation command line was CONFIG_FILES = $CONFIG_FILES @@ -30404,7 +30404,7 @@ _ACEOF cat >>$CONFIG_STATUS <<_ACEOF ac_cs_version="\\ -dbus config.status 1.2.3 +dbus config.status 1.2.4 configured by $0, generated by GNU Autoconf 2.61, with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" Modified: trunk/configure.in =================================================================== --- trunk/configure.in 2008-10-23 17:28:41 UTC (rev 793) +++ trunk/configure.in 2008-10-23 17:35:39 UTC (rev 794) @@ -3,7 +3,7 @@ m4_define([dbus_major_version], [1]) m4_define([dbus_minor_version], [2]) -m4_define([dbus_micro_version], [3]) +m4_define([dbus_micro_version], [4]) m4_define([dbus_version], [dbus_major_version.dbus_minor_version.dbus_micro_version]) AC_INIT(dbus, [dbus_version]) Modified: trunk/dbus/dbus-credentials.h =================================================================== --- trunk/dbus/dbus-credentials.h 2008-10-23 17:28:41 UTC (rev 793) +++ trunk/dbus/dbus-credentials.h 2008-10-23 17:35:39 UTC (rev 794) @@ -47,6 +47,9 @@ dbus_uid_t uid); dbus_bool_t _dbus_credentials_add_windows_sid (DBusCredentials *credentials, const char *windows_sid); +dbus_bool_t _dbus_credentials_add_adt_audit_data (DBusCredentials *credentials, + void *audit_data, + dbus_int32_t size); dbus_bool_t _dbus_credentials_include (DBusCredentials *credentials, DBusCredentialType type); dbus_pid_t _dbus_credentials_get_unix_pid (DBusCredentials *credentials); Modified: trunk/dbus/dbus-marshal-recursive.c =================================================================== --- trunk/dbus/dbus-marshal-recursive.c 2008-10-23 17:28:41 UTC (rev 793) +++ trunk/dbus/dbus-marshal-recursive.c 2008-10-23 17:35:39 UTC (rev 794) @@ -1654,7 +1654,7 @@ _dbus_type_to_string (expected), _dbus_string_get_const_data (writer->type_str), writer->type_pos); else - _dbus_warn_check_failed ("Writing an element of type %s, but no value is expected here\n", + _dbus_warn_check_failed ("Writing an element of type %s, but no value is expected here\n" "The overall signature expected here was '%s' and we are on byte %d of that signature.\n", _dbus_type_to_string (sub->container_type), _dbus_string_get_const_data (writer->type_str), writer->type_pos); Modified: trunk/dbus/dbus-marshal-validate-util.c =================================================================== --- trunk/dbus/dbus-marshal-validate-util.c 2008-10-23 17:28:41 UTC (rev 793) +++ trunk/dbus/dbus-marshal-validate-util.c 2008-10-23 17:35:39 UTC (rev 794) @@ -228,6 +228,7 @@ "123", ".", "(" + "a{(ii)i}" /* https://bugs.freedesktop.org/show_bug.cgi?id=17803 */ }; /* Signature with reason */ Modified: trunk/dbus/dbus-marshal-validate.c =================================================================== --- trunk/dbus/dbus-marshal-validate.c 2008-10-23 17:28:41 UTC (rev 793) +++ trunk/dbus/dbus-marshal-validate.c 2008-10-23 17:35:39 UTC (rev 794) @@ -247,6 +247,7 @@ } if (last == DBUS_DICT_ENTRY_BEGIN_CHAR && + _dbus_type_is_valid (*p) && !dbus_type_is_basic (*p)) { result = DBUS_INVALID_DICT_KEY_MUST_BE_BASIC_TYPE; Modified: trunk/dbus/dbus-sysdeps-unix.c =================================================================== --- trunk/dbus/dbus-sysdeps-unix.c 2008-10-23 17:28:41 UTC (rev 793) +++ trunk/dbus/dbus-sysdeps-unix.c 2008-10-23 17:35:39 UTC (rev 794) @@ -79,8 +79,8 @@ #define O_BINARY 0 #endif -#ifndef _AI_ADDRCONFIG -#define _AI_ADDRCONFIG 0 +#ifndef AI_ADDRCONFIG +#define AI_ADDRCONFIG 0 #endif #ifndef HAVE_SOCKLEN_T @@ -1493,7 +1493,11 @@ /* retrieve maximum needed size for buf */ buflen = sysconf (_SC_GETPW_R_SIZE_MAX); - if (buflen <= 0) + /* sysconf actually returns a long, but everything else expects size_t, + * so just recast here. + * https://bugs.freedesktop.org/show_bug.cgi?id=17061 + */ + if ((long) buflen <= 0) buflen = 1024; result = -1; @@ -2224,6 +2228,15 @@ total += bytes_written; } + if (fsync(fd)) + { + dbus_set_error (error, _dbus_error_from_errno (errno), + "Could not synchronize file %s: %s", + tmp_filename_c, _dbus_strerror (errno)); + + goto out; + } + if (!_dbus_close (fd, NULL)) { dbus_set_error (error, _dbus_error_from_errno (errno), Modified: trunk/dbus/dbus-sysdeps-util-unix.c =================================================================== --- trunk/dbus/dbus-sysdeps-util-unix.c 2008-10-23 17:28:41 UTC (rev 793) +++ trunk/dbus/dbus-sysdeps-util-unix.c 2008-10-23 17:35:39 UTC (rev 794) @@ -836,7 +836,11 @@ /* retrieve maximum needed size for buf */ buflen = sysconf (_SC_GETGR_R_SIZE_MAX); - if (buflen <= 0) + /* sysconf actually returns a long, but everything else expects size_t, + * so just recast here. + * https://bugs.freedesktop.org/show_bug.cgi?id=17061 + */ + if ((long) buflen <= 0) buflen = 1024; result = -1; Modified: trunk/doc/dbus-faq.html =================================================================== --- trunk/doc/dbus-faq.html 2008-10-23 17:28:41 UTC (rev 793) +++ trunk/doc/dbus-faq.html 2008-10-23 17:35:39 UTC (rev 794) @@ -1,13 +1,13 @@ <html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>D-Bus FAQ</title><meta name="generator" content="DocBook XSL Stylesheets V1.73.2"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="article" lang="en"><div class="titlepage"><div><div><h2 class="title"><a name="index"></a>D-Bus FAQ</h2></div><div><div class="authorgroup"><div class="author"><h3 class="author"><span class="firstname">Havoc</span> <span class="surname">Pennington</span></h3><div class="affiliation"><span class="orgname">Red Hat, Inc.<br></span><div class="address"><p><br> \xA0\xA0\xA0\xA0<code class="email"><<a class="email" href="mailto:hp...@po...">hp...@po...</a>></code><br> - \xA0\xA0</p></div></div></div><div class="author"><h3 class="author"><span class="firstname">David</span> <span class="othername">A</span> <span class="surname">Wheeler</span></h3></div></div></div><div><p class="releaseinfo">Version 0.3</p></div></div><hr></div><div class="qandaset"><dl><dt>1. <a href="#id436782"> + \xA0\xA0</p></div></div></div><div class="author"><h3 class="author"><span class="firstname">David</span> <span class="othername">A</span> <span class="surname">Wheeler</span></h3></div></div></div><div><p class="releaseinfo">Version 0.3</p></div></div><hr></div><div class="qandaset"><dl><dt>1. <a href="#id287706"> What is D-Bus? - </a></dt><dt>2. <a href="#id435805"> + </a></dt><dt>2. <a href="#id286727"> Is D-Bus stable/finished? - </a></dt><dt>3. <a href="#id435831"> + </a></dt><dt>3. <a href="#id286754"> How is the reference implementation licensed? Can I use it in proprietary applications? - </a></dt><dt>4. <a href="#id435864"> + </a></dt><dt>4. <a href="#id290098"> What is the difference between a bus name, and object path, and an interface? </a></dt><dt>5. <a href="#service"> @@ -39,9 +39,9 @@ How does D-Bus differ from [yet more IPC mechanisms]? </a></dt><dt>18. <a href="#which-ipc"> Which IPC mechanism should I use? - </a></dt><dt>19. <a href="#id475506"> + </a></dt><dt>19. <a href="#id326390"> How can I submit a bug or patch? - </a></dt></dl><table border="0" summary="Q and A Set"><col align="left" width="1%"><tbody><tr class="question"><td align="left" valign="top"><a name="id436782"></a><a name="id436784"></a><p><b>1.</b></p></td><td align="left" valign="top"><p> + </a></dt></dl><table border="0" summary="Q and A Set"><col align="left" width="1%"><tbody><tr class="question"><td align="left" valign="top"><a name="id287706"></a><a name="id287708"></a><p><b>1.</b></p></td><td align="left" valign="top"><p> What is D-Bus? </p></td></tr><tr class="answer"><td align="left" valign="top"></td><td align="left" valign="top"><p> This is probably best answered by reading the D-Bus <a class="ulink" href="dbus-tutorial.html" target="_top">tutorial</a> or @@ -52,7 +52,7 @@ Phrased differently, D-Bus is 1) an interprocess communication (IPC) system and 2) some higher-level structure (lifecycle tracking, service activation, security policy) provided by two bus daemons, one systemwide and one per-user-session. - </p></td></tr><tr class="question"><td align="left" valign="top"><a name="id435805"></a><a name="id435807"></a><p><b>2.</b></p></td><td align="left" valign="top"><p> + </p></td></tr><tr class="question"><td align="left" valign="top"><a name="id286727"></a><a name="id286730"></a><p><b>2.</b></p></td><td align="left" valign="top"><p> Is D-Bus stable/finished? </p></td></tr><tr class="answer"><td align="left" valign="top"></td><td align="left" valign="top"><p> The low-level library "libdbus" and the protocol specification are considered @@ -62,7 +62,7 @@ have their own release schedules and degree of maturity, not linked to the low-level library and bus daemon release. Check the project page for the binding you're considering to understand that project's policies. - </p></td></tr><tr class="question"><td align="left" valign="top"><a name="id435831"></a><a name="id435833"></a><p><b>3.</b></p></td><td align="left" valign="top"><p> + </p></td></tr><tr class="question"><td align="left" valign="top"><a name="id286754"></a><a name="id286756"></a><p><b>3.</b></p></td><td align="left" valign="top"><p> How is the reference implementation licensed? Can I use it in proprietary applications? </p></td></tr><tr class="answer"><td align="left" valign="top"></td><td align="left" valign="top"><p> @@ -77,7 +77,7 @@ use D-Bus</em></span>. If you're going to sue, you have to stop using the software. Read the licenses to determine their meaning, this FAQ entry is not intended to change the meaning or terms of the licenses. - </p></td></tr><tr class="question"><td align="left" valign="top"><a name="id435864"></a><a name="id436227"></a><p><b>4.</b></p></td><td align="left" valign="top"><p> + </p></td></tr><tr class="question"><td align="left" valign="top"><a name="id290098"></a><a name="id290101"></a><p><b>4.</b></p></td><td align="left" valign="top"><p> What is the difference between a bus name, and object path, and an interface? </p></td></tr><tr class="answer"><td align="left" valign="top"></td><td align="left" valign="top"><p> @@ -107,7 +107,7 @@ interfaces, such as <code class="literal">org.freedesktop.DBus.Introspectable</code>, <code class="literal">org.freedesktop.BasicTextField</code>, <code class="literal">org.kde.RichTextDocument</code>. - </p></td></tr><tr class="question"><td align="left" valign="top"><a name="service"></a><a name="id435928"></a><p><b>5.</b></p></td><td align="left" valign="top"><p> + </p></td></tr><tr class="question"><td align="left" valign="top"><a name="service"></a><a name="id286858"></a><p><b>5.</b></p></td><td align="left" valign="top"><p> What is a "service"? </p></td></tr><tr class="answer"><td align="left" valign="top"></td><td align="left" valign="top"><p> A service is a program that can be launched by the bus daemon @@ -120,7 +120,7 @@ In the D-Bus docs we try to use "service" only when talking about programs the bus knows how to launch, i.e. a service always has a .service file. - </p></td></tr><tr class="question"><td align="left" valign="top"><a name="components"></a><a name="id435955"></a><p><b>6.</b></p></td><td align="left" valign="top"><p> + </p></td></tr><tr class="question"><td align="left" valign="top"><a name="components"></a><a name="id286885"></a><p><b>6.</b></p></td><td align="left" valign="top"><p> Is D-Bus a "component system"? </p></td></tr><tr class="answer"><td align="left" valign="top"></td><td align="left" valign="top"><p> It helps to keep these concepts separate in your mind: @@ -170,7 +170,7 @@ from component/object systems, though perhaps a "plugin" tends to be a bundle of objects with a user-visible name and can be downloaded/packaged as a unit. - </p></td></tr><tr class="question"><td align="left" valign="top"><a name="speed"></a><a name="id436058"></a><p><b>7.</b></p></td><td align="left" valign="top"><p> + </p></td></tr><tr class="question"><td align="left" valign="top"><a name="speed"></a><a name="id286988"></a><p><b>7.</b></p></td><td align="left" valign="top"><p> How fast is the D-Bus reference implementation? </p></td></tr><tr class="answer"><td align="left" valign="top"></td><td align="left" valign="top"><p> Of course it depends a bit on what you're doing. @@ -198,7 +198,7 @@ enable asynchronous communication and avoid round trips. This is frequently a more important performance issue than throughput. - </p></td></tr><tr class="question"><td align="left" valign="top"><a name="size"></a><a name="id436104"></a><p><b>8.</b></p></td><td align="left" valign="top"><p> + </p></td></tr><tr class="question"><td align="left" valign="top"><a name="size"></a><a name="id287034"></a><p><b>8.</b></p></td><td align="left" valign="top"><p> How large is the D-Bus reference implementation? </p></td></tr><tr class="answer"><td align="left" valign="top"></td><td align="left" valign="top"><p> A production build (with assertions, unit tests, and verbose logging @@ -207,7 +207,7 @@ A much, much smaller implementation would be possible by omitting out of memory handling, hardcoding a main loop (or always using blocking I/O), skipping validation, and otherwise simplifying things. - </p></td></tr><tr class="question"><td align="left" valign="top"><a name="other-ipc"></a><a name="id474820"></a><p><b>9.</b></p></td><td align="left" valign="top"><p> + </p></td></tr><tr class="question"><td align="left" valign="top"><a name="other-ipc"></a><a name="id325703"></a><p><b>9.</b></p></td><td align="left" valign="top"><p> How does D-Bus differ from other interprocess communication or networking protocols? </p></td></tr><tr class="answer"><td align="left" valign="top"></td><td align="left" valign="top"><p> @@ -240,7 +240,7 @@ Note: the D-Bus mailing list subscribers are <span class="emphasis"><em>very much not interested</em></span> in debating which IPC system is the One True System. So if you want to discuss that, please use another forum. - </p></td></tr><tr class="question"><td align="left" valign="top"><a name="corba"></a><a name="id474893"></a><p><b>10.</b></p></td><td align="left" valign="top"><p> + </p></td></tr><tr class="question"><td align="left" valign="top"><a name="corba"></a><a name="id325776"></a><p><b>10.</b></p></td><td align="left" valign="top"><p> How does D-Bus differ from CORBA? </p></td></tr><tr class="answer"><td align="left" valign="top"></td><td align="left" valign="top"><p> Start by reading <a class="xref" href="#other-ipc" title="Question">Q:\xA09</a>. @@ -292,7 +292,7 @@ </p><p> On a more trivial note, D-Bus involves substantially fewer acronyms than CORBA. - </p></td></tr><tr class="question"><td align="left" valign="top"><a name="xmlrpcsoap"></a><a name="id435575"></a><p><b>11.</b></p></td><td align="left" valign="top"><p> + </p></td></tr><tr class="question"><td align="left" valign="top"><a name="xmlrpcsoap"></a><a name="id286250"></a><p><b>11.</b></p></td><td align="left" valign="top"><p> How does D-Bus differ from XML-RPC and SOAP? </p></td></tr><tr class="answer"><td align="left" valign="top"></td><td align="left" valign="top"><p> Start by reading <a class="xref" href="#other-ipc" title="Question">Q:\xA09</a>. @@ -311,7 +311,7 @@ supports lifecycle tracking of other applications connected to the bus. With XML-RPC and SOAP, typically each method call exists in isolation and has its own HTTP connection. - </p></td></tr><tr class="question"><td align="left" valign="top"><a name="dce"></a><a name="id475218"></a><p><b>12.</b></p></td><td align="left" valign="top"><p> + </p></td></tr><tr class="question"><td align="left" valign="top"><a name="dce"></a><a name="id326101"></a><p><b>12.</b></p></td><td align="left" valign="top"><p> How does D-Bus differ from DCE? </p></td></tr><tr class="answer"><td align="left" valign="top"></td><td align="left" valign="top"><p> Start by reading <a class="xref" href="#other-ipc" title="Question">Q:\xA09</a>. @@ -324,7 +324,7 @@ a distributed time service. As the name implies, DCE is intended for use in a large, multi-computer distributed application. D-Bus would not be well-suited for this. - </p></td></tr><tr class="question"><td align="left" valign="top"><a name="dcom"></a><a name="id475258"></a><p><b>13.</b></p></td><td align="left" valign="top"><p> + </p></td></tr><tr class="question"><td align="left" valign="top"><a name="dcom"></a><a name="id326141"></a><p><b>13.</b></p></td><td align="left" valign="top"><p> How does D-Bus differ from DCOM and COM? </p></td></tr><tr class="answer"><td align="left" valign="top"></td><td align="left" valign="top"><p> Start by reading <a class="xref" href="#other-ipc" title="Question">Q:\xA09</a>. @@ -334,7 +334,7 @@ </p><p> DCOM (distributed COM) is a Windows IPC system designed for use with the COM object system. It's similar in some ways to DCE and CORBA. - </p></td></tr><tr class="question"><td align="left" valign="top"><a name="internet-communications-engine"></a><a name="id475293"></a><p><b>14.</b></p></td><td align="left" valign="top"><p> + </p></td></tr><tr class="question"><td align="left" valign="top"><a name="internet-communications-engine"></a><a name="id326177"></a><p><b>14.</b></p></td><td align="left" valign="top"><p> How does D-Bus differ from ZeroC's Internet Communications Engine (Ice) </p></td></tr><tr class="answer"><td align="left" valign="top"></td><td align="left" valign="top"><p> Start by reading <a class="xref" href="#other-ipc" title="Question">Q:\xA09</a>. @@ -344,7 +344,7 @@ on the level of SOAP or CORBA than D-Bus. Ice has a "dual-license" business around it; i.e. you can use it under the GPL, or pay for a proprietary license. - </p></td></tr><tr class="question"><td align="left" valign="top"><a name="inter-client-exchange"></a><a name="id475327"></a><p><b>15.</b></p></td><td align="left" valign="top"><p> + </p></td></tr><tr class="question"><td align="left" valign="top"><a name="inter-client-exchange"></a><a name="id326210"></a><p><b>15.</b></p></td><td align="left" valign="top"><p> How does D-Bus differ from Inter-Client Exchange (ICE)? </p></td></tr><tr class="answer"><td align="left" valign="top"></td><td align="left" valign="top"><p> <a class="ulink" href="http://www.x.org/X11R6.8.1/docs/ICE/ice.pdf" target="_top">ICE</a> @@ -362,7 +362,7 @@ DCOP and XSMP are the only two widely-used applications of ICE, and both could in principle be replaced by D-Bus. (Though whether GNOME and KDE will bother is an open question.) - </p></td></tr><tr class="question"><td align="left" valign="top"><a name="dcop"></a><a name="id475365"></a><p><b>16.</b></p></td><td align="left" valign="top"><p> + </p></td></tr><tr class="question"><td align="left" valign="top"><a name="dcop"></a><a name="id326249"></a><p><b>16.</b></p></td><td align="left" valign="top"><p> How does D-Bus differ from DCOP? </p></td></tr><tr class="answer"><td align="left" valign="top"></td><td align="left" valign="top"><p> Start by reading <a class="xref" href="#other-ipc" title="Question">Q:\xA09</a>. @@ -389,14 +389,14 @@ DCOP's implementation to use D-Bus internally (so that GNOME and KDE would end up using exactly the same bus). See the KDE mailing list archives for some of these discussions. - </p></td></tr><tr class="question"><td align="left" valign="top"><a name="yet-more-ipc"></a><a name="id475424"></a><p><b>17.</b></p></td><td align="left" valign="top"><p> + </p></td></tr><tr class="question"><td align="left" valign="top"><a name="yet-more-ipc"></a><a name="id326307"></a><p><b>17.</b></p></td><td align="left" valign="top"><p> How does D-Bus differ from [yet more IPC mechanisms]? </p></td></tr><tr class="answer"><td align="left" valign="top"></td><td align="left" valign="top"><p> Start by reading <a class="xref" href="#other-ipc" title="Question">Q:\xA09</a>. </p><p> There are countless uses of network sockets in the world. <a class="ulink" href="http://www.mbus.org/" target="_top">MBUS</a>, Sun ONC/RPC, Jabber/XMPP, SIP, are some we can think of quickly. - </p></td></tr><tr class="question"><td align="left" valign="top"><a name="which-ipc"></a><a name="id475456"></a><p><b>18.</b></p></td><td align="left" valign="top"><p> + </p></td></tr><tr class="question"><td align="left" valign="top"><a name="which-ipc"></a><a name="id326340"></a><p><b>18.</b></p></td><td align="left" valign="top"><p> Which IPC mechanism should I use? </p></td></tr><tr class="answer"><td align="left" valign="top"></td><td align="left" valign="top"><p> Start by reading <a class="xref" href="#other-ipc" title="Question">Q:\xA09</a>. @@ -427,7 +427,7 @@ to search the list archives is probably to use an Internet engine such as Google. On Google, include "site:freedesktop.org" in your search. - </p></td></tr><tr class="question"><td align="left" valign="top"><a name="id475506"></a><a name="id475509"></a><p><b>19.</b></p></td><td align="left" valign="top"><p> + </p></td></tr><tr class="question"><td align="left" valign="top"><a name="id326390"></a><a name="id326392"></a><p><b>19.</b></p></td><td align="left" valign="top"><p> How can I submit a bug or patch? </p></td></tr><tr class="answer"><td align="left" valign="top"></td><td align="left" valign="top"><p> The D-Bus <a class="ulink" href="http://dbus.freedesktop.org" target="_top">web site</a> Modified: trunk/doc/dbus-specification.html =================================================================== --- trunk/doc/dbus-specification.html 2008-10-23 17:28:41 UTC (rev 793) +++ trunk/doc/dbus-specification.html 2008-10-23 17:35:39 UTC (rev 794) @@ -4,7 +4,7 @@ \xA0\xA0\xA0\xA0\xA0\xA0\xA0\xA0\xA0\xA0\xA0\xA0<code class="email"><<a class="email" href="mailto:and...@co...">and...@co...</a>></code><br> \xA0\xA0\xA0\xA0\xA0\xA0\xA0\xA0\xA0\xA0</p></div></div></div><div class="author"><h3 class="author"><span class="firstname">Alexander</span> <span class="surname">Larsson</span></h3><div class="affiliation"><span class="orgname">Red Hat, Inc.<br></span><div class="address"><p><br> \xA0\xA0\xA0\xA0\xA0\xA0\xA0\xA0\xA0\xA0\xA0\xA0<code class="email"><<a class="email" href="mailto:al...@re...">al...@re...</a>></code><br> -\xA0\xA0\xA0\xA0\xA0\xA0\xA0\xA0\xA0\xA0</p></div></div></div></div></div><div><p class="releaseinfo">Version 0.12</p></div></div><hr></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><span class="sect1"><a href="#introduction">Introduction</a></span></dt><dd><dl><dt><span class="sect2"><a href="#stability">Protocol and Specification Stability</a></span></dt></dl></dd><dt><span class="sect1"><a href="#message-protocol">Message Protocol</a></span></dt><dd><dl><dt><span class="sect2"><a href="#message-protocol-signatures">Type Signatures</a></span></dt><dt><span class="sect2"><a href="#message-protocol-marshaling">Marshaling (Wire Format)</a></span></dt><dt><span class="sect2"><a href="#message-protocol-messages">Message Format</a></span></dt><dt><span class="sect2"><a href="#message-protocol-names">Valid Names</a></span></dt><dt><span class="sect2"><a href="#message-protocol-types">Message Types</a></span></dt><dt><span class="sect2"><a href="#message-protocol-handling-invalid">Invalid Protocol and Spec Extensions</a></span></dt></dl></dd><dt><span class="sect1"><a href="#auth-protocol">Authentication Protocol</a></span></dt><dd><dl><dt><span class="sect2"><a href="#auth-protocol-overview">Protocol Overview</a></span></dt><dt><span class="sect2"><a href="#auth-nul-byte">Special credentials-passing nul byte</a></span></dt><dt><span class="sect2"><a href="#auth-command-auth">AUTH command</a></span></dt><dt><span class="sect2"><a href="#auth-command-cancel">CANCEL Command</a></span></dt><dt><span class="sect2"><a href="#auth-command-data">DATA Command</a></span></dt><dt><span class="sect2"><a href="#auth-command-begin">BEGIN Command</a></span></dt><dt><span class="sect2"><a href="#auth-command-rejected">REJECTED Command</a></span></dt><dt><span class="sect2"><a href="#auth-command-ok">OK Command</a></span></dt><dt><span class="sect2"><a href="#auth-command-error">ERROR Command</a></span></dt><dt><span class="sect2"><a href="#auth-examples">Authentication examples</a></span></dt><dt><span class="sect2"><a href="#auth-states">Authentication state diagrams</a></span></dt><dt><span class="sect2"><a href="#auth-mechanisms">Authentication mechanisms</a></span></dt></dl></dd><dt><span class="sect1"><a href="#addresses">Server Addresses</a></span></dt><dt><span class="sect1"><a href="#transports">Transports</a></span></dt><dd><dl><dt><span class="sect2"><a href="#transports-unix-domain-sockets">Unix Domain Sockets</a></span></dt></dl></dd><dt><span class="sect1"><a href="#naming-conventions">Naming Conventions</a></span></dt><dt><span class="sect1"><a href="#uuids">UUIDs</a></span></dt><dt><span class="sect1"><a href="#standard-interfaces">Standard Interfaces</a></span></dt><dd><dl><dt><span class="sect2"><a href="#standard-interfaces-peer"><code class="literal">org.freedesktop.DBus.Peer</code></a></span></dt><dt><span class="sect2"><a href="#standard-interfaces-introspectable"><code class="literal">org.freedesktop.DBus.Introspectable</code></a></span></dt><dt><span class="sect2"><a href="#standard-interfaces-properties"><code class="literal">org.freedesktop.DBus.Properties</code></a></span></dt></dl></dd><dt><span class="sect1"><a href="#introspection-format">Introspection Data Format</a></span></dt><dt><span class="sect1"><a href="#message-bus">Message Bus Specification</a></span></dt><dd><dl><dt><span class="sect2"><a href="#message-bus-overview">Message Bus Overview</a></span></dt><dt><span class="sect2"><a href="#message-bus-names">Message Bus Names</a></span></dt><dt><span class="sect2"><a href="#message-bus-routing">Message Bus Message Routing</a></span></dt><dt><span class="sect2"><a href="#message-bus-starting-services">Message Bus Starting Services</a></span></dt><dt><span class="sect2"><a href="#message-bus-types">Well-known Message Bus Instances</a></span></dt><dt><span class="sect2"><a href="#message-bus-messages">Message Bus Messages</a></span></dt></dl></dd><dt><span class="glossary"><a href="#id330172">Glossary</a></span></dt></dl></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="introduction"></a>Introduction</h2></div></div></div><p> +\xA0\xA0\xA0\xA0\xA0\xA0\xA0\xA0\xA0\xA0</p></div></div></div></div></div><div><p class="releaseinfo">Version 0.12</p></div></div><hr></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><span class="sect1"><a href="#introduction">Introduction</a></span></dt><dd><dl><dt><span class="sect2"><a href="#stability">Protocol and Specification Stability</a></span></dt></dl></dd><dt><span class="sect1"><a href="#message-protocol">Message Protocol</a></span></dt><dd><dl><dt><span class="sect2"><a href="#message-protocol-signatures">Type Signatures</a></span></dt><dt><span class="sect2"><a href="#message-protocol-marshaling">Marshaling (Wire Format)</a></span></dt><dt><span class="sect2"><a href="#message-protocol-messages">Message Format</a></span></dt><dt><span class="sect2"><a href="#message-protocol-names">Valid Names</a></span></dt><dt><span class="sect2"><a href="#message-protocol-types">Message Types</a></span></dt><dt><span class="sect2"><a href="#message-protocol-handling-invalid">Invalid Protocol and Spec Extensions</a></span></dt></dl></dd><dt><span class="sect1"><a href="#auth-protocol">Authentication Protocol</a></span></dt><dd><dl><dt><span class="sect2"><a href="#auth-protocol-overview">Protocol Overview</a></span></dt><dt><span class="sect2"><a href="#auth-nul-byte">Special credentials-passing nul byte</a></span></dt><dt><span class="sect2"><a href="#auth-command-auth">AUTH command</a></span></dt><dt><span class="sect2"><a href="#auth-command-cancel">CANCEL Command</a></span></dt><dt><span class="sect2"><a href="#auth-command-data">DATA Command</a></span></dt><dt><span class="sect2"><a href="#auth-command-begin">BEGIN Command</a></span></dt><dt><span class="sect2"><a href="#auth-command-rejected">REJECTED Command</a></span></dt><dt><span class="sect2"><a href="#auth-command-ok">OK Command</a></span></dt><dt><span class="sect2"><a href="#auth-command-error">ERROR Command</a></span></dt><dt><span class="sect2"><a href="#auth-examples">Authentication examples</a></span></dt><dt><span class="sect2"><a href="#auth-states">Authentication state diagrams</a></span></dt><dt><span class="sect2"><a href="#auth-mechanisms">Authentication mechanisms</a></span></dt></dl></dd><dt><span class="sect1"><a href="#addresses">Server Addresses</a></span></dt><dt><span class="sect1"><a href="#transports">Transports</a></span></dt><dd><dl><dt><span class="sect2"><a href="#transports-unix-domain-sockets">Unix Domain Sockets</a></span></dt></dl></dd><dt><span class="sect1"><a href="#naming-conventions">Naming Conventions</a></span></dt><dt><span class="sect1"><a href="#uuids">UUIDs</a></span></dt><dt><span class="sect1"><a href="#standard-interfaces">Standard Interfaces</a></span></dt><dd><dl><dt><span class="sect2"><a href="#standard-interfaces-peer"><code class="literal">org.freedesktop.DBus.Peer</code></a></span></dt><dt><span class="sect2"><a href="#standard-interfaces-introspectable"><code class="literal">org.freedesktop.DBus.Introspectable</code></a></span></dt><dt><span class="sect2"><a href="#standard-interfaces-properties"><code class="literal">org.freedesktop.DBus.Properties</code></a></span></dt></dl></dd><dt><span class="sect1"><a href="#introspection-format">Introspection Data Format</a></span></dt><dt><span class="sect1"><a href="#message-bus">Message Bus Specification</a></span></dt><dd><dl><dt><span class="sect2"><a href="#message-bus-overview">Message Bus Overview</a></span></dt><dt><span class="sect2"><a href="#message-bus-names">Message Bus Names</a></span></dt><dt><span class="sect2"><a href="#message-bus-routing">Message Bus Message Routing</a></span></dt><dt><span class="sect2"><a href="#message-bus-starting-services">Message Bus Starting Services</a></span></dt><dt><span class="sect2"><a href="#message-bus-types">Well-known Message Bus Instances</a></span></dt><dt><span class="sect2"><a href="#message-bus-messages">Message Bus Messages</a></span></dt></dl></dd><dt><span class="glossary"><a href="#id342801">Glossary</a></span></dt></dl></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="introduction"></a>Introduction</h2></div></div></div><p> D-Bus is a system for low-latency, low-overhead, easy to use interprocess communication (IPC). In more detail: </p><div class="itemizedlist"><ul type="disc"><li><p> @@ -840,14 +840,14 @@ ERROR feature of the auth protocol is an escape hatch that lets us negotiate extensions or changes to the D-Bus protocol in the future. </p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="auth-examples"></a>Authentication examples</h3></div></div></div><p> - </p><div class="figure"><a name="id325985"></a><p class="title"><b>Figure\xA01.\xA0Example of successful magic cookie authentication</b></p><div class="figure-contents"><pre class="programlisting"> + </p><div class="figure"><a name="id338615"></a><p class="title"><b>Figure\xA01.\xA0Example of successful magic cookie authentication</b></p><div class="figure-contents"><pre class="programlisting"> (MAGIC_COOKIE is a made up mechanism) C: AUTH MAGIC_COOKIE 3138363935333137393635383634 S: OK 1234deadbeef C: BEGIN </pre></div></div><p><br class="figure-break"> - </p><div class="figure"><a name="id326000"></a><p class="title"><b>Figure\xA02.\xA0Example of finding out mechanisms then picking one</b></p><div class="figure-contents"><pre class="programlisting"> + </p><div class="figure"><a name="id338630"></a><p class="title"><b>Figure\xA02.\xA0Example of finding out mechanisms then picking one</b></p><div class="figure-contents"><pre class="programlisting"> C: AUTH S: REJECTED KERBEROS_V4 SKEY C: AUTH SKEY 7ab83f32ee @@ -856,14 +856,14 @@ S: OK 1234deadbeef C: BEGIN </pre></div></div><p><br class="figure-break"> - </p><div class="figure"><a name="id326016"></a><p class="title"><b>Figure\xA03.\xA0Example of client sends unknown command then falls back to regular auth</b></p><div class="figure-contents"><pre class="programlisting"> + </p><div class="figure"><a name="id338646"></a><p class="title"><b>Figure\xA03.\xA0Example of client sends unknown command then falls back to regular auth</b></p><div class="figure-contents"><pre class="programlisting"> C: FOOBAR S: ERROR C: AUTH MAGIC_COOKIE 3736343435313230333039 S: OK 1234deadbeef C: BEGIN </pre></div></div><p><br class="figure-break"> - </p><div class="figure"><a name="id326032"></a><p class="title"><b>Figure\xA04.\xA0Example of server doesn't support initial auth mechanism</b></p><div class="figure-contents"><pre class="programlisting"> + </p><div class="figure"><a name="id338661"></a><p class="title"><b>Figure\xA04.\xA0Example of server doesn't support initial auth mechanism</b></p><div class="figure-contents"><pre class="programlisting"> C: AUTH MAGIC_COOKIE 3736343435313230333039 S: REJECTED KERBEROS_V4 SKEY C: AUTH SKEY 7ab83f32ee @@ -872,7 +872,7 @@ S: OK 1234deadbeef C: BEGIN </pre></div></div><p><br class="figure-break"> - </p><div class="figure"><a name="id326049"></a><p class="title"><b>Figure\xA05.\xA0Example of wrong password or the like followed by successful retry</b></p><div class="figure-contents"><pre class="programlisting"> + </p><div class="figure"><a name="id338678"></a><p class="title"><b>Figure\xA05.\xA0Example of wrong password or the like followed by successful retry</b></p><div class="figure-contents"><pre class="programlisting"> C: AUTH MAGIC_COOKIE 3736343435313230333039 S: REJECTED KERBEROS_V4 SKEY C: AUTH SKEY 7ab83f32ee @@ -885,7 +885,7 @@ S: OK 1234deadbeef C: BEGIN </pre></div></div><p><br class="figure-break"> - </p><div class="figure"><a name="id326067"></a><p class="title"><b>Figure\xA06.\xA0Example of skey cancelled and restarted</b></p><div class="figure-contents"><pre class="programlisting"> + </p><div class="figure"><a name="id338696"></a><p class="title"><b>Figure\xA06.\xA0Example of skey cancelled and restarted</b></p><div class="figure-contents"><pre class="programlisting"> C: AUTH MAGIC_COOKIE 3736343435313230333039 S: REJECTED KERBEROS_V4 SKEY C: AUTH SKEY 7ab83f32ee @@ -1163,7 +1163,7 @@ fails, the lock fails. Servers should retry for a reasonable period of time, then they may choose to delete an existing lock to keep users from having to manually delete a stale - lock. <sup>[<a name="id283976" href="#ftn.id283976" class="footnote">1</a>]</sup> + lock. <sup>[<a name="id296370" href="#ftn.id296370" class="footnote">1</a>]</sup> </p></li><li><p> Once the lockfile has been created, the server loads the cookie file. It should then delete any cookies that are old (the @@ -1743,7 +1743,7 @@ must be namespaced using the same mechanism as messages and service names. - </p><div class="figure"><a name="id328572"></a><p class="title"><b>Figure\xA07.\xA0Example service description file</b></p><div class="figure-contents"><pre class="programlisting"> + </p><div class="figure"><a name="id341201"></a><p class="title"><b>Figure\xA07.\xA0Example service description file</b></p><div class="figure-contents"><pre class="programlisting"> # Sample service description file [D-BUS Service] Names=org.freedesktop.ConfigurationDatabase;org.gnome.GConf; @@ -1826,7 +1826,7 @@ variable. If that variable is not set, applications should try to connect to the well-known address <code class="literal">unix:path=/var/run/dbus/system_bus_socket</code>. - <sup>[<a name="id328916" href="#ftn.id328916" class="footnote">2</a>]</sup> + <sup>[<a name="id341546" href="#ftn.id341546" class="footnote">2</a>]</sup> </p><p> [FIXME specify location of system bus .service files] </p></div></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="message-bus-messages"></a>Message Bus Messages</h3></div></div></div><p> @@ -1993,7 +1993,7 @@ There is also a per-machine ID, described in <a class="xref" href="#standard-interfaces-peer" title="org.freedesktop.DBus.Peer">the section called “<code class="literal">org.freedesktop.DBus.Peer</code>”</a> and returned by org.freedesktop.DBus.Peer.GetMachineId(). For a desktop session bus, the bus ID can be used as a way to uniquely identify a user's session. - </p></div></div></div><div class="glossary"><div class="titlepage"><div><div><h2 class="title"><a name="id330172"></a>Glossary</h2></div></div></div><p> + </p></div></div></div><div class="glossary"><div class="titlepage"><div><div><h2 class="title"><a name="id342801"></a>Glossary</h2></div></div></div><p> This glossary defines some of the terms used in this specification. </p><dl><dt><a name="term-bus-name"></a>Bus Name</dt><dd><p> The message bus maintains an association between names and @@ -2067,10 +2067,10 @@ message bus. This name will never change owner, and will be unique (never reused during the lifetime of the message bus). It will begin with a ':' character. - </p></dd></dl></div><div class="footnotes"><br><hr width="100" align="left"><div class="footnote"><p><sup>[<a name="ftn.id283976" href="#id283976" class="para">1</a>] </sup>Lockfiles are used instead of real file + </p></dd></dl></div><div class="footnotes"><br><hr width="100" align="left"><div class="footnote"><p><sup>[<a name="ftn.id296370" href="#id296370" class="para">1</a>] </sup>Lockfiles are used instead of real file locking <code class="literal">fcntl()</code> because real locking implementations are still flaky on network - filesystems.</p></div><div class="footnote"><p><sup>[<a name="ftn.id328916" href="#id328916" class="para">2</a>] </sup> + filesystems.</p></div><div class="footnote"><p><sup>[<a name="ftn.id341546" href="#id341546" class="para">2</a>] </sup> The D-Bus reference implementation actually honors the <code class="literal">$(localstatedir)</code> configure option for this address, on both client and server side. Modified: trunk/doc/dbus-test-plan.html =================================================================== --- trunk/doc/dbus-test-plan.html 2008-10-23 17:28:41 UTC (rev 793) +++ trunk/doc/dbus-test-plan.html 2008-10-23 17:35:39 UTC (rev 794) @@ -38,7 +38,7 @@ Message Builder. The message builder can take a serialized message in string-form and convert it into a raw character string which can then be loaded by the message loader. - </p><div class="figure"><a name="id456836"></a><p class="title"><b>Figure\xA01.\xA0Example of a message in string form</b></p><div class="figure-contents"><pre class="programlisting"> + </p><div class="figure"><a name="id356952"></a><p class="title"><b>Figure\xA01.\xA0Example of a message in string form</b></p><div class="figure-contents"><pre class="programlisting"> # Standard org.freedesktop.DBus.Hello message VALID_HEADER @@ -75,7 +75,7 @@ can read authentication sequences from a file and play them back to a dummy server and client to make sure that authentication is working according to the specification. - </p><div class="figure"><a name="id457252"></a><p class="title"><b>Figure\xA02.\xA0Example of an authentication script</b></p><div class="figure-contents"><pre class="programlisting"> + </p><div class="figure"><a name="id360333"></a><p class="title"><b>Figure\xA02.\xA0Example of an authentication script</b></p><div class="figure-contents"><pre class="programlisting"> ## this tests a successful auth of type EXTERNAL SERVER Modified: trunk/test/data/invalid-service-files-system/org.freedesktop.DBus.TestSuiteNoService.service =================================================================== --- trunk/test/data/invalid-service-files-system/org.freedesktop.DBus.TestSuiteNoService.service 2008-10-23 17:28:41 UTC (rev 793) +++ trunk/test/data/invalid-service-files-system/org.freedesktop.DBus.TestSuiteNoService.service 2008-10-23 17:35:39 UTC (rev 794) @@ -1,4 +1,4 @@ [D-BUS Service] -Exec=/src/jhbuild/checkout/dbus.whatever/test/test-service +Exec=/src/jhbuild/checkout/dbus/test/test-service User=anyrandomuser Modified: trunk/test/data/invalid-service-files-system/org.freedesktop.DBus.TestSuiteNoUser.service =================================================================== --- trunk/test/data/invalid-service-files-system/org.freedesktop.DBus.TestSuiteNoUser.service 2008-10-23 17:28:41 UTC (rev 793) +++ trunk/test/data/invalid-service-files-system/org.freedesktop.DBus.TestSuiteNoUser.service 2008-10-23 17:35:39 UTC (rev 794) @@ -1,4 +1,4 @@ [D-BUS Service] Name=org.freedesktop.DBus.TestSuiteNoUser -Exec=/src/jhbuild/checkout/dbus.whatever/test/test-service +Exec=/src/jhbuild/checkout/dbus/test/test-service Modified: trunk/test/data/valid-config-files/debug-allow-all-sha1.conf =================================================================== --- trunk/test/data/valid-config-files/debug-allow-all-sha1.conf 2008-10-23 17:28:41 UTC (rev 793) +++ trunk/test/data/valid-config-files/debug-allow-all-sha1.conf 2008-10-23 17:35:39 UTC (rev 794) @@ -5,7 +5,7 @@ <busconfig> <listen>debug-pipe:name=test-server</listen> <listen>unix:tmpdir=/tmp</listen> - <servicedir>/src/jhbuild/checkout/dbus.whatever/test/data/valid-service-files</servicedir> + <servicedir>/src/jhbuild/checkout/dbus/test/data/valid-service-files</servicedir> <auth>DBUS_COOKIE_SHA1</auth> <policy context="default"> <allow send_interface="*"/> Modified: trunk/test/data/valid-config-files/debug-allow-all.conf =================================================================== --- trunk/test/data/valid-config-files/debug-allow-all.conf 2008-10-23 17:28:41 UTC (rev 793) +++ trunk/test/data/valid-config-files/debug-allow-all.conf 2008-10-23 17:35:39 UTC (rev 794) @@ -5,7 +5,7 @@ <busconfig> <listen>debug-pipe:name=test-server</listen> <listen>unix:tmpdir=/tmp</listen> - <servicedir>/src/jhbuild/checkout/dbus.whatever/test/data/valid-service-files</servicedir> + <servicedir>/src/jhbuild/checkout/dbus/test/data/valid-service-files</servicedir> <policy context="default"> <allow send_interface="*"/> <allow receive_interface="*"/> Modified: trunk/test/data/valid-config-files-system/debug-allow-all-fail.conf =================================================================== --- trunk/test/data/valid-config-files-system/debug-allow-all-fail.conf 2008-10-23 17:28:41 UTC (rev 793) +++ trunk/test/data/valid-config-files-system/debug-allow-all-fail.conf 2008-10-23 17:35:39 UTC (rev 794) @@ -6,8 +6,8 @@ <listen>debug-pipe:name=test-server</listen> <listen>unix:tmpdir=/tmp</listen> <type>system</type> - <servicehelper>/src/jhbuild/checkout/dbus.whatever/bus/dbus-daemon-launch-helper-test</servicehelper> - <servicedir>/src/jhbuild/checkout/dbus.whatever/test/data/invalid-service-files-system</servicedir> + <servicehelper>/src/jhbuild/checkout/dbus/bus/dbus-daemon-launch-helper-test</servicehelper> + <servicedir>/src/jhbuild/checkout/dbus/test/data/invalid-service-files-system</servicedir> <policy context="default"> <allow send_interface="*"/> <allow receive_interface="*"/> Modified: trunk/test/data/valid-config-files-system/debug-allow-all-pass.conf =================================================================== --- trunk/test/data/valid-config-files-system/debug-allow-all-pass.conf 2008-10-23 17:28:41 UTC (rev 793) +++ trunk/test/data/valid-config-files-system/debug-allow-all-pass.conf 2008-10-23 17:35:39 UTC (rev 794) @@ -6,8 +6,8 @@ <listen>debug-pipe:name=test-server</listen> <listen>unix:tmpdir=/tmp</listen> <type>system</type> - <servicehelper>/src/jhbuild/checkout/dbus.whatever/bus/dbus-daemon-launch-helper-test</servicehelper> - <servicedir>/src/jhbuild/checkout/dbus.whatever/test/data/valid-service-files-system</servicedir> + <servicehelper>/src/jhbuild/checkout/dbus/bus/dbus-daemon-launch-helper-test</servicehelper> + <servicedir>/src/jhbuild/checkout/dbus/test/data/valid-service-files-system</servicedir> <policy context="default"> <allow send_interface="*"/> <allow receive_interface="*"/> Modified: trunk/test/data/valid-service-files/org.freedesktop.DBus.TestSuite.PrivServer.service =================================================================== --- trunk/test/data/valid-service-files/org.freedesktop.DBus.TestSuite.PrivServer.service 2008-10-23 17:28:41 UTC (rev 793) +++ trunk/test/data/valid-service-files/org.freedesktop.DBus.TestSuite.PrivServer.service 2008-10-23 17:35:39 UTC (rev 794) @@ -1,4 +1,4 @@ [D-BUS Service] Name=org.freedesktop.DBus.TestSuite.PrivServer -Exec=/src/jhbuild/checkout/dbus.whatever/test/name-test/test-privserver +Exec=/src/jhbuild/checkout/dbus/test/name-test/test-privserver Modified: trunk/test/data/valid-service-files/org.freedesktop.DBus.TestSuiteEchoService.service =================================================================== --- trunk/test/data/valid-service-files/org.freedesktop.DBus.TestSuiteEchoService.service 2008-10-23 17:28:41 UTC (rev 793) +++ trunk/test/data/valid-service-files/org.freedesktop.DBus.TestSuiteEchoService.service 2008-10-23 17:35:39 UTC (rev 794) @@ -1,4 +1,4 @@ [D-BUS Service] Name=org.freedesktop.DBus.TestSuiteEchoService -Exec=/src/jhbuild/checkout/dbus.whatever/test/test-service +Exec=/src/jhbuild/checkout/dbus/test/test-service Modified: trunk/test/data/valid-service-files/org.freedesktop.DBus.TestSuiteSegfaultService.service =================================================================== --- trunk/test/data/valid-service-files/org.freedesktop.DBus.TestSuiteSegfaultService.service 2008-10-23 17:28:41 UTC (rev 793) +++ trunk/test/data/valid-service-files/org.freedesktop.DBus.TestSuiteSegfaultService.service 2008-10-23 17:35:39 UTC (rev 794) @@ -1,4 +1,4 @@ [D-BUS Service] Name=org.freedesktop.DBus.TestSuiteSegfaultService -Exec=/src/jhbuild/checkout/dbus.whatever/test/test-segfault +Exec=/src/jhbuild/checkout/dbus/test/test-segfault Modified: trunk/test/data/valid-service-files/org.freedesktop.DBus.TestSuiteShellEchoServiceFail.service =================================================================== --- trunk/test/data/valid-service-files/org.freedesktop.DBus.TestSuiteShellEchoServiceFail.service 2008-10-23 17:28:41 UTC (rev 793) +++ trunk/test/data/valid-service-files/org.freedesktop.DBus.TestSuiteShellEchoServiceFail.service 2008-10-23 17:35:39 UTC (rev 794) @@ -1,4 +1,4 @@ [D-BUS Service] Name=org.freedesktop.DBus.TestSuiteShellEchoServiceFail -Exec=/src/jhbuild/checkout/dbus.whatever/test/test-shell-service "this should 'fail' because of an unterminated quote +Exec=/src/jhbuild/checkout/dbus/test/test-shell-service "this should 'fail' because of an unterminated quote Modified: trunk/test/data/valid-service-files/org.freedesktop.DBus.TestSuiteShellEchoServiceSuccess.service =================================================================== --- trunk/test/data/valid-service-files/org.freedesktop.DBus.TestSuiteShellEchoServiceSuccess.service 2008-10-23 17:28:41 UTC (rev 793) +++ trunk/test/data/valid-service-files/org.freedesktop.DBus.TestSuiteShellEchoServiceSuccess.service 2008-10-23 17:35:39 UTC (rev 794) @@ -1,4 +1,4 @@ [D-BUS Service] Name=org.freedesktop.DBus.TestSuiteShellEchoServiceSuccess -Exec=/src/jhbuild/checkout/dbus.whatever/test/test-shell-service -test "that" 'we get' back --what "we put in" +Exec=/src/jhbuild/checkout/dbus/test/test-shell-service -test "that" 'we get' back --what "we put in" Modified: trunk/test/data/valid-service-files-system/org.freedesktop.DBus.TestSuiteEchoService.service =================================================================== --- trunk/test/data/valid-service-files-system/org.freedesktop.DBus.TestSuiteEchoService.service 2008-10-23 17:28:41 UTC (rev 793) +++ trunk/test/data/valid-service-files-system/org.freedesktop.DBus.TestSuiteEchoService.service 2008-10-23 17:35:39 UTC (rev 794) @@ -1,5 +1,5 @@ [D-BUS Service] Name=org.freedesktop.DBus.TestSuiteEchoService -Exec=/src/jhbuild/checkout/dbus.whatever/test/test-service +Exec=/src/jhbuild/checkout/dbus/test/test-service User=anyrandomuser Modified: trunk/test/data/valid-service-files-system/org.freedesktop.DBus.TestSuiteSegfaultService.service =================================================================== --- trunk/test/data/valid-service-files-system/org.freedesktop.DBus.TestSuiteSegfaultService.service 2008-10-23 17:28:41 UTC (rev 793) +++ trunk/test/data/valid-service-files-system/org.freedesktop.DBus.TestSuiteSegfaultService.service 2008-10-23 17:35:39 UTC (rev 794) @@ -1,5 +1,5 @@ [D-BUS Service] Name=org.freedesktop.DBus.TestSuiteSegfaultService -Exec=/src/jhbuild/checkout/dbus.whatever/test/test-segfault +Exec=/src/jhbuild/checkout/dbus/test/test-segfault User=anyrandomuser Modified: trunk/test/data/valid-service-files-system/org.freedesktop.DBus.TestSuiteShellEchoServiceFail.service =================================================================== --- trunk/test/data/valid-service-files-system/org.freedesktop.DBus.TestSuiteShellEchoServiceFail.service 2008-10-23 17:28:41 UTC (rev 793) +++ trunk/test/data/valid-service-files-system/org.freedesktop.DBus.TestSuiteShellEchoServiceFail.service 2008-10-23 17:35:39 UTC (rev 794) @@ -1,5 +1,5 @@ [D-BUS Service] Name=org.freedesktop.DBus.TestSuiteShellEchoServiceFail -Exec=/src/jhbuild/checkout/dbus.whatever/test/test-shell-service "this should 'fail' because of an unterminated quote +Exec=/src/jhbuild/checkout/dbus/test/test-shell-service "this should 'fail' because of an unterminated quote User=anyrandomuser Modified: trunk/test/data/valid-service-files-system/org.freedesktop.DBus.TestSuiteShellEchoServiceSuccess.service =================================================================== --- trunk/test/data/valid-service-files-system/org.freedesktop.DBus.TestSuiteShellEchoServiceSuccess.service 2008-10-23 17:28:41 UTC (rev 793) +++ trunk/test/data/valid-service-files-system/org.freedesktop.DBus.TestSuiteShellEchoServiceSuccess.service 2008-10-23 17:35:39 UTC (rev 794) @@ -1,5 +1,5 @@ [D-BUS Service] Name=org.freedesktop.DBus.TestSuiteShellEchoServiceSuccess -Exec=/src/jhbuild/checkout/dbus.whatever/test/test-shell-service -test "that" 'we get' back --what "we put in" +Exec=/src/jhbuild/checkout/dbus/test/test-shell-service -test "that" 'we get' back --what "we put in" User=anyrandomuser This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <che...@us...> - 2008-10-23 17:28:54
|
Revision: 793 http://windbus.svn.sourceforge.net/windbus/?rev=793&view=rev Author: chehrlic Date: 2008-10-23 17:28:41 +0000 (Thu, 23 Oct 2008) Log Message: ----------- update to 1.2.4 Modified Paths: -------------- branches/import/configure branches/import/configure.in branches/import/dbus/dbus-arch-deps.h branches/import/dbus/dbus-credentials.h branches/import/dbus/dbus-marshal-recursive.c branches/import/dbus/dbus-marshal-validate-util.c branches/import/dbus/dbus-marshal-validate.c branches/import/dbus/dbus-sysdeps-unix.c branches/import/dbus/dbus-sysdeps-util-unix.c branches/import/doc/dbus-faq.html branches/import/doc/dbus-specification.html branches/import/doc/dbus-test-plan.html branches/import/test/data/invalid-service-files-system/org.freedesktop.DBus.TestSuiteNoService.service branches/import/test/data/invalid-service-files-system/org.freedesktop.DBus.TestSuiteNoUser.service branches/import/test/data/valid-config-files/debug-allow-all-sha1.conf branches/import/test/data/valid-config-files/debug-allow-all.conf branches/import/test/data/valid-config-files-system/debug-allow-all-fail.conf branches/import/test/data/valid-config-files-system/debug-allow-all-pass.conf branches/import/test/data/valid-service-files/org.freedesktop.DBus.TestSuite.PrivServer.service branches/import/test/data/valid-service-files/org.freedesktop.DBus.TestSuiteEchoService.service branches/import/test/data/valid-service-files/org.freedesktop.DBus.TestSuiteSegfaultService.service branches/import/test/data/valid-service-files/org.freedesktop.DBus.TestSuiteShellEchoServiceFail.service branches/import/test/data/valid-service-files/org.freedesktop.DBus.TestSuiteShellEchoServiceSuccess.service branches/import/test/data/valid-service-files-system/org.freedesktop.DBus.TestSuiteEchoService.service branches/import/test/data/valid-service-files-system/org.freedesktop.DBus.TestSuiteSegfaultService.service branches/import/test/data/valid-service-files-system/org.freedesktop.DBus.TestSuiteShellEchoServiceFail.service branches/import/test/data/valid-service-files-system/org.freedesktop.DBus.TestSuiteShellEchoServiceSuccess.service Modified: branches/import/configure =================================================================== --- branches/import/configure 2008-08-29 14:48:54 UTC (rev 792) +++ branches/import/configure 2008-10-23 17:28:41 UTC (rev 793) @@ -1,6 +1,6 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.61 for dbus 1.2.3. +# Generated by GNU Autoconf 2.61 for dbus 1.2.4. # # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. @@ -726,8 +726,8 @@ # Identity of this package. PACKAGE_NAME='dbus' PACKAGE_TARNAME='dbus' -PACKAGE_VERSION='1.2.3' -PACKAGE_STRING='dbus 1.2.3' +PACKAGE_VERSION='1.2.4' +PACKAGE_STRING='dbus 1.2.4' PACKAGE_BUGREPORT='' # Factoring default headers for most tests. @@ -1496,7 +1496,7 @@ # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF -\`configure' configures dbus 1.2.3 to adapt to many kinds of systems. +\`configure' configures dbus 1.2.4 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1571,7 +1571,7 @@ if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of dbus 1.2.3:";; + short | recursive ) echo "Configuration of dbus 1.2.4:";; esac cat <<\_ACEOF @@ -1714,7 +1714,7 @@ test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -dbus configure 1.2.3 +dbus configure 1.2.4 generated by GNU Autoconf 2.61 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, @@ -1728,7 +1728,7 @@ This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. -It was created by dbus $as_me 1.2.3, which was +It was created by dbus $as_me 1.2.4, which was generated by GNU Autoconf 2.61. Invocation command line was $ $0 $@ @@ -2546,7 +2546,7 @@ # Define the identity of the package. PACKAGE='dbus' - VERSION='1.2.3' + VERSION='1.2.4' cat >>confdefs.h <<_ACEOF @@ -2834,8 +2834,8 @@ DBUS_MAJOR_VERSION=1 DBUS_MINOR_VERSION=2 -DBUS_MICRO_VERSION=3 -DBUS_VERSION=1.2.3 +DBUS_MICRO_VERSION=4 +DBUS_VERSION=1.2.4 @@ -30351,7 +30351,7 @@ # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" -This file was extended by dbus $as_me 1.2.3, which was +This file was extended by dbus $as_me 1.2.4, which was generated by GNU Autoconf 2.61. Invocation command line was CONFIG_FILES = $CONFIG_FILES @@ -30404,7 +30404,7 @@ _ACEOF cat >>$CONFIG_STATUS <<_ACEOF ac_cs_version="\\ -dbus config.status 1.2.3 +dbus config.status 1.2.4 configured by $0, generated by GNU Autoconf 2.61, with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" Modified: branches/import/configure.in =================================================================== --- branches/import/configure.in 2008-08-29 14:48:54 UTC (rev 792) +++ branches/import/configure.in 2008-10-23 17:28:41 UTC (rev 793) @@ -3,7 +3,7 @@ m4_define([dbus_major_version], [1]) m4_define([dbus_minor_version], [2]) -m4_define([dbus_micro_version], [3]) +m4_define([dbus_micro_version], [4]) m4_define([dbus_version], [dbus_major_version.dbus_minor_version.dbus_micro_version]) AC_INIT(dbus, [dbus_version]) Modified: branches/import/dbus/dbus-arch-deps.h =================================================================== --- branches/import/dbus/dbus-arch-deps.h 2008-08-29 14:48:54 UTC (rev 792) +++ branches/import/dbus/dbus-arch-deps.h 2008-10-23 17:28:41 UTC (rev 793) @@ -56,11 +56,11 @@ */ #define DBUS_MAJOR_VERSION 1 #define DBUS_MINOR_VERSION 2 -#define DBUS_MICRO_VERSION 3 +#define DBUS_MICRO_VERSION 4 -#define DBUS_VERSION_STRING "1.2.3" +#define DBUS_VERSION_STRING "1.2.4" -#define DBUS_VERSION ((1 << 16) | (2 << 8) | (3)) +#define DBUS_VERSION ((1 << 16) | (2 << 8) | (4)) DBUS_END_DECLS Modified: branches/import/dbus/dbus-credentials.h =================================================================== --- branches/import/dbus/dbus-credentials.h 2008-08-29 14:48:54 UTC (rev 792) +++ branches/import/dbus/dbus-credentials.h 2008-10-23 17:28:41 UTC (rev 793) @@ -47,6 +47,9 @@ dbus_uid_t uid); dbus_bool_t _dbus_credentials_add_windows_sid (DBusCredentials *credentials, const char *windows_sid); +dbus_bool_t _dbus_credentials_add_adt_audit_data (DBusCredentials *credentials, + void *audit_data, + dbus_int32_t size); dbus_bool_t _dbus_credentials_include (DBusCredentials *credentials, DBusCredentialType type); dbus_pid_t _dbus_credentials_get_unix_pid (DBusCredentials *credentials); Modified: branches/import/dbus/dbus-marshal-recursive.c =================================================================== --- branches/import/dbus/dbus-marshal-recursive.c 2008-08-29 14:48:54 UTC (rev 792) +++ branches/import/dbus/dbus-marshal-recursive.c 2008-10-23 17:28:41 UTC (rev 793) @@ -1654,7 +1654,7 @@ _dbus_type_to_string (expected), _dbus_string_get_const_data (writer->type_str), writer->type_pos); else - _dbus_warn_check_failed ("Writing an element of type %s, but no value is expected here\n", + _dbus_warn_check_failed ("Writing an element of type %s, but no value is expected here\n" "The overall signature expected here was '%s' and we are on byte %d of that signature.\n", _dbus_type_to_string (sub->container_type), _dbus_string_get_const_data (writer->type_str), writer->type_pos); Modified: branches/import/dbus/dbus-marshal-validate-util.c =================================================================== --- branches/import/dbus/dbus-marshal-validate-util.c 2008-08-29 14:48:54 UTC (rev 792) +++ branches/import/dbus/dbus-marshal-validate-util.c 2008-10-23 17:28:41 UTC (rev 793) @@ -228,6 +228,7 @@ "123", ".", "(" + "a{(ii)i}" /* https://bugs.freedesktop.org/show_bug.cgi?id=17803 */ }; /* Signature with reason */ Modified: branches/import/dbus/dbus-marshal-validate.c =================================================================== --- branches/import/dbus/dbus-marshal-validate.c 2008-08-29 14:48:54 UTC (rev 792) +++ branches/import/dbus/dbus-marshal-validate.c 2008-10-23 17:28:41 UTC (rev 793) @@ -247,6 +247,7 @@ } if (last == DBUS_DICT_ENTRY_BEGIN_CHAR && + _dbus_type_is_valid (*p) && !dbus_type_is_basic (*p)) { result = DBUS_INVALID_DICT_KEY_MUST_BE_BASIC_TYPE; Modified: branches/import/dbus/dbus-sysdeps-unix.c =================================================================== --- branches/import/dbus/dbus-sysdeps-unix.c 2008-08-29 14:48:54 UTC (rev 792) +++ branches/import/dbus/dbus-sysdeps-unix.c 2008-10-23 17:28:41 UTC (rev 793) @@ -79,8 +79,8 @@ #define O_BINARY 0 #endif -#ifndef _AI_ADDRCONFIG -#define _AI_ADDRCONFIG 0 +#ifndef AI_ADDRCONFIG +#define AI_ADDRCONFIG 0 #endif #ifndef HAVE_SOCKLEN_T @@ -1493,7 +1493,11 @@ /* retrieve maximum needed size for buf */ buflen = sysconf (_SC_GETPW_R_SIZE_MAX); - if (buflen <= 0) + /* sysconf actually returns a long, but everything else expects size_t, + * so just recast here. + * https://bugs.freedesktop.org/show_bug.cgi?id=17061 + */ + if ((long) buflen <= 0) buflen = 1024; result = -1; @@ -2224,6 +2228,15 @@ total += bytes_written; } + if (fsync(fd)) + { + dbus_set_error (error, _dbus_error_from_errno (errno), + "Could not synchronize file %s: %s", + tmp_filename_c, _dbus_strerror (errno)); + + goto out; + } + if (!_dbus_close (fd, NULL)) { dbus_set_error (error, _dbus_error_from_errno (errno), Modified: branches/import/dbus/dbus-sysdeps-util-unix.c =================================================================== --- branches/import/dbus/dbus-sysdeps-util-unix.c 2008-08-29 14:48:54 UTC (rev 792) +++ branches/import/dbus/dbus-sysdeps-util-unix.c 2008-10-23 17:28:41 UTC (rev 793) @@ -836,7 +836,11 @@ /* retrieve maximum needed size for buf */ buflen = sysconf (_SC_GETGR_R_SIZE_MAX); - if (buflen <= 0) + /* sysconf actually returns a long, but everything else expects size_t, + * so just recast here. + * https://bugs.freedesktop.org/show_bug.cgi?id=17061 + */ + if ((long) buflen <= 0) buflen = 1024; result = -1; Modified: branches/import/doc/dbus-faq.html =================================================================== --- branches/import/doc/dbus-faq.html 2008-08-29 14:48:54 UTC (rev 792) +++ branches/import/doc/dbus-faq.html 2008-10-23 17:28:41 UTC (rev 793) @@ -1,13 +1,13 @@ <html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>D-Bus FAQ</title><meta name="generator" content="DocBook XSL Stylesheets V1.73.2"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="article" lang="en"><div class="titlepage"><div><div><h2 class="title"><a name="index"></a>D-Bus FAQ</h2></div><div><div class="authorgroup"><div class="author"><h3 class="author"><span class="firstname">Havoc</span> <span class="surname">Pennington</span></h3><div class="affiliation"><span class="orgname">Red Hat, Inc.<br></span><div class="address"><p><br> \xA0\xA0\xA0\xA0<code class="email"><<a class="email" href="mailto:hp...@po...">hp...@po...</a>></code><br> - \xA0\xA0</p></div></div></div><div class="author"><h3 class="author"><span class="firstname">David</span> <span class="othername">A</span> <span class="surname">Wheeler</span></h3></div></div></div><div><p class="releaseinfo">Version 0.3</p></div></div><hr></div><div class="qandaset"><dl><dt>1. <a href="#id436782"> + \xA0\xA0</p></div></div></div><div class="author"><h3 class="author"><span class="firstname">David</span> <span class="othername">A</span> <span class="surname">Wheeler</span></h3></div></div></div><div><p class="releaseinfo">Version 0.3</p></div></div><hr></div><div class="qandaset"><dl><dt>1. <a href="#id287706"> What is D-Bus? - </a></dt><dt>2. <a href="#id435805"> + </a></dt><dt>2. <a href="#id286727"> Is D-Bus stable/finished? - </a></dt><dt>3. <a href="#id435831"> + </a></dt><dt>3. <a href="#id286754"> How is the reference implementation licensed? Can I use it in proprietary applications? - </a></dt><dt>4. <a href="#id435864"> + </a></dt><dt>4. <a href="#id290098"> What is the difference between a bus name, and object path, and an interface? </a></dt><dt>5. <a href="#service"> @@ -39,9 +39,9 @@ How does D-Bus differ from [yet more IPC mechanisms]? </a></dt><dt>18. <a href="#which-ipc"> Which IPC mechanism should I use? - </a></dt><dt>19. <a href="#id475506"> + </a></dt><dt>19. <a href="#id326390"> How can I submit a bug or patch? - </a></dt></dl><table border="0" summary="Q and A Set"><col align="left" width="1%"><tbody><tr class="question"><td align="left" valign="top"><a name="id436782"></a><a name="id436784"></a><p><b>1.</b></p></td><td align="left" valign="top"><p> + </a></dt></dl><table border="0" summary="Q and A Set"><col align="left" width="1%"><tbody><tr class="question"><td align="left" valign="top"><a name="id287706"></a><a name="id287708"></a><p><b>1.</b></p></td><td align="left" valign="top"><p> What is D-Bus? </p></td></tr><tr class="answer"><td align="left" valign="top"></td><td align="left" valign="top"><p> This is probably best answered by reading the D-Bus <a class="ulink" href="dbus-tutorial.html" target="_top">tutorial</a> or @@ -52,7 +52,7 @@ Phrased differently, D-Bus is 1) an interprocess communication (IPC) system and 2) some higher-level structure (lifecycle tracking, service activation, security policy) provided by two bus daemons, one systemwide and one per-user-session. - </p></td></tr><tr class="question"><td align="left" valign="top"><a name="id435805"></a><a name="id435807"></a><p><b>2.</b></p></td><td align="left" valign="top"><p> + </p></td></tr><tr class="question"><td align="left" valign="top"><a name="id286727"></a><a name="id286730"></a><p><b>2.</b></p></td><td align="left" valign="top"><p> Is D-Bus stable/finished? </p></td></tr><tr class="answer"><td align="left" valign="top"></td><td align="left" valign="top"><p> The low-level library "libdbus" and the protocol specification are considered @@ -62,7 +62,7 @@ have their own release schedules and degree of maturity, not linked to the low-level library and bus daemon release. Check the project page for the binding you're considering to understand that project's policies. - </p></td></tr><tr class="question"><td align="left" valign="top"><a name="id435831"></a><a name="id435833"></a><p><b>3.</b></p></td><td align="left" valign="top"><p> + </p></td></tr><tr class="question"><td align="left" valign="top"><a name="id286754"></a><a name="id286756"></a><p><b>3.</b></p></td><td align="left" valign="top"><p> How is the reference implementation licensed? Can I use it in proprietary applications? </p></td></tr><tr class="answer"><td align="left" valign="top"></td><td align="left" valign="top"><p> @@ -77,7 +77,7 @@ use D-Bus</em></span>. If you're going to sue, you have to stop using the software. Read the licenses to determine their meaning, this FAQ entry is not intended to change the meaning or terms of the licenses. - </p></td></tr><tr class="question"><td align="left" valign="top"><a name="id435864"></a><a name="id436227"></a><p><b>4.</b></p></td><td align="left" valign="top"><p> + </p></td></tr><tr class="question"><td align="left" valign="top"><a name="id290098"></a><a name="id290101"></a><p><b>4.</b></p></td><td align="left" valign="top"><p> What is the difference between a bus name, and object path, and an interface? </p></td></tr><tr class="answer"><td align="left" valign="top"></td><td align="left" valign="top"><p> @@ -107,7 +107,7 @@ interfaces, such as <code class="literal">org.freedesktop.DBus.Introspectable</code>, <code class="literal">org.freedesktop.BasicTextField</code>, <code class="literal">org.kde.RichTextDocument</code>. - </p></td></tr><tr class="question"><td align="left" valign="top"><a name="service"></a><a name="id435928"></a><p><b>5.</b></p></td><td align="left" valign="top"><p> + </p></td></tr><tr class="question"><td align="left" valign="top"><a name="service"></a><a name="id286858"></a><p><b>5.</b></p></td><td align="left" valign="top"><p> What is a "service"? </p></td></tr><tr class="answer"><td align="left" valign="top"></td><td align="left" valign="top"><p> A service is a program that can be launched by the bus daemon @@ -120,7 +120,7 @@ In the D-Bus docs we try to use "service" only when talking about programs the bus knows how to launch, i.e. a service always has a .service file. - </p></td></tr><tr class="question"><td align="left" valign="top"><a name="components"></a><a name="id435955"></a><p><b>6.</b></p></td><td align="left" valign="top"><p> + </p></td></tr><tr class="question"><td align="left" valign="top"><a name="components"></a><a name="id286885"></a><p><b>6.</b></p></td><td align="left" valign="top"><p> Is D-Bus a "component system"? </p></td></tr><tr class="answer"><td align="left" valign="top"></td><td align="left" valign="top"><p> It helps to keep these concepts separate in your mind: @@ -170,7 +170,7 @@ from component/object systems, though perhaps a "plugin" tends to be a bundle of objects with a user-visible name and can be downloaded/packaged as a unit. - </p></td></tr><tr class="question"><td align="left" valign="top"><a name="speed"></a><a name="id436058"></a><p><b>7.</b></p></td><td align="left" valign="top"><p> + </p></td></tr><tr class="question"><td align="left" valign="top"><a name="speed"></a><a name="id286988"></a><p><b>7.</b></p></td><td align="left" valign="top"><p> How fast is the D-Bus reference implementation? </p></td></tr><tr class="answer"><td align="left" valign="top"></td><td align="left" valign="top"><p> Of course it depends a bit on what you're doing. @@ -198,7 +198,7 @@ enable asynchronous communication and avoid round trips. This is frequently a more important performance issue than throughput. - </p></td></tr><tr class="question"><td align="left" valign="top"><a name="size"></a><a name="id436104"></a><p><b>8.</b></p></td><td align="left" valign="top"><p> + </p></td></tr><tr class="question"><td align="left" valign="top"><a name="size"></a><a name="id287034"></a><p><b>8.</b></p></td><td align="left" valign="top"><p> How large is the D-Bus reference implementation? </p></td></tr><tr class="answer"><td align="left" valign="top"></td><td align="left" valign="top"><p> A production build (with assertions, unit tests, and verbose logging @@ -207,7 +207,7 @@ A much, much smaller implementation would be possible by omitting out of memory handling, hardcoding a main loop (or always using blocking I/O), skipping validation, and otherwise simplifying things. - </p></td></tr><tr class="question"><td align="left" valign="top"><a name="other-ipc"></a><a name="id474820"></a><p><b>9.</b></p></td><td align="left" valign="top"><p> + </p></td></tr><tr class="question"><td align="left" valign="top"><a name="other-ipc"></a><a name="id325703"></a><p><b>9.</b></p></td><td align="left" valign="top"><p> How does D-Bus differ from other interprocess communication or networking protocols? </p></td></tr><tr class="answer"><td align="left" valign="top"></td><td align="left" valign="top"><p> @@ -240,7 +240,7 @@ Note: the D-Bus mailing list subscribers are <span class="emphasis"><em>very much not interested</em></span> in debating which IPC system is the One True System. So if you want to discuss that, please use another forum. - </p></td></tr><tr class="question"><td align="left" valign="top"><a name="corba"></a><a name="id474893"></a><p><b>10.</b></p></td><td align="left" valign="top"><p> + </p></td></tr><tr class="question"><td align="left" valign="top"><a name="corba"></a><a name="id325776"></a><p><b>10.</b></p></td><td align="left" valign="top"><p> How does D-Bus differ from CORBA? </p></td></tr><tr class="answer"><td align="left" valign="top"></td><td align="left" valign="top"><p> Start by reading <a class="xref" href="#other-ipc" title="Question">Q:\xA09</a>. @@ -292,7 +292,7 @@ </p><p> On a more trivial note, D-Bus involves substantially fewer acronyms than CORBA. - </p></td></tr><tr class="question"><td align="left" valign="top"><a name="xmlrpcsoap"></a><a name="id435575"></a><p><b>11.</b></p></td><td align="left" valign="top"><p> + </p></td></tr><tr class="question"><td align="left" valign="top"><a name="xmlrpcsoap"></a><a name="id286250"></a><p><b>11.</b></p></td><td align="left" valign="top"><p> How does D-Bus differ from XML-RPC and SOAP? </p></td></tr><tr class="answer"><td align="left" valign="top"></td><td align="left" valign="top"><p> Start by reading <a class="xref" href="#other-ipc" title="Question">Q:\xA09</a>. @@ -311,7 +311,7 @@ supports lifecycle tracking of other applications connected to the bus. With XML-RPC and SOAP, typically each method call exists in isolation and has its own HTTP connection. - </p></td></tr><tr class="question"><td align="left" valign="top"><a name="dce"></a><a name="id475218"></a><p><b>12.</b></p></td><td align="left" valign="top"><p> + </p></td></tr><tr class="question"><td align="left" valign="top"><a name="dce"></a><a name="id326101"></a><p><b>12.</b></p></td><td align="left" valign="top"><p> How does D-Bus differ from DCE? </p></td></tr><tr class="answer"><td align="left" valign="top"></td><td align="left" valign="top"><p> Start by reading <a class="xref" href="#other-ipc" title="Question">Q:\xA09</a>. @@ -324,7 +324,7 @@ a distributed time service. As the name implies, DCE is intended for use in a large, multi-computer distributed application. D-Bus would not be well-suited for this. - </p></td></tr><tr class="question"><td align="left" valign="top"><a name="dcom"></a><a name="id475258"></a><p><b>13.</b></p></td><td align="left" valign="top"><p> + </p></td></tr><tr class="question"><td align="left" valign="top"><a name="dcom"></a><a name="id326141"></a><p><b>13.</b></p></td><td align="left" valign="top"><p> How does D-Bus differ from DCOM and COM? </p></td></tr><tr class="answer"><td align="left" valign="top"></td><td align="left" valign="top"><p> Start by reading <a class="xref" href="#other-ipc" title="Question">Q:\xA09</a>. @@ -334,7 +334,7 @@ </p><p> DCOM (distributed COM) is a Windows IPC system designed for use with the COM object system. It's similar in some ways to DCE and CORBA. - </p></td></tr><tr class="question"><td align="left" valign="top"><a name="internet-communications-engine"></a><a name="id475293"></a><p><b>14.</b></p></td><td align="left" valign="top"><p> + </p></td></tr><tr class="question"><td align="left" valign="top"><a name="internet-communications-engine"></a><a name="id326177"></a><p><b>14.</b></p></td><td align="left" valign="top"><p> How does D-Bus differ from ZeroC's Internet Communications Engine (Ice) </p></td></tr><tr class="answer"><td align="left" valign="top"></td><td align="left" valign="top"><p> Start by reading <a class="xref" href="#other-ipc" title="Question">Q:\xA09</a>. @@ -344,7 +344,7 @@ on the level of SOAP or CORBA than D-Bus. Ice has a "dual-license" business around it; i.e. you can use it under the GPL, or pay for a proprietary license. - </p></td></tr><tr class="question"><td align="left" valign="top"><a name="inter-client-exchange"></a><a name="id475327"></a><p><b>15.</b></p></td><td align="left" valign="top"><p> + </p></td></tr><tr class="question"><td align="left" valign="top"><a name="inter-client-exchange"></a><a name="id326210"></a><p><b>15.</b></p></td><td align="left" valign="top"><p> How does D-Bus differ from Inter-Client Exchange (ICE)? </p></td></tr><tr class="answer"><td align="left" valign="top"></td><td align="left" valign="top"><p> <a class="ulink" href="http://www.x.org/X11R6.8.1/docs/ICE/ice.pdf" target="_top">ICE</a> @@ -362,7 +362,7 @@ DCOP and XSMP are the only two widely-used applications of ICE, and both could in principle be replaced by D-Bus. (Though whether GNOME and KDE will bother is an open question.) - </p></td></tr><tr class="question"><td align="left" valign="top"><a name="dcop"></a><a name="id475365"></a><p><b>16.</b></p></td><td align="left" valign="top"><p> + </p></td></tr><tr class="question"><td align="left" valign="top"><a name="dcop"></a><a name="id326249"></a><p><b>16.</b></p></td><td align="left" valign="top"><p> How does D-Bus differ from DCOP? </p></td></tr><tr class="answer"><td align="left" valign="top"></td><td align="left" valign="top"><p> Start by reading <a class="xref" href="#other-ipc" title="Question">Q:\xA09</a>. @@ -389,14 +389,14 @@ DCOP's implementation to use D-Bus internally (so that GNOME and KDE would end up using exactly the same bus). See the KDE mailing list archives for some of these discussions. - </p></td></tr><tr class="question"><td align="left" valign="top"><a name="yet-more-ipc"></a><a name="id475424"></a><p><b>17.</b></p></td><td align="left" valign="top"><p> + </p></td></tr><tr class="question"><td align="left" valign="top"><a name="yet-more-ipc"></a><a name="id326307"></a><p><b>17.</b></p></td><td align="left" valign="top"><p> How does D-Bus differ from [yet more IPC mechanisms]? </p></td></tr><tr class="answer"><td align="left" valign="top"></td><td align="left" valign="top"><p> Start by reading <a class="xref" href="#other-ipc" title="Question">Q:\xA09</a>. </p><p> There are countless uses of network sockets in the world. <a class="ulink" href="http://www.mbus.org/" target="_top">MBUS</a>, Sun ONC/RPC, Jabber/XMPP, SIP, are some we can think of quickly. - </p></td></tr><tr class="question"><td align="left" valign="top"><a name="which-ipc"></a><a name="id475456"></a><p><b>18.</b></p></td><td align="left" valign="top"><p> + </p></td></tr><tr class="question"><td align="left" valign="top"><a name="which-ipc"></a><a name="id326340"></a><p><b>18.</b></p></td><td align="left" valign="top"><p> Which IPC mechanism should I use? </p></td></tr><tr class="answer"><td align="left" valign="top"></td><td align="left" valign="top"><p> Start by reading <a class="xref" href="#other-ipc" title="Question">Q:\xA09</a>. @@ -427,7 +427,7 @@ to search the list archives is probably to use an Internet engine such as Google. On Google, include "site:freedesktop.org" in your search. - </p></td></tr><tr class="question"><td align="left" valign="top"><a name="id475506"></a><a name="id475509"></a><p><b>19.</b></p></td><td align="left" valign="top"><p> + </p></td></tr><tr class="question"><td align="left" valign="top"><a name="id326390"></a><a name="id326392"></a><p><b>19.</b></p></td><td align="left" valign="top"><p> How can I submit a bug or patch? </p></td></tr><tr class="answer"><td align="left" valign="top"></td><td align="left" valign="top"><p> The D-Bus <a class="ulink" href="http://dbus.freedesktop.org" target="_top">web site</a> Modified: branches/import/doc/dbus-specification.html =================================================================== --- branches/import/doc/dbus-specification.html 2008-08-29 14:48:54 UTC (rev 792) +++ branches/import/doc/dbus-specification.html 2008-10-23 17:28:41 UTC (rev 793) @@ -4,7 +4,7 @@ \xA0\xA0\xA0\xA0\xA0\xA0\xA0\xA0\xA0\xA0\xA0\xA0<code class="email"><<a class="email" href="mailto:and...@co...">and...@co...</a>></code><br> \xA0\xA0\xA0\xA0\xA0\xA0\xA0\xA0\xA0\xA0</p></div></div></div><div class="author"><h3 class="author"><span class="firstname">Alexander</span> <span class="surname">Larsson</span></h3><div class="affiliation"><span class="orgname">Red Hat, Inc.<br></span><div class="address"><p><br> \xA0\xA0\xA0\xA0\xA0\xA0\xA0\xA0\xA0\xA0\xA0\xA0<code class="email"><<a class="email" href="mailto:al...@re...">al...@re...</a>></code><br> -\xA0\xA0\xA0\xA0\xA0\xA0\xA0\xA0\xA0\xA0</p></div></div></div></div></div><div><p class="releaseinfo">Version 0.12</p></div></div><hr></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><span class="sect1"><a href="#introduction">Introduction</a></span></dt><dd><dl><dt><span class="sect2"><a href="#stability">Protocol and Specification Stability</a></span></dt></dl></dd><dt><span class="sect1"><a href="#message-protocol">Message Protocol</a></span></dt><dd><dl><dt><span class="sect2"><a href="#message-protocol-signatures">Type Signatures</a></span></dt><dt><span class="sect2"><a href="#message-protocol-marshaling">Marshaling (Wire Format)</a></span></dt><dt><span class="sect2"><a href="#message-protocol-messages">Message Format</a></span></dt><dt><span class="sect2"><a href="#message-protocol-names">Valid Names</a></span></dt><dt><span class="sect2"><a href="#message-protocol-types">Message Types</a></span></dt><dt><span class="sect2"><a href="#message-protocol-handling-invalid">Invalid Protocol and Spec Extensions</a></span></dt></dl></dd><dt><span class="sect1"><a href="#auth-protocol">Authentication Protocol</a></span></dt><dd><dl><dt><span class="sect2"><a href="#auth-protocol-overview">Protocol Overview</a></span></dt><dt><span class="sect2"><a href="#auth-nul-byte">Special credentials-passing nul byte</a></span></dt><dt><span class="sect2"><a href="#auth-command-auth">AUTH command</a></span></dt><dt><span class="sect2"><a href="#auth-command-cancel">CANCEL Command</a></span></dt><dt><span class="sect2"><a href="#auth-command-data">DATA Command</a></span></dt><dt><span class="sect2"><a href="#auth-command-begin">BEGIN Command</a></span></dt><dt><span class="sect2"><a href="#auth-command-rejected">REJECTED Command</a></span></dt><dt><span class="sect2"><a href="#auth-command-ok">OK Command</a></span></dt><dt><span class="sect2"><a href="#auth-command-error">ERROR Command</a></span></dt><dt><span class="sect2"><a href="#auth-examples">Authentication examples</a></span></dt><dt><span class="sect2"><a href="#auth-states">Authentication state diagrams</a></span></dt><dt><span class="sect2"><a href="#auth-mechanisms">Authentication mechanisms</a></span></dt></dl></dd><dt><span class="sect1"><a href="#addresses">Server Addresses</a></span></dt><dt><span class="sect1"><a href="#transports">Transports</a></span></dt><dd><dl><dt><span class="sect2"><a href="#transports-unix-domain-sockets">Unix Domain Sockets</a></span></dt></dl></dd><dt><span class="sect1"><a href="#naming-conventions">Naming Conventions</a></span></dt><dt><span class="sect1"><a href="#uuids">UUIDs</a></span></dt><dt><span class="sect1"><a href="#standard-interfaces">Standard Interfaces</a></span></dt><dd><dl><dt><span class="sect2"><a href="#standard-interfaces-peer"><code class="literal">org.freedesktop.DBus.Peer</code></a></span></dt><dt><span class="sect2"><a href="#standard-interfaces-introspectable"><code class="literal">org.freedesktop.DBus.Introspectable</code></a></span></dt><dt><span class="sect2"><a href="#standard-interfaces-properties"><code class="literal">org.freedesktop.DBus.Properties</code></a></span></dt></dl></dd><dt><span class="sect1"><a href="#introspection-format">Introspection Data Format</a></span></dt><dt><span class="sect1"><a href="#message-bus">Message Bus Specification</a></span></dt><dd><dl><dt><span class="sect2"><a href="#message-bus-overview">Message Bus Overview</a></span></dt><dt><span class="sect2"><a href="#message-bus-names">Message Bus Names</a></span></dt><dt><span class="sect2"><a href="#message-bus-routing">Message Bus Message Routing</a></span></dt><dt><span class="sect2"><a href="#message-bus-starting-services">Message Bus Starting Services</a></span></dt><dt><span class="sect2"><a href="#message-bus-types">Well-known Message Bus Instances</a></span></dt><dt><span class="sect2"><a href="#message-bus-messages">Message Bus Messages</a></span></dt></dl></dd><dt><span class="glossary"><a href="#id330172">Glossary</a></span></dt></dl></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="introduction"></a>Introduction</h2></div></div></div><p> +\xA0\xA0\xA0\xA0\xA0\xA0\xA0\xA0\xA0\xA0</p></div></div></div></div></div><div><p class="releaseinfo">Version 0.12</p></div></div><hr></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><span class="sect1"><a href="#introduction">Introduction</a></span></dt><dd><dl><dt><span class="sect2"><a href="#stability">Protocol and Specification Stability</a></span></dt></dl></dd><dt><span class="sect1"><a href="#message-protocol">Message Protocol</a></span></dt><dd><dl><dt><span class="sect2"><a href="#message-protocol-signatures">Type Signatures</a></span></dt><dt><span class="sect2"><a href="#message-protocol-marshaling">Marshaling (Wire Format)</a></span></dt><dt><span class="sect2"><a href="#message-protocol-messages">Message Format</a></span></dt><dt><span class="sect2"><a href="#message-protocol-names">Valid Names</a></span></dt><dt><span class="sect2"><a href="#message-protocol-types">Message Types</a></span></dt><dt><span class="sect2"><a href="#message-protocol-handling-invalid">Invalid Protocol and Spec Extensions</a></span></dt></dl></dd><dt><span class="sect1"><a href="#auth-protocol">Authentication Protocol</a></span></dt><dd><dl><dt><span class="sect2"><a href="#auth-protocol-overview">Protocol Overview</a></span></dt><dt><span class="sect2"><a href="#auth-nul-byte">Special credentials-passing nul byte</a></span></dt><dt><span class="sect2"><a href="#auth-command-auth">AUTH command</a></span></dt><dt><span class="sect2"><a href="#auth-command-cancel">CANCEL Command</a></span></dt><dt><span class="sect2"><a href="#auth-command-data">DATA Command</a></span></dt><dt><span class="sect2"><a href="#auth-command-begin">BEGIN Command</a></span></dt><dt><span class="sect2"><a href="#auth-command-rejected">REJECTED Command</a></span></dt><dt><span class="sect2"><a href="#auth-command-ok">OK Command</a></span></dt><dt><span class="sect2"><a href="#auth-command-error">ERROR Command</a></span></dt><dt><span class="sect2"><a href="#auth-examples">Authentication examples</a></span></dt><dt><span class="sect2"><a href="#auth-states">Authentication state diagrams</a></span></dt><dt><span class="sect2"><a href="#auth-mechanisms">Authentication mechanisms</a></span></dt></dl></dd><dt><span class="sect1"><a href="#addresses">Server Addresses</a></span></dt><dt><span class="sect1"><a href="#transports">Transports</a></span></dt><dd><dl><dt><span class="sect2"><a href="#transports-unix-domain-sockets">Unix Domain Sockets</a></span></dt></dl></dd><dt><span class="sect1"><a href="#naming-conventions">Naming Conventions</a></span></dt><dt><span class="sect1"><a href="#uuids">UUIDs</a></span></dt><dt><span class="sect1"><a href="#standard-interfaces">Standard Interfaces</a></span></dt><dd><dl><dt><span class="sect2"><a href="#standard-interfaces-peer"><code class="literal">org.freedesktop.DBus.Peer</code></a></span></dt><dt><span class="sect2"><a href="#standard-interfaces-introspectable"><code class="literal">org.freedesktop.DBus.Introspectable</code></a></span></dt><dt><span class="sect2"><a href="#standard-interfaces-properties"><code class="literal">org.freedesktop.DBus.Properties</code></a></span></dt></dl></dd><dt><span class="sect1"><a href="#introspection-format">Introspection Data Format</a></span></dt><dt><span class="sect1"><a href="#message-bus">Message Bus Specification</a></span></dt><dd><dl><dt><span class="sect2"><a href="#message-bus-overview">Message Bus Overview</a></span></dt><dt><span class="sect2"><a href="#message-bus-names">Message Bus Names</a></span></dt><dt><span class="sect2"><a href="#message-bus-routing">Message Bus Message Routing</a></span></dt><dt><span class="sect2"><a href="#message-bus-starting-services">Message Bus Starting Services</a></span></dt><dt><span class="sect2"><a href="#message-bus-types">Well-known Message Bus Instances</a></span></dt><dt><span class="sect2"><a href="#message-bus-messages">Message Bus Messages</a></span></dt></dl></dd><dt><span class="glossary"><a href="#id342801">Glossary</a></span></dt></dl></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="introduction"></a>Introduction</h2></div></div></div><p> D-Bus is a system for low-latency, low-overhead, easy to use interprocess communication (IPC). In more detail: </p><div class="itemizedlist"><ul type="disc"><li><p> @@ -840,14 +840,14 @@ ERROR feature of the auth protocol is an escape hatch that lets us negotiate extensions or changes to the D-Bus protocol in the future. </p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="auth-examples"></a>Authentication examples</h3></div></div></div><p> - </p><div class="figure"><a name="id325985"></a><p class="title"><b>Figure\xA01.\xA0Example of successful magic cookie authentication</b></p><div class="figure-contents"><pre class="programlisting"> + </p><div class="figure"><a name="id338615"></a><p class="title"><b>Figure\xA01.\xA0Example of successful magic cookie authentication</b></p><div class="figure-contents"><pre class="programlisting"> (MAGIC_COOKIE is a made up mechanism) C: AUTH MAGIC_COOKIE 3138363935333137393635383634 S: OK 1234deadbeef C: BEGIN </pre></div></div><p><br class="figure-break"> - </p><div class="figure"><a name="id326000"></a><p class="title"><b>Figure\xA02.\xA0Example of finding out mechanisms then picking one</b></p><div class="figure-contents"><pre class="programlisting"> + </p><div class="figure"><a name="id338630"></a><p class="title"><b>Figure\xA02.\xA0Example of finding out mechanisms then picking one</b></p><div class="figure-contents"><pre class="programlisting"> C: AUTH S: REJECTED KERBEROS_V4 SKEY C: AUTH SKEY 7ab83f32ee @@ -856,14 +856,14 @@ S: OK 1234deadbeef C: BEGIN </pre></div></div><p><br class="figure-break"> - </p><div class="figure"><a name="id326016"></a><p class="title"><b>Figure\xA03.\xA0Example of client sends unknown command then falls back to regular auth</b></p><div class="figure-contents"><pre class="programlisting"> + </p><div class="figure"><a name="id338646"></a><p class="title"><b>Figure\xA03.\xA0Example of client sends unknown command then falls back to regular auth</b></p><div class="figure-contents"><pre class="programlisting"> C: FOOBAR S: ERROR C: AUTH MAGIC_COOKIE 3736343435313230333039 S: OK 1234deadbeef C: BEGIN </pre></div></div><p><br class="figure-break"> - </p><div class="figure"><a name="id326032"></a><p class="title"><b>Figure\xA04.\xA0Example of server doesn't support initial auth mechanism</b></p><div class="figure-contents"><pre class="programlisting"> + </p><div class="figure"><a name="id338661"></a><p class="title"><b>Figure\xA04.\xA0Example of server doesn't support initial auth mechanism</b></p><div class="figure-contents"><pre class="programlisting"> C: AUTH MAGIC_COOKIE 3736343435313230333039 S: REJECTED KERBEROS_V4 SKEY C: AUTH SKEY 7ab83f32ee @@ -872,7 +872,7 @@ S: OK 1234deadbeef C: BEGIN </pre></div></div><p><br class="figure-break"> - </p><div class="figure"><a name="id326049"></a><p class="title"><b>Figure\xA05.\xA0Example of wrong password or the like followed by successful retry</b></p><div class="figure-contents"><pre class="programlisting"> + </p><div class="figure"><a name="id338678"></a><p class="title"><b>Figure\xA05.\xA0Example of wrong password or the like followed by successful retry</b></p><div class="figure-contents"><pre class="programlisting"> C: AUTH MAGIC_COOKIE 3736343435313230333039 S: REJECTED KERBEROS_V4 SKEY C: AUTH SKEY 7ab83f32ee @@ -885,7 +885,7 @@ S: OK 1234deadbeef C: BEGIN </pre></div></div><p><br class="figure-break"> - </p><div class="figure"><a name="id326067"></a><p class="title"><b>Figure\xA06.\xA0Example of skey cancelled and restarted</b></p><div class="figure-contents"><pre class="programlisting"> + </p><div class="figure"><a name="id338696"></a><p class="title"><b>Figure\xA06.\xA0Example of skey cancelled and restarted</b></p><div class="figure-contents"><pre class="programlisting"> C: AUTH MAGIC_COOKIE 3736343435313230333039 S: REJECTED KERBEROS_V4 SKEY C: AUTH SKEY 7ab83f32ee @@ -1163,7 +1163,7 @@ fails, the lock fails. Servers should retry for a reasonable period of time, then they may choose to delete an existing lock to keep users from having to manually delete a stale - lock. <sup>[<a name="id283976" href="#ftn.id283976" class="footnote">1</a>]</sup> + lock. <sup>[<a name="id296370" href="#ftn.id296370" class="footnote">1</a>]</sup> </p></li><li><p> Once the lockfile has been created, the server loads the cookie file. It should then delete any cookies that are old (the @@ -1743,7 +1743,7 @@ must be namespaced using the same mechanism as messages and service names. - </p><div class="figure"><a name="id328572"></a><p class="title"><b>Figure\xA07.\xA0Example service description file</b></p><div class="figure-contents"><pre class="programlisting"> + </p><div class="figure"><a name="id341201"></a><p class="title"><b>Figure\xA07.\xA0Example service description file</b></p><div class="figure-contents"><pre class="programlisting"> # Sample service description file [D-BUS Service] Names=org.freedesktop.ConfigurationDatabase;org.gnome.GConf; @@ -1826,7 +1826,7 @@ variable. If that variable is not set, applications should try to connect to the well-known address <code class="literal">unix:path=/var/run/dbus/system_bus_socket</code>. - <sup>[<a name="id328916" href="#ftn.id328916" class="footnote">2</a>]</sup> + <sup>[<a name="id341546" href="#ftn.id341546" class="footnote">2</a>]</sup> </p><p> [FIXME specify location of system bus .service files] </p></div></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="message-bus-messages"></a>Message Bus Messages</h3></div></div></div><p> @@ -1993,7 +1993,7 @@ There is also a per-machine ID, described in <a class="xref" href="#standard-interfaces-peer" title="org.freedesktop.DBus.Peer">the section called “<code class="literal">org.freedesktop.DBus.Peer</code>”</a> and returned by org.freedesktop.DBus.Peer.GetMachineId(). For a desktop session bus, the bus ID can be used as a way to uniquely identify a user's session. - </p></div></div></div><div class="glossary"><div class="titlepage"><div><div><h2 class="title"><a name="id330172"></a>Glossary</h2></div></div></div><p> + </p></div></div></div><div class="glossary"><div class="titlepage"><div><div><h2 class="title"><a name="id342801"></a>Glossary</h2></div></div></div><p> This glossary defines some of the terms used in this specification. </p><dl><dt><a name="term-bus-name"></a>Bus Name</dt><dd><p> The message bus maintains an association between names and @@ -2067,10 +2067,10 @@ message bus. This name will never change owner, and will be unique (never reused during the lifetime of the message bus). It will begin with a ':' character. - </p></dd></dl></div><div class="footnotes"><br><hr width="100" align="left"><div class="footnote"><p><sup>[<a name="ftn.id283976" href="#id283976" class="para">1</a>] </sup>Lockfiles are used instead of real file + </p></dd></dl></div><div class="footnotes"><br><hr width="100" align="left"><div class="footnote"><p><sup>[<a name="ftn.id296370" href="#id296370" class="para">1</a>] </sup>Lockfiles are used instead of real file locking <code class="literal">fcntl()</code> because real locking implementations are still flaky on network - filesystems.</p></div><div class="footnote"><p><sup>[<a name="ftn.id328916" href="#id328916" class="para">2</a>] </sup> + filesystems.</p></div><div class="footnote"><p><sup>[<a name="ftn.id341546" href="#id341546" class="para">2</a>] </sup> The D-Bus reference implementation actually honors the <code class="literal">$(localstatedir)</code> configure option for this address, on both client and server side. Modified: branches/import/doc/dbus-test-plan.html =================================================================== --- branches/import/doc/dbus-test-plan.html 2008-08-29 14:48:54 UTC (rev 792) +++ branches/import/doc/dbus-test-plan.html 2008-10-23 17:28:41 UTC (rev 793) @@ -38,7 +38,7 @@ Message Builder. The message builder can take a serialized message in string-form and convert it into a raw character string which can then be loaded by the message loader. - </p><div class="figure"><a name="id456836"></a><p class="title"><b>Figure\xA01.\xA0Example of a message in string form</b></p><div class="figure-contents"><pre class="programlisting"> + </p><div class="figure"><a name="id356952"></a><p class="title"><b>Figure\xA01.\xA0Example of a message in string form</b></p><div class="figure-contents"><pre class="programlisting"> # Standard org.freedesktop.DBus.Hello message VALID_HEADER @@ -75,7 +75,7 @@ can read authentication sequences from a file and play them back to a dummy server and client to make sure that authentication is working according to the specification. - </p><div class="figure"><a name="id457252"></a><p class="title"><b>Figure\xA02.\xA0Example of an authentication script</b></p><div class="figure-contents"><pre class="programlisting"> + </p><div class="figure"><a name="id360333"></a><p class="title"><b>Figure\xA02.\xA0Example of an authentication script</b></p><div class="figure-contents"><pre class="programlisting"> ## this tests a successful auth of type EXTERNAL SERVER Modified: branches/import/test/data/invalid-service-files-system/org.freedesktop.DBus.TestSuiteNoService.service =================================================================== --- branches/import/test/data/invalid-service-files-system/org.freedesktop.DBus.TestSuiteNoService.service 2008-08-29 14:48:54 UTC (rev 792) +++ branches/import/test/data/invalid-service-files-system/org.freedesktop.DBus.TestSuiteNoService.service 2008-10-23 17:28:41 UTC (rev 793) @@ -1,4 +1,4 @@ [D-BUS Service] -Exec=/src/jhbuild/checkout/dbus.whatever/test/test-service +Exec=/src/jhbuild/checkout/dbus/test/test-service User=anyrandomuser Modified: branches/import/test/data/invalid-service-files-system/org.freedesktop.DBus.TestSuiteNoUser.service =================================================================== --- branches/import/test/data/invalid-service-files-system/org.freedesktop.DBus.TestSuiteNoUser.service 2008-08-29 14:48:54 UTC (rev 792) +++ branches/import/test/data/invalid-service-files-system/org.freedesktop.DBus.TestSuiteNoUser.service 2008-10-23 17:28:41 UTC (rev 793) @@ -1,4 +1,4 @@ [D-BUS Service] Name=org.freedesktop.DBus.TestSuiteNoUser -Exec=/src/jhbuild/checkout/dbus.whatever/test/test-service +Exec=/src/jhbuild/checkout/dbus/test/test-service Modified: branches/import/test/data/valid-config-files/debug-allow-all-sha1.conf =================================================================== --- branches/import/test/data/valid-config-files/debug-allow-all-sha1.conf 2008-08-29 14:48:54 UTC (rev 792) +++ branches/import/test/data/valid-config-files/debug-allow-all-sha1.conf 2008-10-23 17:28:41 UTC (rev 793) @@ -5,7 +5,7 @@ <busconfig> <listen>debug-pipe:name=test-server</listen> <listen>unix:tmpdir=/tmp</listen> - <servicedir>/src/jhbuild/checkout/dbus.whatever/test/data/valid-service-files</servicedir> + <servicedir>/src/jhbuild/checkout/dbus/test/data/valid-service-files</servicedir> <auth>DBUS_COOKIE_SHA1</auth> <policy context="default"> <allow send_interface="*"/> Modified: branches/import/test/data/valid-config-files/debug-allow-all.conf =================================================================== --- branches/import/test/data/valid-config-files/debug-allow-all.conf 2008-08-29 14:48:54 UTC (rev 792) +++ branches/import/test/data/valid-config-files/debug-allow-all.conf 2008-10-23 17:28:41 UTC (rev 793) @@ -5,7 +5,7 @@ <busconfig> <listen>debug-pipe:name=test-server</listen> <listen>unix:tmpdir=/tmp</listen> - <servicedir>/src/jhbuild/checkout/dbus.whatever/test/data/valid-service-files</servicedir> + <servicedir>/src/jhbuild/checkout/dbus/test/data/valid-service-files</servicedir> <policy context="default"> <allow send_interface="*"/> <allow receive_interface="*"/> Modified: branches/import/test/data/valid-config-files-system/debug-allow-all-fail.conf =================================================================== --- branches/import/test/data/valid-config-files-system/debug-allow-all-fail.conf 2008-08-29 14:48:54 UTC (rev 792) +++ branches/import/test/data/valid-config-files-system/debug-allow-all-fail.conf 2008-10-23 17:28:41 UTC (rev 793) @@ -6,8 +6,8 @@ <listen>debug-pipe:name=test-server</listen> <listen>unix:tmpdir=/tmp</listen> <type>system</type> - <servicehelper>/src/jhbuild/checkout/dbus.whatever/bus/dbus-daemon-launch-helper-test</servicehelper> - <servicedir>/src/jhbuild/checkout/dbus.whatever/test/data/invalid-service-files-system</servicedir> + <servicehelper>/src/jhbuild/checkout/dbus/bus/dbus-daemon-launch-helper-test</servicehelper> + <servicedir>/src/jhbuild/checkout/dbus/test/data/invalid-service-files-system</servicedir> <policy context="default"> <allow send_interface="*"/> <allow receive_interface="*"/> Modified: branches/import/test/data/valid-config-files-system/debug-allow-all-pass.conf =================================================================== --- branches/import/test/data/valid-config-files-system/debug-allow-all-pass.conf 2008-08-29 14:48:54 UTC (rev 792) +++ branches/import/test/data/valid-config-files-system/debug-allow-all-pass.conf 2008-10-23 17:28:41 UTC (rev 793) @@ -6,8 +6,8 @@ <listen>debug-pipe:name=test-server</listen> <listen>unix:tmpdir=/tmp</listen> <type>system</type> - <servicehelper>/src/jhbuild/checkout/dbus.whatever/bus/dbus-daemon-launch-helper-test</servicehelper> - <servicedir>/src/jhbuild/checkout/dbus.whatever/test/data/valid-service-files-system</servicedir> + <servicehelper>/src/jhbuild/checkout/dbus/bus/dbus-daemon-launch-helper-test</servicehelper> + <servicedir>/src/jhbuild/checkout/dbus/test/data/valid-service-files-system</servicedir> <policy context="default"> <allow send_interface="*"/> <allow receive_interface="*"/> Modified: branches/import/test/data/valid-service-files/org.freedesktop.DBus.TestSuite.PrivServer.service =================================================================== --- branches/import/test/data/valid-service-files/org.freedesktop.DBus.TestSuite.PrivServer.service 2008-08-29 14:48:54 UTC (rev 792) +++ branches/import/test/data/valid-service-files/org.freedesktop.DBus.TestSuite.PrivServer.service 2008-10-23 17:28:41 UTC (rev 793) @@ -1,4 +1,4 @@ [D-BUS Service] Name=org.freedesktop.DBus.TestSuite.PrivServer -Exec=/src/jhbuild/checkout/dbus.whatever/test/name-test/test-privserver +Exec=/src/jhbuild/checkout/dbus/test/name-test/test-privserver Modified: branches/import/test/data/valid-service-files/org.freedesktop.DBus.TestSuiteEchoService.service =================================================================== --- branches/import/test/data/valid-service-files/org.freedesktop.DBus.TestSuiteEchoService.service 2008-08-29 14:48:54 UTC (rev 792) +++ branches/import/test/data/valid-service-files/org.freedesktop.DBus.TestSuiteEchoService.service 2008-10-23 17:28:41 UTC (rev 793) @@ -1,4 +1,4 @@ [D-BUS Service] Name=org.freedesktop.DBus.TestSuiteEchoService -Exec=/src/jhbuild/checkout/dbus.whatever/test/test-service +Exec=/src/jhbuild/checkout/dbus/test/test-service Modified: branches/import/test/data/valid-service-files/org.freedesktop.DBus.TestSuiteSegfaultService.service =================================================================== --- branches/import/test/data/valid-service-files/org.freedesktop.DBus.TestSuiteSegfaultService.service 2008-08-29 14:48:54 UTC (rev 792) +++ branches/import/test/data/valid-service-files/org.freedesktop.DBus.TestSuiteSegfaultService.service 2008-10-23 17:28:41 UTC (rev 793) @@ -1,4 +1,4 @@ [D-BUS Service] Name=org.freedesktop.DBus.TestSuiteSegfaultService -Exec=/src/jhbuild/checkout/dbus.whatever/test/test-segfault +Exec=/src/jhbuild/checkout/dbus/test/test-segfault Modified: branches/import/test/data/valid-service-files/org.freedesktop.DBus.TestSuiteShellEchoServiceFail.service =================================================================== --- branches/import/test/data/valid-service-files/org.freedesktop.DBus.TestSuiteShellEchoServiceFail.service 2008-08-29 14:48:54 UTC (rev 792) +++ branches/import/test/data/valid-service-files/org.freedesktop.DBus.TestSuiteShellEchoServiceFail.service 2008-10-23 17:28:41 UTC (rev 793) @@ -1,4 +1,4 @@ [D-BUS Service] Name=org.freedesktop.DBus.TestSuiteShellEchoServiceFail -Exec=/src/jhbuild/checkout/dbus.whatever/test/test-shell-service "this should 'fail' because of an unterminated quote +Exec=/src/jhbuild/checkout/dbus/test/test-shell-service "this should 'fail' because of an unterminated quote Modified: branches/import/test/data/valid-service-files/org.freedesktop.DBus.TestSuiteShellEchoServiceSuccess.service =================================================================== --- branches/import/test/data/valid-service-files/org.freedesktop.DBus.TestSuiteShellEchoServiceSuccess.service 2008-08-29 14:48:54 UTC (rev 792) +++ branches/import/test/data/valid-service-files/org.freedesktop.DBus.TestSuiteShellEchoServiceSuccess.service 2008-10-23 17:28:41 UTC (rev 793) @@ -1,4 +1,4 @@ [D-BUS Service] Name=org.freedesktop.DBus.TestSuiteShellEchoServiceSuccess -Exec=/src/jhbuild/checkout/dbus.whatever/test/test-shell-service -test "that" 'we get' back --what "we put in" +Exec=/src/jhbuild/checkout/dbus/test/test-shell-service -test "that" 'we get' back --what "we put in" Modified: branches/import/test/data/valid-service-files-system/org.freedesktop.DBus.TestSuiteEchoService.service =================================================================== --- branches/import/test/data/valid-service-files-system/org.freedesktop.DBus.TestSuiteEchoService.service 2008-08-29 14:48:54 UTC (rev 792) +++ branches/import/test/data/valid-service-files-system/org.freedesktop.DBus.TestSuiteEchoService.service 2008-10-23 17:28:41 UTC (rev 793) @@ -1,5 +1,5 @@ [D-BUS Service] Name=org.freedesktop.DBus.TestSuiteEchoService -Exec=/src/jhbuild/checkout/dbus.whatever/test/test-service +Exec=/src/jhbuild/checkout/dbus/test/test-service User=anyrandomuser Modified: branches/import/test/data/valid-service-files-system/org.freedesktop.DBus.TestSuiteSegfaultService.service =================================================================== --- branches/import/test/data/valid-service-files-system/org.freedesktop.DBus.TestSuiteSegfaultService.service 2008-08-29 14:48:54 UTC (rev 792) +++ branches/import/test/data/valid-service-files-system/org.freedesktop.DBus.TestSuiteSegfaultService.service 2008-10-23 17:28:41 UTC (rev 793) @@ -1,5 +1,5 @@ [D-BUS Service] Name=org.freedesktop.DBus.TestSuiteSegfaultService -Exec=/src/jhbuild/checkout/dbus.whatever/test/test-segfault +Exec=/src/jhbuild/checkout/dbus/test/test-segfault User=anyrandomuser Modified: branches/import/test/data/valid-service-files-system/org.freedesktop.DBus.TestSuiteShellEchoServiceFail.service =================================================================== --- branches/import/test/data/valid-service-files-system/org.freedesktop.DBus.TestSuiteShellEchoServiceFail.service 2008-08-29 14:48:54 UTC (rev 792) +++ branches/import/test/data/valid-service-files-system/org.freedesktop.DBus.TestSuiteShellEchoServiceFail.service 2008-10-23 17:28:41 UTC (rev 793) @@ -1,5 +1,5 @@ [D-BUS Service] Name=org.freedesktop.DBus.TestSuiteShellEchoServiceFail -Exec=/src/jhbuild/checkout/dbus.whatever/test/test-shell-service "this should 'fail' because of an unterminated quote +Exec=/src/jhbuild/checkout/dbus/test/test-shell-service "this should 'fail' because of an unterminated quote User=anyrandomuser Modified: branches/import/test/data/valid-service-files-system/org.freedesktop.DBus.TestSuiteShellEchoServiceSuccess.service =================================================================== --- branches/import/test/data/valid-service-files-system/org.freedesktop.DBus.TestSuiteShellEchoServiceSuccess.service 2008-08-29 14:48:54 UTC (rev 792) +++ branches/import/test/data/valid-service-files-system/org.freedesktop.DBus.TestSuiteShellEchoServiceSuccess.service 2008-10-23 17:28:41 UTC (rev 793) @@ -1,5 +1,5 @@ [D-BUS Service] Name=org.freedesktop.DBus.TestSuiteShellEchoServiceSuccess -Exec=/src/jhbuild/checkout/dbus.whatever/test/test-shell-service -test "that" 'we get' back --what "we put in" +Exec=/src/jhbuild/checkout/dbus/test/test-shell-service -test "that" 'we get' back --what "we put in" User=anyrandomuser This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <che...@us...> - 2008-08-29 14:49:00
|
Revision: 792 http://windbus.svn.sourceforge.net/windbus/?rev=792&view=rev Author: chehrlic Date: 2008-08-29 14:48:54 +0000 (Fri, 29 Aug 2008) Log Message: ----------- cross compile++ Modified Paths: -------------- trunk/bus/services.c Modified: trunk/bus/services.c =================================================================== --- trunk/bus/services.c 2008-08-13 11:11:23 UTC (rev 791) +++ trunk/bus/services.c 2008-08-29 14:48:54 UTC (rev 792) @@ -394,7 +394,7 @@ #ifdef DBUS_CLEANUP_OLD_SERVICES #include <stdlib.h> #include <windows.h> -#include <Tlhelp32.h> +#include <tlhelp32.h> int _dbus_get_base_service_name_and_pid (const char *service_name, char **base_service_name) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <che...@us...> - 2008-08-13 11:11:26
|
Revision: 791 http://windbus.svn.sourceforge.net/windbus/?rev=791&view=rev Author: chehrlic Date: 2008-08-13 11:11:23 +0000 (Wed, 13 Aug 2008) Log Message: ----------- tag 1.2.3 Added Paths: ----------- tags/1.2.3/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <che...@us...> - 2008-08-13 11:08:49
|
Revision: 790 http://windbus.svn.sourceforge.net/windbus/?rev=790&view=rev Author: chehrlic Date: 2008-08-13 11:08:45 +0000 (Wed, 13 Aug 2008) Log Message: ----------- export some new functions - msvc compile++ fix version number Modified Paths: -------------- trunk/cmake/CMakeLists.txt trunk/cmake/dbus/dbus-1.def.cmake Modified: trunk/cmake/CMakeLists.txt =================================================================== --- trunk/cmake/CMakeLists.txt 2008-08-13 10:32:03 UTC (rev 789) +++ trunk/cmake/CMakeLists.txt 2008-08-13 11:08:45 UTC (rev 790) @@ -3,7 +3,7 @@ # the version major, minor and release number should be synchron to the dbus cvs - windows releases should only update the patch level set (VERSION_MAJOR "1") set (VERSION_MINOR "2") -set (VERSION_RELEASE "1") +set (VERSION_RELEASE "3") set (VERSION_PATCH "0") if (VERSION_PATCH) set (VERSION "${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_RELEASE}-${VERSION_PATCH}" ) Modified: trunk/cmake/dbus/dbus-1.def.cmake =================================================================== --- trunk/cmake/dbus/dbus-1.def.cmake 2008-08-13 10:32:03 UTC (rev 789) +++ trunk/cmake/dbus/dbus-1.def.cmake 2008-08-13 11:08:45 UTC (rev 790) @@ -160,6 +160,7 @@ _dbus_get_autolaunch_address _dbus_get_config_file_name _dbus_get_current_time +_dbus_get_environment _dbus_get_fail_alloc_counter _dbus_get_fail_alloc_failures _dbus_get_install_root @@ -518,6 +519,7 @@ _dbus_string_skip_blank _dbus_string_skip_white _dbus_string_skip_white_reverse +_dbus_string_split_on_byte _dbus_string_starts_with_c_str _dbus_string_steal_data _dbus_string_steal_data_len @@ -547,6 +549,7 @@ _dbus_transport_do_iteration _dbus_transport_finalize_base _dbus_transport_get_address +_dbus_transport_get_adt_audit_session_data _dbus_transport_get_dispatch_status _dbus_transport_get_is_anonymous _dbus_transport_get_is_authenticated @@ -681,6 +684,7 @@ dbus_connection_flush dbus_connection_free_data_slot dbus_connection_free_preallocated_send +dbus_connection_get_adt_audit_session_data dbus_connection_get_data dbus_connection_get_dispatch_status dbus_connection_get_is_anonymous This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <che...@us...> - 2008-08-13 10:32:12
|
Revision: 789 http://windbus.svn.sourceforge.net/windbus/?rev=789&view=rev Author: chehrlic Date: 2008-08-13 10:32:03 +0000 (Wed, 13 Aug 2008) Log Message: ----------- update to 1.2.3 Modified Paths: -------------- trunk/ChangeLog trunk/HACKING trunk/Makefile.am trunk/NEWS trunk/bus/activation.c trunk/bus/activation.h trunk/bus/dbus-daemon.1.in trunk/bus/dir-watch-inotify.c trunk/bus/driver.c trunk/bus/system.conf.in trunk/config.h.in trunk/configure.in trunk/dbus/dbus-auth.c trunk/dbus/dbus-bus.c trunk/dbus/dbus-connection.c trunk/dbus/dbus-connection.h trunk/dbus/dbus-credentials.c trunk/dbus/dbus-credentials.h trunk/dbus/dbus-protocol.h trunk/dbus/dbus-spawn.c trunk/dbus/dbus-string-util.c trunk/dbus/dbus-string.c trunk/dbus/dbus-string.h trunk/dbus/dbus-sysdeps-unix.c trunk/dbus/dbus-sysdeps-util-unix.c trunk/dbus/dbus-sysdeps.c trunk/dbus/dbus-sysdeps.h trunk/dbus/dbus-transport.c trunk/dbus/dbus-transport.h trunk/dbus/dbus-userdb-util.c trunk/dbus/dbus-userdb.c trunk/dbus/dbus-watch.c trunk/doc/dbus-faq.html trunk/doc/dbus-specification.html trunk/doc/dbus-specification.xml trunk/doc/dbus-test-plan.html trunk/test/Makefile.am trunk/test/data/invalid-service-files-system/org.freedesktop.DBus.TestSuiteNoService.service trunk/test/data/invalid-service-files-system/org.freedesktop.DBus.TestSuiteNoUser.service trunk/test/data/valid-config-files/debug-allow-all-sha1.conf trunk/test/data/valid-config-files/debug-allow-all.conf trunk/test/data/valid-config-files/system.conf trunk/test/data/valid-config-files-system/debug-allow-all-fail.conf trunk/test/data/valid-config-files-system/debug-allow-all-pass.conf trunk/test/data/valid-service-files-system/org.freedesktop.DBus.TestSuiteEchoService.service trunk/test/data/valid-service-files-system/org.freedesktop.DBus.TestSuiteSegfaultService.service trunk/test/data/valid-service-files-system/org.freedesktop.DBus.TestSuiteShellEchoServiceFail.service trunk/test/data/valid-service-files-system/org.freedesktop.DBus.TestSuiteShellEchoServiceSuccess.service trunk/test/name-test/Makefile.am trunk/test/name-test/run-test.sh trunk/test/name-test/run-with-tmp-session-bus.conf trunk/test/test-utils.c trunk/test/test-utils.h trunk/tools/dbus-monitor.c trunk/tools/run-with-tmp-session-bus.sh Added Paths: ----------- trunk/ChangeLog.pre-1-2 trunk/Makefile.in trunk/NEWS.pre-1-2 trunk/aclocal.m4 trunk/bus/Makefile.in trunk/bus/dbus-daemon.1 trunk/config.guess trunk/config.sub trunk/configure trunk/dbus/Makefile.in trunk/depcomp trunk/doc/Makefile.in trunk/install-sh trunk/ltmain.sh trunk/missing trunk/test/Makefile.in trunk/test/data/valid-config-files/session.d/ trunk/test/data/valid-service-files/org.freedesktop.DBus.TestSuite.PrivServer.service trunk/test/data/valid-service-files/org.freedesktop.DBus.TestSuite.PrivServer.service.in trunk/test/data/valid-service-files/org.freedesktop.DBus.TestSuiteEchoService.service trunk/test/data/valid-service-files/org.freedesktop.DBus.TestSuiteSegfaultService.service trunk/test/data/valid-service-files/org.freedesktop.DBus.TestSuiteShellEchoServiceFail.service trunk/test/data/valid-service-files/org.freedesktop.DBus.TestSuiteShellEchoServiceSuccess.service trunk/test/name-test/Makefile.in trunk/test/name-test/test-privserver-client.c trunk/test/name-test/test-privserver.c trunk/test/name-test/test-shutdown.c trunk/tools/Makefile.in Removed Paths: ------------- trunk/DBus-win32.patch trunk/Makefile.cvs trunk/autogen.sh trunk/build-mingw.bat trunk/bus/dir-watch.c trunk/dbus/dbus-example.c trunk/dbus/dbus-md5.c trunk/dbus/dbus-md5.h trunk/dbus-win.patch trunk/doc/diagram.png trunk/patch.bat trunk/pkg-config/ trunk/test/data/valid-introspection-files/ trunk/test/data/valid-service-files/debug-echo.service.in trunk/test/data/valid-service-files/debug-segfault.service.in trunk/test/data/valid-service-files/debug-shell-echo-fail.service.in trunk/test/data/valid-service-files/debug-shell-echo-success.service.in trunk/tools/dbus-viewer.c trunk/update-dbus-docs.sh Property Changed: ---------------- trunk/ trunk/ChangeLog.pre-1-0 trunk/NEWS.pre-1-0 trunk/bus/activation-exit-codes.h trunk/bus/activation-helper-bin.c trunk/bus/activation-helper.c trunk/bus/activation-helper.h trunk/bus/bus-service-win.c trunk/bus/config-parser-common.c trunk/bus/config-parser-common.h trunk/bus/config-parser-trivial.c trunk/bus/config-parser-trivial.h trunk/bus/test-launch-helper.c trunk/bus/test-system.c trunk/dbus/dbus-credentials-util.c trunk/dbus/dbus-credentials.c trunk/dbus/dbus-credentials.h trunk/dbus/dbus-server-win.c trunk/dbus/dbus-server-win.h trunk/dbus/dbus-sysdeps-thread-win.c trunk/dbus/dbus-transport-win.c trunk/dbus/dbus-transport-win.h trunk/test/data/valid-service-files/org.freedesktop.DBus.TestSuiteEchoService.service.in trunk/test/data/valid-service-files/org.freedesktop.DBus.TestSuiteSegfaultService.service.in trunk/test/data/valid-service-files/org.freedesktop.DBus.TestSuiteShellEchoServiceFail.service.in trunk/test/data/valid-service-files/org.freedesktop.DBus.TestSuiteShellEchoServiceSuccess.service.in trunk/test/name-test/run-test.sh trunk/test/name-test/test-ids.c trunk/tools/dbus-launch-win.c trunk/tools/run-with-tmp-session-bus.sh Property changes on: trunk ___________________________________________________________________ Added: svn:mergeinfo + /branches/import:775-788 Modified: trunk/ChangeLog =================================================================== --- trunk/ChangeLog 2008-08-12 11:46:15 UTC (rev 788) +++ trunk/ChangeLog 2008-08-13 10:32:03 UTC (rev 789) @@ -1,2027 +1,5 @@ -2008-04-04 John (J5) Palmieri <jo...@re...> +2008-04-16 John (J5) Palmieri <jo...@re...> - * Released 1.2.1 - -2008-04-03 John (J5) Palmieri <jo...@re...> - - Patch from Sumit <sum...@ya...>, comments added - - * dbus/dbus-transport.c(_dbus_transport_open): fix mem leak - -2008-04-03 John (J5) Palmieri <jo...@re...> - - * dbus/dbus-connection.c (dbus_connection_send): add documentation - to describe when to call dbus_connection_flush and - dbus_connection_unref after a call to dbus_connection_send is made - Initial wording by Stanislav Brabec <sbrabec at suse.cz> - (fd.o bug#13558) - -2008-04-03 John (J5) Palmieri <jo...@re...> - - Patch from Kimmo Hämäläinen <kimmo.hamalainen at nokia.com> - - * bus/expirelist.c - (do_expiration_with_current_time): calculate correct min wait time - and next interval - (bus_expire_list_add, bus_expire_list_add_link): if the timeout is - disabled when we add an item to the expire list, enable the timeout - (do_expiration_with_current_time): only set timeout if there are - items to expire - -2008-04-01 Timo Hoenig <th...@su...> - - Patch from Frederic Crozat <fc...@ma...> - - * bus/dir-watch-inotify.c (bus_watch_directory): Only monitor - IN_CLOSE_WRITE, IN_DELETE, IN_MOVE_TO and IN_MOVE_FROM events. This - way, only atomic changes to configuration file are monitored. - * bus/dir-watch-inotify.c (_handle_inotify_watch): Fix typo in - _dbus_verbose function call - * bus/dir-watch-inotify.c (bus_drop_all_directory_watches): Use - _dbus_strerror instead of perror - -2008-03-04 Havoc Pennington <hp...@re...> - - * bus/connection.c, bus/expirelist.c: Make the BusExpireList - struct opaque, adding accessors for manipulating the list. In this - commit there should be no change in functionality or behavior. The - purpose of this change is to improve encapsulation prior to fixing - some bugs Kimmo Hämäläinen found where the timeout is not properly - updated, since we need to e.g. take some action whenever adding - and removing stuff from the expire list. - -2008-03-31 Colin Walters <wa...@ve...> - - Patch from Owen Taylor <ot...@re...> - - * tools/dbus-launch-x11.c: Check for X11 events before - selecting (FDO bug #15293) - -2008-03-31 Colin Walters <wa...@ve...> - - Patch from Owen Taylor <ot...@re...> - - * tools/dbus-launch-x11.c: Make sure we call XFlush() - on all code paths (FDO bug #15293) - -2008-03-27 Havoc Pennington <hp...@re...> - - * tools/dbus-send.c (append_dict): Do not provide a signature to - dbus_message_iter_open_container() when opening a dict entry. - -2008-03-26 Colin Walters <wa...@ve...> - - Patch from Scott James Remnant <sc...@ne...> - - * dbus/dbus-bus.c: Set default exit_on_disconnect after registration with - the bus, not before. This ensures that programs which wish to set - exit_on_disconnect to FALSE will not be terminated if the bus exits - during registration. (FDO Bug #15112) - -2008-03-04 John (J5) Palmieri <jo...@re...> - - * fix broken poll on Mac OSX - build patch by Benjamin Reed - * configure.in: check for OSX's deadlocking poll - * dbus/dbus-sysdeps-unix.c (_dbus_poll): if we have a broken poll - don't use poll - -2008-03-04 John (J5) Palmieri <jo...@re...> - - * check if the linker supports a flag instead of just checking for GNU - ld - * configure.in: move AM_PROG_LIBTOOL to the top - (ld_supports_flag): new function for checking if the linker supports - a given flag - -2008-03-04 John (J5) Palmieri <jo...@re...> - - * add a changelog for Benjamin Reed's git patch RANT: Change Logs are - handled by git and having an external changelog just screws up - merging. We should write down rules for doing git commit messages - and leave it at that. - * configure.in: Platform build fixes for Mac OS X - the Darwin linker does not understand the -z option; wrap it in - a check for $with_gnu_ld. - environ is only available at runtime, so you need to make a - reference to _NSGetEnviron instead for symbols to resolve properly. - -2008-03-04 John (J5) Palmieri <jo...@re...> - - * configure.in: add $THREAD_LIBS to DBUS_LAUNCHER_LIBS so we link - correctly - -2008-03-04 John (J5) Palmieri <jo...@re...> - - * tools/dbus-launch.c: wrap X'ism in #ifdef so we can compile - without X - -2008-02-28 John (J5) Palmieri <jo...@re...> - - * dbus/dbus-sysdeps-unix.c: define _AI_ADDRCONFIG as 0 if not - defined so that we can compile with an older glibc - -2008-02-26 John (J5) Palmieri <jo...@re...> - - * Released 1.1.20 - -2008-02-26 John (J5) Palmieri <jo...@re...> - - * CVE-2008-0595 - security policy of the type <allow send_interface= - "some.interface.WithMethods"/> work as an implicit allow for - messages sent without an interface bypassing the default deny rules - and potentially allowing restricted methods exported on the bus to be - executed by unauthorized users. This patch fixes the issue. - * bus/policy.c (bus_client_policy_check_can_send, - bus_client_policy_check_can_receive): skip messages without an - interface when evaluating an allow rule, and thus pass it to the - default deny rules - -2008-02-26 John (J5) Palmieri <jo...@re...> - - * correctly unref connections without guids during shutdown - * dbus/dbus-connection.c (close_connection_on_shutdown): new method - split out from shared_connections_shutdown - (shared_connections_shutdown): shutdown all shared connections - without guids - (_dbus_connection_ref_unlocked): handle OOM when prepending no guid - connections to the shared_connections_no_guid list - * Patch by Kimmo Hämäläinen <kimmo dot hamalainen at nokia dot com> - -2008-02-21 John (J5) Palmieri <jo...@re...> - - * fix build against the latest gcc/glibc - * dbus/dbus-sysdeps-unix.c: define _GNU_SOURCE - * bus/selinux.c: include limits.h - * Patch by Matthias Clasen <mclasen at redhat.com> - -2008-02-21 John (J5) Palmieri <jo...@re...> - - * fixes dbus-launch so the bus goes away when X does - (Red Hat Bug #430412) - * tools/dbus-launch.c (main): set xdisplay = NULL - * Patch by Matthias Clasen <mclasen at redhat.com> - -2008-01-17 John (J5) Palmieri <jo...@re...> - - * Released 1.1.4 - -2008-01-17 Timo Hoenig <th...@su...> - * fix inotify support - * bus/dir-watch-inotify.c (_handle_inotify_watch): fix reading of the - inotify events. Also, use ssize_t not size_t for 'ret'. - * bus/dir-watch-inotify.c (bus_watch_directory): watch not only for - IN_MODIFY but also for IN_CREATE and IN_DELETE - * bus/dir-watch-inotify.c (bus_drop_all_directory_watches): drop the - inotify watches more elegantly by closing inotify:_fd, set inotify_fd to - -1 after dropping the watches - -2008-01-15 John (J5) Palmieri <jo...@re...> - - * configure.in: post-release version bump - -2008-01-15 John (J5) Palmieri <jo...@re...> - - * Released 1.1.3 (1.2.0RC1) - -2008-01-15 John (J5) Palmieri <jo...@re...> - - * fix hacking to say git instead of cvs - -2008-01-15 John (J5) Palmieri <jo...@re...> - - * patch by Sébastien Couret <10function at gmail dot com> - - * dbus/dbus-marshal-recursive.c (all_reader_classes[]): wrap in - #ifndef DBUS_DISABLE_ASSERT since it is only used in asserts which - are noop - -2008-01-15 John (J5) Palmieri <jo...@re...> - - * patch by Magnus Henoch <henoch plus bfdo at dtek dot chalmers dot se> - - * dbus/dbus-auth.c (handle_server_data_external_mech): handle SASL - EXTERNAL's inital empty responce (FDO Bug #9945) - -2008-01-15 John (J5) Palmieri <jo...@re...> - - * bus/messagebus.in: add lsb headers (FDO Bug #11491) - -2008-01-15 John (J5) Palmieri <jo...@re...> - - * patch by Peter O'Gorman <pogma at thewrittenword dot com> - - * dbus/dbus-spawn.c (babysit_signal_handler): check write return value - so we don't hang (FDO Bug #11665) - -2008-01-15 John (J5) Palmieri <jo...@re...> - - * patch by Peter O'Gorman <pogma at thewrittenword dot com> - - * dbus/dbus-sysdeps.h: support for AIX poll implementation (FDO Bug - #11666) - -2008-01-15 John (J5) Palmieri <jo...@re...> - - * tests/name-test/run-test.sh: make more portable (FDO Bug #11667) - -2008-01-15 John (J5) Palmieri <jo...@re...> - - * patch by Kimmo Hämäläinen <kimmo dot hamalainen at nokia dot com> - - * dbus/dbus-connection.c (_dbus_connection_get_next_client_serial): - don't check for < 0 on an unsigned variable (FDO Bug #12924) - -2008-01-15 John (J5) Palmieri <jo...@re...> - - * patch by Kimmo Hämäläinen <kimmo dot hamalainen at nokia dot com> - - * bus/bus.c (setup_server): check failed allocation (FDO Bug #12920) - -2008-01-15 John (J5) Palmieri <jo...@re...> - - * patch by Kimmo Hämäläinen <kimmo dot hamalainen at nokia dot com> - - * dbus/dbus-spawn.c (_dbus_spawn_async_with_babysitter): the API - contract says sitter_p can be NULL, so let's check it (FDO Bug #12919) - -2008-01-15 John (J5) Palmieri <jo...@re...> - - * patch by Kimmo Hämäläinen <kimmo dot hamalainen at nokia dot com> - - * dbus/dbus-spawn.c (read_ints, read_pid): use correct ssize_t type - instead of size_t (FDO Bug #12862) - -2008-01-15 John (J5) Palmieri <jo...@re...> - - * patch by Kimmo Hämäläinen <kimmo dot hamalainen at nokia dot com> - - * dbus/dbus-errors.c (dbus_set_error): make sure to call va_end if we - hit an OOM error inside va_start (FDO Bug #12846) - -2008-01-15 John (J5) Palmieri <jo...@re...> - - * patch by Kimmo Hämäläinen <kimmo dot hamalainen at nokia dot com> - - * dbus/dbus-connection.c (dbus_connection_send_with_reply): - fix possible crash if pending_return is NULL (FDO Bug #12673) - -2008-01-15 John (J5) Palmieri <jo...@re...> - - * portions of patch submitted by Tim Mooney - <enchanter at users dot sourceforge dot net> - - * configure.in: never auto-select libxml (FDO Bug #12479) - -2008-01-15 John (J5) Palmieri <jo...@re...> - - * patches by Kimmo Hämäläinen <kimmo dot hamalainen at nokia dot com> - - * dbus/dbus-sysdeps-unix (_dbus_get_autolaunch_address): handle OOM - (FDO Bug #12945) - - * dbus/dbus-uuidgen.c (return_uuid): handle OOM (FDO Bug #12928) - - * dbus/dbus-misc.c (dbus_get_local_machine_id): handle OOM, fix return - value to return NULL not FALSE (FDO Bug #12946) - -2008-01-15 John (J5) Palmieri <jo...@re...> - - * bus/bus.c (bus_context_check_security_policy): rewrite selinux error - handling to not abort due to a NULL read and to set the error only if - it is not already set (Based off of FDO Bug #12430) - -2008-01-15 John (J5) Palmieri <jo...@re...> - - * patch by Kimmo Hämäläinen <kimmo dot hamalainen at nokia dot com> - - * dbus/dbus-internals.c (_dbus_read_uuid_file_without_creating, - _dbus_create_uuid_file_exclusively): add OOM handling (FDO Bug #12952) - -2008-01-15 John (J5) Palmieri <jo...@re...> - - * patch by Kimmo Hämäläinen <kimmo dot hamalainen at nokia dot com> - - * dbus/dbus-spawn.c (babysit, babysitter_iteration): add error - handling when polling (FDO Bug #12954) - -2008-01-15 John (J5) Palmieri <jo...@re...> - - * patch by Kimmo Hämäläinen <kimmo dot hamalainen at nokia dot com> - - * bus/config-parser.c (locate_attributes): remove dead code which - always evaluated to TRUE - - * dbus/dbus-shell.c (_dbus_shell_quote): remove unused code - -2008-01-14 John (J5) Palmieri <jo...@re...> - - * patch by Kimmo Hämäläinen <kimmo dot hamalainen at nokia dot com> - - * bus/connection.c (bus_connection_complete): plug a possible - BusClientPolicy leak (FDO Bug #13242) - -2008-01-14 John (J5) Palmieri <jo...@re...> - - * patch by Frederic Crozat <fcrozat at mandriva dot com> (FDO Bz# - 13268) - - * add inotify support - - * bus/Makefile.am: add inotify module to the build - - * bus/dir-watch-inotify.c: inotify module based off the dnotify and - kqueue modules - - * configure.in: add checks and switch for inotify - also add a printout at the end of configure if inotify and kqueue - support is being built in (dnotify already had this) - -2008-01-14 John (J5) Palmieri <jo...@re...> - - * patch by Frederic Crozat <fcrozat at mandriva dot com> - - * bus/dir-watch-dnotify.c (bus_watch_directory): watch for file - creates also - -2008-01-14 John (J5) Palmieri <jo...@re...> - - * patch by Kimmo Hämäläinen <kimmo dot hamalainen at nokia dot com> - - * dbus/dbus-transport-socket.c(do_reading): return message - loader buffer in case of OOM (FDO Bug#12666) - -2008-01-14 John (J5) Palmieri <jo...@re...> - - * configure.in: add warning to output when libxml is selected since - we don't have a libxml maintainer and expat works perfectly fine - for what we need an xml parser for - -2008-01-14 John (J5) Palmieri <jo...@re...> - - * Patch by Andrea Luzzardi <scox at sig11 dot org>: creates a - _dbus_geteuid function to fix EXTERNAL authentication in setuid - applications - - * dbus/dbus-sysdeps-unix.c (_dbus_geteuid): used to get the effective - uid of the running program - (_dbus_credentials_add_from_current_process): use geteuid instead of - getuid - (_dbus_append_user_from_current_process): use geteuid instead of - getuid - - * dbus/dbus-sysdeps-util-unix.c (_dbus_change_to_daemon_user): use - geteuid instead of getuid - (_dbus_unix_user_is_at_console): use geteuid instead of getuid - - * dbus/dbus-sysdeps-win.c (_dbus_geteuid): add a windows equivilant - that returns DBUS_UID_UNSET - -2007-12-18 Havoc Pennington <hp...@re...> - - * dbus/dbus-connection.c (_dbus_connection_block_pending_call): - fix location of curly braces - -2007-11-23 Sjoerd Simons <sj...@lu...> - - * tools/dbus-launch.c: let both a normal dbus-launch and an - autolaunched bus save their parameters in X11 if possible. This makes - the autolaunch and non-autolaunch behaviour more similar. With the - exception that on a normal launch there will always be a new session - bus and not being able to save parameters is not fatal. This also - enables to launch programs directly with autolaunch (not very usefull - though). - -2007-10-31 Havoc Pennington <hp...@re...> - - * bus/selinux.c (log_audit_callback): rewrite to use - _dbus_string_copy_to_buffer_with_nul() - - * dbus/dbus-string.c (_dbus_string_copy_to_buffer): change to NOT - nul-terminate the buffer; fail an assertion if there is not enough - space in the target buffer. This fixes two bugs where - copy_to_buffer was used to copy the binary bytes in a UUID, where - nul termination did not make sense. Bug reported by David Castelow. - (_dbus_string_copy_to_buffer_with_nul): new function that always - nul-terminates the buffer, and fails an assertion if there is not - enough space in the buffer. - -2007-10-23 Havoc Pennington <hp...@re...> - - * bus/bus.c (bus_context_new): use the new name here - - * bus/selinux.c (bus_selinux_audit_init): rename from audit_init() - to avoid possible libc conflict, and declare it in .h file to - avoid a warning - -2007-10-19 Havoc Pennington <hp...@re...> - - * bus/bus.c (bus_context_new): put audit_init() in HAVE_SELINUX - -2007-10-19 Havoc Pennington <hp...@re...> - - * bus/bus.c (bus_context_new): put the audit_init() in here - instead, which I believe ends up being the same as where it was - before, though I'm not sure I understand why it goes here. - - * dbus/dbus-sysdeps-util-unix.c (_dbus_change_to_daemon_user): - remove audit_init() from here, this file can't depend on code in - bus/ directory - -2007-10-16 Simon McVittie <sim...@co...> - - * configure.in: *Actually* fix detection of i486 atomic ops - - my previous attempt at a fix would always enable them due to wrong - quoting. Patch from Colin Walters <wa...@ve...> - -2007-10-11 Simon McVittie <sim...@co...> - - * configure.in: enable Autoconf's AC_C_INLINE to avoid compilation - failure with gcc -ansi - * dbus/dbus-macros.h, dbus/dbus-arch-deps.h.in: Use new macro - _DBUS_GNUC_EXTENSION (the same as G_GNUC_EXTENSION) to avoid -ansi - warnings about use of "long long". - * dbus/dbus-server-socket.c: remove unused variable when assertions - are disabled - * dbus/dbus-marshal-validate.c: avoid empty statements by removing - stray semicolons - * tools/dbus-launch.c: convert C++-style comment to C-style, add {} - for clarity - * .gitignore: ignore vi swapfiles - * dbus/dbus-errors.h, dbus/dbus-errors.c: Add DBUS_ERROR_INIT macro, - equivalent to calling dbus_error_init() on an uninitialized DBusError - * dbus/dbus-address.c, dbus/dbus-auth-script.c, dbus/dbus-auth-util.c, - dbus/dbus-connection.c, dbus/dbus-internals.c, dbus/dbus-keyring.c, - dbus/dbus-message-util.c, dbus/dbus-server.c, dbus/dbus-sha.c, - dbus/dbus-spawn-win.c, dbus/dbus-spawn.c, - dbus/dbus-sysdeps-util-win.c, dbus/dbus-transport-socket.c, - dbus/dbus-transport.c, dbus/dbus-userdb.c: use that macro instead of - calling dbus_error_init() where it's clearly equivalent - * configure.in, dbus/dbus-sysdeps.h, dbus/dbus-sysdeps-unix.c: Fix - detection of i486 atomic ops. Previously, the attempts to determine - support at compile-time on Darwin were causing the i486 atomic ops to - be used on *all* i386 or x86-64 GCC builds (AH_VERBATIM can't be - conditionalized like we were trying to). - -2007-10-10 Simon McVittie <sim...@co...> - - * dbus/dbus-errors.c, dbus/dbus-protocol.h: Add new error - org.freedesktop.DBus.Error.ObjectPathInUse - * dbus/dbus-object-tree.h, dbus/dbus-object-tree.c, - dbus/dbus-connection.c, dbus/dbus-connection.h: add new functions - dbus_connection_try_register_object_path and - dbus_connection_try_register_fallback, which raise ObjectPathInUse - rather than asserting, to make object path registration less painful - for bindings - * .gitignore: add various things that weren't in .cvsignore because - CVS implicitly ignored them; generally bring up to date - -2007-10-09 John (J5) Palmieri <jo...@re...> - - * tools/run-with-tmp-session-bus.sh: Fix env exports for better - portability (#9280) - * tools/dbus-send.1: Document syntax for container types in dbus-send - man file (#9553) - patch from Jack Spaar <jspaar at - users.sourceforge.net> - - [Both OK for MIT/X11 relicensing -smcv] - -2007-10-09 Simon McVittie <sim...@co...> - - * doc/dbus-specification.xml: Specifically forbid empty structs (#7969) - * doc/dbus-specification.xml: Patches from Kristoffer Lundén to clarify - description of DBUS_COOKIE_SHA1 (#10184) and allowable contents of a - variant (#10185, amended as per Havoc's comments) - - [All of the above are OK for MIT/X11 licensing] - -2007-10-03 John (J5) Palmieri <jo...@re...> - - * dbus/dbus-internals.h: fd.o bug #11678 Don't error out if compiler - does not support vararg macros. _dbus_verbose is the only function - that does this so make it a noop if vararg macros are not supported - * bus/selinux.c, dbus/dbus-sysdeps-util-unix.c: fd.o bug #12429 - Reverse check to setpcap and only init audit if we were root - (patch by Dan Walsh <dw...@re...>, - https://bugs.freedesktop.org/show_bug.cgi?id=12429). Reverse - we_were_root check to setpcap if we were root. Also only init audit - if we were root. So error dbus message will not show up when policy - reload happens. dbus -session will no longer try to send audit - message, only system will. - * configure.in: fd.o bug #11872 improve linker test for --gc-sections. - Patch by Tim Mooney <enchanter at users.sourceforge.net> - * configure.in, dbus/dbus-sysdeps.c: fd.o bug #11872 fix clearenv for - systems that do not have it. Patch from Brian Cameron <brian.cameron - at sun.com> - * tools/dbus-launch.c: fd.o bug #12547 remove superfluous if. - Also convert tabs to spaces - * configure.in, bus/Makefile.am, dbus/Makefile.am: Correctly implement - -fPIC and -fPIE. For security reasons we want possition independent - code for libraries and possition independent executable for - executables. Before we were just enabling -fPIC. Now we correctly - enable -fPIC and -PIE for libdbus and the bus respectively. Proper - LD_FLAGS are set for each also. - -2007-09-20 Ryan Lortie <de...@de...> - - Add argument path matching support. Bug #11066. - - * dbus/signals.c (struct DBusMatchRule, bus_match_rule_new, - bus_match_rule_set_arg, bus_match_rule_parse_arg_match, - match_rule_matches): Add support for parsing and matching on - arg0path='/some/path' type rules. - - * dbus/signals.h (bus_match_rule_set_arg): change to take const - DBusString instead of const char * for the string to match against. - - * dbus/dbus-bus.c: add a quick note to dbus_bus_add_match - documentation about the path matching. - - * doc/dbus-specification.xml: add a more detailed description of the - changes here. - -2007-09-19 Ryan Lortie <de...@de...> - - Add support for compacting DBusStrings to release wasted memory. - - * dbus/dbus-string.[ch] (compact, _dbus_string_compact, - _dbus_string_lock): new compact function to free up allocated memory - that is no longer used. - - * dbus/dbus-message.c (load_message): call _dbus_string_compact on the - message loader buffer. - - * dbus/dbus-transport-socket.c (do_reading, do_writing): call - _dbus_string_compact on the incoming/outgoing "encoded" buffers. - - * dbus/dbus-string-util.c (_dbus_string_test): add a few tests for - string compacting. - -2007-09-13 Ryan Lortie <de...@de...> - - * HACKING: add more explicit git branch/tag instructions - -2007-09-13 Ryan Lortie <de...@de...> - - migrate from cvs to git (cvs2svn -> git-svnimport). - - * HACKING: update release/branch/tag instructions - * */.cvsignore: rename to .gitignore - - also, clean up tags and branch names to conform to HACKING - -2007-08-17 William Jon McCann <mc...@jh...> - - * update-dbus-docs.sh: upload DTD to server - -2007-08-17 Havoc Pennington <hp...@re...> - - * tools/dbus-launch-x11.c (set_address_in_x11): fix from Michael - Lorenz to use long not int with XChangeProperty format 32 - - * dbus/dbus-sysdeps-util-unix.c - (_dbus_write_pid_to_file_and_pipe): factor this out, and use the - same code in _dbus_become_daemon (where the parent writes the pid - file and to the pid pipe) and in bus_context_new (where the daemon - writes its own pid file and to its own pid pipe) - - * bus/bus.c (bus_context_new): close the pid pipe after we print - to it. Also, don't write the pid to the pipe twice when we fork, - someone reported this bug a long time ago. - -2007-08-03 Havoc Pennington <hp...@re...> - - * configure.in: add major/minor/micro version number AC_SUBST - - * dbus/dbus-arch-deps.h.in (DBUS_MAJOR_VERSION, - DBUS_MINOR_VERSION, DBUS_MICRO_VERSION, DBUS_VERSION_STRING, - DBUS_VERSION): collection of macros to get version of library we - are compiled against. - - * dbus/dbus-misc.c (dbus_get_version): new function, to get - version of library we are linked against at runtime. - -2007-07-30 Havoc Pennington <hp...@re...> - - * bus/activation-helper.c (check_bus_name): don't use - _dbus_check_valid_bus_name() which is only around with - --enable-checks, instead use _dbus_validate_bus_name(). - Bug #11766 from Diego <di...@pe...> - -2007-07-27 Havoc Pennington <hp...@re...> - - * configure.in: post-release version bump - -2007-07-27 Havoc Pennington <hp...@re...> - - * release 1.1.2 - -2007-07-26 Havoc Pennington <hp...@re...> - - * bus/config-parser-trivial.c (check_return_values): disable a - test that hardcoded the bus user's name - - * bus/dispatch.c (bus_dispatch_test_conf): remove the "if - (!use_launcher)" around the tests, they were only failing because - we didn't pass through all the expected errors from the helper. - - * bus/activation-exit-codes.h - (BUS_SPAWN_EXIT_CODE_CHILD_SIGNALED): add a code for child segfaulting - (BUS_SPAWN_EXIT_CODE_GENERIC_FAILURE): make "1" be a generic - failure code, so if a third party launch helper were written it - could just always return 1 on failure. - -2007-07-24 Daniel P. Berrange <da...@be...> - - * bus/dbus-daemon.1: Add docs on new syntax options for the bus - address strings - - * dbus/dbus-address.c: Allow * in addresses (for binding to all - addresses). - - * dbus/dbus-sysdeps.h: - * dbus/dbus-sysdeps-unix.c: Re-write to use getaddrinfo instead - of gethostbyname to enable protocol independant name lookup, - making IPv6 work - - * dbus/dbus-server-socket.h: - * dbus/dbus-server-socket.c: Add support for 'family' in the - address string to specify ipv4 vs ipv6. Use a port string to - allow for service resolution. Allow for binding to multiple - sockets at once in case of dual IPv4 & IPv6 stacks. - - * dbus/dbus-server-unix.c: Pass in an array of file descriptors - instead of a single one. - - * dbus/dbus-transport-socket.h: - * dbus/dbus-transport-socket.c: Add support for 'family' in the - address string to specify ipv4 vs ipv6. Use a port string to - allow for service resolution. - -2007-07-24 Havoc Pennington <hp...@re...> - - * configure.in: add AM_PROG_CC_C_O to allow per-target CPPFLAGS - - * bus/dispatch.c (bus_dispatch_test_conf): Fix up setting - TEST_LAUNCH_HELPER_CONFIG to include the full path, and enable - test shell_fail_service_auto_start when use_launcher==TRUE - - * bus/activation-helper-bin.c (convert_error_to_exit_code): pass - through the INVALID_ARGS error so the test suite works - - * bus/activation.c (handle_activation_exit_error): return - DBUS_ERROR_NO_MEMORY if we get BUS_SPAWN_EXIT_CODE_NO_MEMORY - - * dbus/dbus-spawn.c (_dbus_babysitter_get_child_exit_status): - return only the exit code of the child, not the entire thingy from - waitpid(), and make the return value indicate whether the child - exited normally (with a status code) - - * bus/bus.c (process_config_first_time_only): _dbus_strdup works - on NULL so no need to check - (process_config_every_time): move servicehelper init here, so we - reload it on HUP or config file change - - * bus/Makefile.am (install-data-hook): remove comment because - Emacs make mode seems to be grumpy about it - -2007-07-24 Richard Hughes <ri...@hu...> - - * bus/Makefile.am: - * bus/test-system.c: (die), (check_memleaks), (test_pre_hook), - (test_post_hook), (main): - Add back the test-system.c file - not sure now this got ignored in the - diff. I blame git. - -2007-07-24 Richard Hughes <ri...@hu...> - - * configure.in: - Use ustar to generate the tarball; this fixes the make distcheck - problem when the data files do not fit in the archive: - tar: dbus-1.1.2/test/data/valid-service-files/org.freedesktop.DBus. - TestSuiteShellEchoServiceFail.service.in: file name is too - long (max 99); not dumped - - We have to have the 'long' names as the service helper matches by - filename rather than by the name in the service file. - -2007-07-24 Richard Hughes <ri...@hu...> - - * configure.in: - * test/Makefile.am: - * test/data/invalid-service-files-system/org.freedesktop.DBus.TestS - uiteNoExec.service.in: - * test/data/invalid-service-files-system/org.freedesktop.DBus.TestS - uiteNoService.service.in: - * test/data/invalid-service-files-system/org.freedesktop.DBus.TestS - uiteNoUser.service.in: - * test/data/valid-config-files-system/debug-allow-all-fail.conf.in: - * test/data/valid-config-files-system/debug-allow-all-pass.conf.in: - * test/data/valid-config-files/debug-allow-all-sha1.conf.in: - * test/data/valid-config-files/debug-allow-all.conf.in: - * test/data/valid-service-files-system/org.freedesktop.DBus.TestSui - teEchoService.service.in: - * test/data/valid-service-files-system/org.freedesktop.DBus.TestSui - teSegfaultService.service.in: - * test/data/valid-service-files-system/org.freedesktop.DBus.TestSui - teShellEchoServiceFail.service.in: - * test/data/valid-service-files-system/org.freedesktop.DBus.TestSui - teShellEchoServiceSuccess.service.in: - * test/data/valid-service-files/debug-echo.service.in: - * test/data/valid-service-files/debug-segfault.service.in: - * test/data/valid-service-files/debug-shell-echo-fail.service.in: - * test/data/valid-service-files/debug-shell-echo-success.service.in: - * test/data/valid-service-files/org.freedesktop.DBus.TestSuiteEchoS - ervice.service.in: - * test/data/valid-service-files/org.freedesktop.DBus.TestSuiteSegfa - ultService.service.in: - * test/data/valid-service-files/org.freedesktop.DBus.TestSuiteShell - EchoServiceFail.service.in: - * test/data/valid-service-files/org.freedesktop.DBus.TestSuiteShell - EchoServiceSuccess.service.in: - Add the data files needed by the system activation unit checks. - -2007-07-24 Richard Hughes <ri...@hu...> - - * bus/dispatch.c: (check_segfault_service_no_auto_start), - (check_launch_service_file_missing), - (check_launch_service_user_missing), - (check_launch_service_exec_missing), - (check_launch_service_service_missing), (bus_dispatch_test_conf), - (bus_dispatch_test_conf_fail), (bus_dispatch_test): - Add unit tests for system activation. Most are copied from the - session activation tests, but some didn't apply when using a laucher. - -2007-07-24 Richard Hughes <ri...@hu...> - - * bus/activation.c: (bus_activation_activate_service): - If the bus uses a service-laucher, then use the setuid laucher. - -2007-07-24 Richard Hughes <ri...@hu...> - - * configure.in: - Add the needed library exports for the new laucher. - -2007-07-24 Richard Hughes <ri...@hu...> - - * configure.in: - Check for -Wl,--gc-sections so we can really reduce the size of the - setuid binary. - -2007-07-24 Richard Hughes <ri...@hu...> - - * bus/activation.c: (handle_activation_exit_error), - (babysitter_watch_callback): - Map the child exit status integer to a proper dbus error. - -2007-07-24 Richard Hughes <ri...@hu...> - - * bus/bus.c: (process_config_first_time_only), - (process_config_every_time), (bus_context_unref), - (bus_context_get_servicehelper): - * bus/bus.h: - Add the concept of a service-helper and allow it's value to be read. - -2007-07-24 Richard Hughes <ri...@hu...> - - * bus/activation.c: (bus_activation_entry_unref), - (update_desktop_file_entry): - Add the concept of, and read the value of user from the desktop file. - The user string is not required unless we are using system activation. - -2007-07-24 Richard Hughes <ri...@hu...> - - * bus/activation.c: - * bus/desktop-file.h: - Move the defines into the header file, as we use these in the lauch - helper as well as the desktop file parsing. - -2007-07-24 Richard Hughes <ri...@hu...> - - * bus/.cvsignore: - Add the autogenerated binary files. - -2007-07-24 Richard Hughes <ri...@hu...> - - * bus/Makefile.am: - * bus/test.h: - Add the build glue for the lauch helper, and also add the launch-helper - OOM checks into make check. I've probably broken the build, give me 2. - -2007-07-24 Richard Hughes <ri...@hu...> - - * bus/test-launch-helper.c: (die), (check_memleaks), - (test_post_hook), (bus_activation_helper_oom_test), (main): - Add a test wrapper to allow OOM checks on the launch helper. - -2007-07-24 Richard Hughes <ri...@hu...> - - * bus/activation-helper-bin.c: (convert_error_to_exit_code), - (main): - * bus/activation-helper.c: (desktop_file_for_name), - (clear_environment), (check_permissions), (check_service_name), - (get_parameters_for_service), (switch_user), - (exec_for_correct_user), (check_bus_name), (get_correct_parser), - (launch_bus_name), (check_dbus_user), (run_launch_helper): - * bus/activation-helper.h: - Add the initial launch-helper. This is split into a main section and a - binary loader that allows us to lauch the main section in another test - harness to do stuff like OOM testing. No build glue yet. - -2007-07-24 Richard Hughes <ri...@hu...> - - * bus/Makefile.am: - * bus/config-parser.c: (bus_config_parser_unref), - (start_busconfig_child), (bus_config_parser_end_element), - (servicehelper_path), (bus_config_parser_content), - (bus_config_parser_finished), - (bus_config_parser_get_servicehelper), - (test_default_session_servicedirs), - (test_default_system_servicedirs), (bus_config_parser_test): - * bus/config-parser.h: - Make the config-parser code use the common config code. - Also add the session and systemdirs stuff, and make the config parser - aware of the servicehelper field. - -2007-07-24 Richard Hughes <ri...@hu...> - - * bus/system.conf.in: - Add new servicehelper fields to the default system.conf file. - -2007-07-24 Richard Hughes <ri...@hu...> - - * bus/config-parser-trivial.c: (service_dirs_find_dir), - (service_dirs_append_link_unique_or_free), (bus_config_parser_new), - (bus_config_parser_unref), (bus_config_parser_start_element), - (bus_config_parser_end_element), (bus_config_parser_content), - (bus_config_parser_finished), (bus_config_parser_get_user), - (bus_config_parser_get_type), (bus_config_parser_get_service_dirs), - (check_return_values), (do_load), (check_loader_oom_func), - (process_test_valid_subdir), (make_full_path), (check_file_valid), - (bus_config_parser_trivial_test): - * bus/config-parser-trivial.h: - Add a security sensitive stripped down config parser for the setuid - launcher. This file only reads what it needs, and doesn't try to do - anything remotely clever like including external files. - It is not intended to validate the config file; it is expected that - config-parser will do that before the setuid program tries to read it. - -2007-07-24 Richard Hughes <ri...@hu...> - - * bus/config-parser-common.c: - (bus_config_parser_element_name_to_type), - (bus_config_parser_element_type_to_name): - * bus/config-parser-common.h: - We don't want to run the whole config parser with all it's deps in the - setuid program. We need to implement a stripped down config parser just - for the launcher, and to do so I need some common functions and - defines; add them here. - -2007-07-24 Richard Hughes <ri...@hu...> - - * dbus/dbus-sysdeps-unix.c: - (_dbus_get_standard_system_servicedirs): - * dbus/dbus-sysdeps-win.c: - Provide a way to get the standard system servicedirs, just like we do - for the session service dirs. These should be seporate, as there may - be a security issue starting up some session stuff as root. - The use-case for the same binary starting up per-system _and_ - per-session is also not valid. - -2007-07-24 Richard Hughes <ri...@hu...> - - * bus/dbus-daemon.1.in: - Add standard_system_servicedirs and servicehelper into the man file - and explain what each does. - -2007-07-24 Richard Hughes <ri...@hu...> - - * doc/busconfig.dtd: - Add servicehelper into the dtd, it will soon be a valid part of the - config file. - -2007-07-24 Richard Hughes <ri...@hu...> - - * dbus/dbus-spawn.c: (read_data), - (_dbus_babysitter_get_child_exit_status): - * dbus/dbus-spawn.h: - Add a function so we can get access to the exit status of the launch - helper. - By providing the return code and not the error we can leave the - 'what does this mean?' to the bus launch code and not include it in the - dbus directory. - -2007-07-24 Richard Hughes <ri...@hu...> - - * bus/activation-exit-codes.h: - Add defines which specify the output codes of the launch helper. - We have to use exit codes as this is the only way we can return failure - type without going grotty things like redirecting possibly-nonsecure - stderr into the error. - -2007-07-24 Richard Hughes <ri...@hu...> - - * dbus/dbus-protocol.h: - Add new error names needed for the launch helper. - -2007-07-24 Richard Hughes <ri...@hu...> - - * dbus/dbus-sysdeps.c: (_dbus_clearenv): - * dbus/dbus-sysdeps.h: - Add a wrapper for clearenv. - -2007-07-24 Richard Hughes <ri...@hu...> - - * doc/system-activation.txt: - Add design document for the system activation parts. I'll shortly be - committing many patches that add system activation using a setuid - launcher into CVS, so expect things to be broken for a few hours. - -2007-07-19 Ralf Habacker <ral...@fr...> - - * cmake/modules/FindKDEWIN.cmake: fixed comment - * cmake/modules/FindKDEWIN32.cmake: removed obsolate cmake module - -2007-07-18 Havoc Pennington <hp...@re...> - - * dbus/dbus-message.c (dbus_message_get_cached) - (dbus_message_cache_or_finalize): don't mess with message from - message cache outside of the cache lock. Bug #9164 from Jonathan - Matthew. - -2007-07-13 Havoc Pennington <hp...@re...> - - * Add indent-tabs-mode: nil to all file headers. - -2007-07-12 Havoc Pennington <hp...@re...> - - * dbus/dbus-sysdeps-util.c (_dbus_sysdeps_test): invert the test - for parsing hex as double to be sure it fails to work - - * dbus/dbus-sysdeps.c (_dbus_string_parse_double): don't allow hex numbers. - -2007-07-10 Havoc Pennington <hp...@re...> - - * dbus/dbus-connection.c (struct DBusConnection): Fix from Olivier - Hochreutiner to avoid trying to protect individual bits in a word - with different locks (make dispatch_acquired and io_path_acquired - dbus_bool_t rather than bitfields) - -2007-07-09 Ralf Habacker <ral...@fr...> - - * dbus/dbus-sysdeps-win.c,dbus-sysdeps-win.h,dbus-sysdeps-win-util.c, - dbus-sysdeps-spawn-win.c: synced with windbus sources - -2007-07-07 Ralf Habacker <ral...@fr...> - - * dbus/dbus-sysdeps-win.c - (_dbus_getsid): remove unused jump label - (_dbus_read_credentials_socket): _dbus_string_init could fail, - check initialisation - (_dbus_get_working_dir, _dbus_init_working_dir): remove unused - functions - -2007-07-04 Ralf Habacker <ral...@fr...> - - * cmake/modules/FindKDEWIN.cmake: search in <program files dir>\win32libs - for windows supplementary packages too - -2007-06-30 Ralf Habacker <ral...@fr...> - - * cmake/dbus/CMakeLists.txt: handle userdb as unix file - -2007-06-30 Ralf Habacker <ral...@fr...> - - * dbus/dbus-sysdeps-win.c,dbus/dbus-sysdeps-win.h: removed obsolate - DBusUserInfo code - -2007-06-30 Ralf Habacker <ral...@fr...> - - * dbus/dbus-sysdeps-win.c (_dbus_daemon_init): reduced compiler warnings - -2007-06-23 Ralf Habacker <ral...@fr...> - - * dbus/dbus-auth-script.c (_dbus_auth_script_run): added UNIX_ONLY and - WIN_ONLY commands for auth scripts - * test/data/auth/external-root.auth-script: limit execution to unix - -2007-06-21 Havoc Pennington <hp...@re...> - - * dbus/dbus-tranport.c (auth_via_default_rules): made the verbose spam - cross-platform - -2007-06-21 Havoc Pennington <hp...@re...> - - * dbus/dbus-watch.c (dbus_watch_get_fd): 1) its behavior should - not be the same as before, the ABI has never been declared stable - on Windows and 2) do not commit to cross-platform files without - posting the exact patch to the mailing list - - * dbus/dbus-sysdeps-util.c (_dbus_sysdeps_test): as I have pointed - out before, either 0xff needs to work on both platforms, or none - of the dbus code can rely on it working. That means the options - are 1) audit the code for anywhere that relies on 0xff working, if - none found ideally add a test that it *doesn't* work and make unix - reject it explicitly, but in any case this test would go away or - 2) make it work on Windows also, then we don't have to figure out - whether we rely on it. - - And in either case, post the exact patch to the mailing list and - don't just commit. - -2007-06-21 Ralf Habacker <ral...@fr...> - - * cmake/CMakeLists.txt: added VERSION_PATCH to be able to - distinguish win32 binary release from dbus versioning - -2007-06-21 Ralf Habacker <ral...@fr...> - - * dbus/dbus-sysdeps-win.c: deleted local DBusCredentials structure - (_dbus_getsid): new function - (_dbus_read_credentials_socket): used correct function - (_dbus_append_user_from_current_process, - _dbus_credentials_add_from_current_process): added real - sid reading - (_dbus_credentials_parse_and_add_desired,_dbus_parse_uid): - deleted - -2007-06-21 Ralf Habacker <ral...@fr...> - - * dbus/dbus-sysdeps-util.c (_dbus_sysdeps_test): don't check - 0xff as floating point, this isn't supported on win32 math - implementation - -2007-06-21 Ralf Habacker <ral...@fr...> - - * dbus/dbus-sysdeps-win.c (_dbus_homedir_from_username, - _dbus_homedir_from_current_process, _dbus_append_desired_identity): - removed obsolate functions - -2007-06-21 Ralf Habacker <ral...@fr...> - - * dbus/dbus-sysdeps-win.c, dbus/dbus-sysdeps-util-win.c, - dbus/dbus-sysdeps-win.h: disabled uid/sid conversation stuff - implementation by Peter Kuemmel - -2007-06-21 Ralf Habacker <ral...@fr...> - - * dbus/dbus-watch.c (dbus_watch_get_fd): this function is - deprecated and its behavior should be as before until all - client code is migrated. - -2007-06-19 Ralf Habacker <ral...@fr...> - - * dbus/dbus-sysdeps-util-win.c, tools/dbus-launch-win.c: - msvc7.1 fixes by Jaroslaw Staniek tested with mingw - -2007-06-19 Ralf Habacker <ral...@fr...> - - * dbus/dbus-sysdeps-win.c, dbus/dbus-sysdeps-spawn-win.c, - dbus/dbus-sysdeps-win.h: disabled DBusSocket implementation - by Peter Kuemmel - -2007-06-18 Ralf Habacker <ral...@fr...> - - * dbus-win.patch: removed obsolate patches - -2007-06-18 Havoc Pennington <hp...@re...> - - * configure.in: bump version to 1.1.2 so CVS is higher than last - release (this is not the 1.1.2 release) - -2007-06-18 Havoc Pennington <hp...@re...> - - * Release 1.1.1 - -2007-06-18 Havoc Pennington <hp...@re...> - - * doc/dbus-specification.xml: document org.freedesktop.DBus.GetId() - - * bus/driver.c (bus_driver_handle_get_id): implement org.freedesktop.DBus.GetId() - - * bus/bus.c (bus_context_new): generate a unique ID for each bus context - - * dbus/dbus-connection.c (dbus_connection_get_server_id): new function - - * dbus/dbus-bus.c (dbus_bus_get_id): new function - - * dbus/dbus-server.c (dbus_server_get_id): new function - -2007-06-18 Havoc Pennington <hp...@re...> - - * dbus/dbus-sysdeps-unix.c (_dbus_read_credentials_socket): clean - this up a little bit, to try and understand why telnet'ing to a - server and sending a non-nul byte didn't disconnect immediately; - now it seems that it does disconnect immediately as it should, - though I don't understand what has changed. - -2007-06-18 Havoc Pennington <hp...@re...> - - * dbus/dbus-watch.c (dbus_watch_get_socket) - (dbus_watch_get_unix_fd): new API to match DBusConnection - (dbus_watch_get_fd): deprecate this - - Throughout: just s/dbus_watch_get_fd/dbus_watch_get_socket/g for - now since all the transports use sockets anyway - -2007-06-16 Ralf Habacker <ral...@fr...> - - * dbus/dbus-macros.h, dbus/dbus-message.c, - dbus/dbus-message.h: renamed DBUS_GNUC_DEPRECATED - to DBUS_DEPRECATED and extended to msvc compiler - -2007-06-15 Ralf Habacker <ral...@fr...> - - * cmake/CMakeLists.txt: use local include header first - - * dbus/dbus-sysdeps-win.c: mingw fix of DBusCredential struct - -2007-06-15 Ralf Habacker <ral...@fr...> - - * cmake/ConfigureChecks.cmake,cmake/config.h.cmake: - added check for HAVE_ERRNO_H - - * cmake/dbus/CMakeLists.txt: added missing files - - * dbus/dbus-transport-win.c/.h: new files - - * dbus/dbus-sysdeps-win.c,.h: added required _unix functions - to make dbus compilable on win32 - - * dbus/dbus-sysdeps-win-utils.c,.h: moved some functions to - dbus-sysdeps-win.c - - * dbus-win.patch: removed applied or obsolate patches - - Note: dbus-win32 is now compilable, no guarantee that it runs - without any problems - -2007-06-15 Havoc Pennington <hp...@re...> - - * dbus/dbus-sysdeps-unix.c (_dbus_append_session_config_file) - (_dbus_append_system_config_file): new functions - - * bus/main.c (main): use _dbus_append_system_config_file() and - _dbus_append_session_config_file() - - * dbus/Makefile.am (INCLUDES): move DBUS_SYSTEM_CONFIG_FILE and - DBUS_SESSION_CONFIG_FILE into this makefile - -2007-06-15 Havoc Pennington <hp...@re...> - - * dbus/dbus-sysdeps.c (_dbus_set_errno_to_zero) - (_dbus_get_is_errno_nonzero, _dbus_get_is_errno_eintr) - (_dbus_strerror_from_errno): family of functions to abstract - errno, though these are somewhat bogus (really we should make our - socket wrappers not use errno probably - the issue is that any - usage of errno that isn't socket-related probably is not - cross-platform, so should either be in a unix-only file that can - use errno directly, or is a bug - these general errno wrappers - hide issues of this nature in non-socket code, while - socket-specific API changes would not since sockets are allowed - cross-platform) - -2007-06-14 Havoc Pennington <hp...@re...> - - * bus/dispatch.c (check_get_connection_unix_process_id): mop up - getpid() (noticed by Peter Kümmel) and adapt the test to - expect a "pid unknown" error when running on Windows. - -2007-06-14 Havoc Pennington <hp...@re...> - - * dbus/dbus-sysdeps-unix.c (_dbus_credentials_parse_and_add_user): - delete this function since it was effectively the same as - _dbus_credentials_add_from_username() - -2007-06-14 Havoc Pennington <hp...@re...> - - * dbus/dbus-auth.c: adapt to keyring changes - - * dbus/dbus-keyring.c: change to avoid using user ID and home - directory directly; instead use a - keyring-location-from-credentials function in dbus-sysdeps - - * fix to use _dbus_append_user_from_current_process() instead of - _dbus_username_from_current_process() or _dbus_append_desired_identity(). - -2007-06-14 Ralf Habacker <ral...@fr...> - - * reverted global rename of function _dbus_username_from_current_process. - It needs too much tests to verify that the change does not break anything. - I had overseen that the signatures are different and requires non - trivial changes. - This is one *major* disadvantage of emulating oop functionality with c. - You are responsible for cleaning every object on every function return point - which could be a nightmare if you are not working with dbus all the days. - -2007-06-14 Ralf Habacker <ral...@fr...> - - * dbus/dbus-auth.c (handle_client_initial_response_cookie_sha1_mech): - fixed usage of _dbus_append_desired_identity() - - * dbus/dbus-sysdeps.h (_dbus_username_from_current_process): removed prototype - -2007-06-14 Ralf Habacker <ral...@fr...> - - * dbus/dbus-sysdeps.c: moved global lock system_users from dbus-userdb.c - -2007-06-14 Ralf Habacker <ral...@fr...> - - * global rename of function _dbus_username_from_current_process - to _dbus_append_desired_identity. - Approved by Havoc Pennington - -2007-06-14 Ralf Habacker <ral...@fr...> - - * dbus/dbus-sysdeps-win.c: disabled DBusUserInfo related code - (_dbus_append_desired_identity, _dbus_windows_user_is_process_owner): - new win32 functions as counterpart of unix related - (_dbus_send_credentials_socket,_dbus_read_credentials_socket): - renamed from ..._unix_socket - (_dbus_send_credentials_unix_socket): removed obsolate function - - * dbus/dbus-sysdeps-win-util.c: disabled DBusGroupInfo related code - (_dbus_verify_daemon_user,_dbus_change_to_daemon_user): - new win32 functions as counterpart of unix related - -2007-06-14 Simon McVittie <sim...@co...> - - * doc/dbus-specification.xml: say the protocol version is 1 instead of - 0 (patch from Kristoffer Lundén, fd.o#10033) and remove the FIXME - about removing protocol version from messages (as per Havoc's comment - on that bug) - -2007-06-14 Ralf Habacker <ral...@fr...> - - * dbus/dbus-sysdeps-win.c (_dbus_pid_for_log,_dbus_flush_caches): - new win32 functions as counterpart of unix related - -2007-06-14 Ralf Habacker <ral...@fr...> - - * cmake/modules/FindKDEWIN.cmake, - cmake/modules/FindKDEWIN_Packager.cmake, - cmake/modules/Win32Macros.cmake: new files from the - kdewin32 project - * cmake/CMakeLists.txt: cleaned support for kdewin installer and - win32 explorer wrapper - -2007-06-13 Havoc Pennington <hp...@re...> - - * dbus/dbus-message.c (dbus_message_iter_open_container): Fix - broken return_if_fail (kind of scary that test suite does not - cover this) - -2007-06-13 Havoc Pennington <hp...@re...> - - * dbus/dbus-server-socket.c (_dbus_server_listen_socket): support - all_interfaces=true|false for tcp servers - - * dbus/dbus-sysdeps-unix.c (_dbus_listen_tcp_socket): support - inaddr_any flag - - * bus/selinux.c: fix some missing includes - - * dbus/dbus-server-socket.c (_dbus_server_listen_socket): allow - port to simply be omitted in addition to specifying 0 - -2007-06-13 Havoc Pennington <hp...@re...> - - * configure.ac, bus/selinux.c, dbus/dbus-sysdeps-unix-util.c: add - libaudit support, no clue what this means really but now we have - it. Patches from Fedora package. - - * bus/bus.c (bus_context_new): move selinux initialization after - changing to daemon user, patch from Fedora package - - * dbus/dbus-transport.c (auth_via_unix_user_function): fix a typo - -2007-06-12 Havoc Pennington <hp...@re...> - - * dbus/dbus-message.c (dbus_message_iter_open_container): improve - the checks/warnings for contained_signature a bit - -2007-06-12 Havoc Pennington <hp...@re...> - - * dbus/dbus-marshal-recursive.c (write_or_verify_typecode): - improve the warning a bit if you write extra data into a message - -2007-06-12 Havoc Pennington <hp...@re...> - - * dbus/dbus-auth.c (sha1_handle_second_client_response) - (handle_server_data_anonymous_mech): add the process ID from - socket credentials, if available, even if not using EXTERNAL - - * dbus/dbus-transport.c (auth_via_default_rules): support - allow_anonymous flag - - * dbus/dbus-connection.c (dbus_connection_get_is_anonymous) - (dbus_connection_set_allow_anonymous): new API for controlling - anonymous access - -2007-06-09 Havoc Pennington <hp...@re...> - - * dbus/dbus-string.c (_dbus_string_pop_line): fix this not to - think an empty line is the end of the file. - Also, fix some whitespace. - - * dbus/dbus-string-util.c: add more tests for - _dbus_string_pop_line() revealing that it thinks an empty line is - the end of the file, which broke dbus-auth-script.c so - it didn't really run the scripts - - * dbus/dbus-auth.c: add ANONYMOUS mechanism - - * dbus/dbus-auth-script.c (_dbus_auth_script_run): fix to detect - an empty/no-op auth script; add commands to check that we have or - don't have the expected credentials - -2007-06-09 Havoc Pennington <hp...@re...> - - * bus/policy.c (bus_policy_create_client_policy): gracefully - continue if the connection has no unix user - just don't apply - any unix user dependent rules. - - * bus/config-parser.c: remove dbus-userdb.h usage - - * bus/bus.c: remove dbus-userdb.h usage - - * dbus/dbus-transport.c (_dbus_transport_get_is_authenticated): - support Windows user function; also, fix the logic for checking - auth as root in the default auth code (broken in the previous - commit) - - * dbus/dbus-connection.c - (dbus_connection_set_windows_user_function): new function - (dbus_connection_get_windows_user): new function - -2007-06-09 Havoc Pennington <hp...@re...> - - * bus/dispatch.c (check_get_connection_unix_process_id): adapt - since sysdeps-unix.h stuff isn't included anymore - - * bus/bus.c (bus_context_new): use more abstract functions to - change user, so they can be no-ops on Windows - - * dbus/dbus-credentials.c, dbus/dbus-credentials.h, - dbus/dbus-credentials-util.c: new files containing a fully opaque - DBusCredentials data type to replace the old not opaque one. - - * configure.in (DBUS_UNIX): define DBUS_UNIX to match DBUS_WIN on - windows - - * dbus/dbus-userdb.h: prohibit on Windows, next step is to clean - up the uses of it in bus/*.c and factor out the parts of - cookie auth that depend on it - -2007-06-07 Havoc Pennington <hp...@re...> - - * dbus/dbus-message.c: improve some docs related to reading values - from a message iter - -2007-06-02 Ralf Habacker <ral...@fr...> - - * cmake: added cygwin compile support - -2007-06-01 Ralf Habacker <ral...@fr...> - - * tools/dbus-launch-win.c: new file, replaces script wrapper on win32. - - * cmake/dbus-launch.bat.cmake: removed obsolate file - -2007-05-31 Ralf Habacker <ral...@fr...> - - * bus/main.c (main): uses _dbus_get_config_file_name() to detect - session.conf location on win32. - - * dbus-sysdeps-win.h (_dbus_get_config_file_name,_dbus_file_exists): - new prototyp, undefined interface after including windows.h because - it makes trouble when a paramater is named interface. - - * dbus-sysdeps-win.c (_dbus_get_install_root, - _dbus_get_config_file_name,_dbus_file_exists): new functions. - -2007-05-27 Ralf Habacker <ral...@fr...> - - * bus/policy.c,dbus/dbus-internals.c: fixed inconsistant line endings - as reported by Peter Kümmel. - -2007-05-25 John (J5) Palmieri <jo...@re...> - - * Released 1.1.0 - -2007-05-25 John (J5) Palmieri <jo...@re...> - - * Split NEWS and ChangeLog into a .pre-1-0 file as per HACKING - We forgot to do this during the 1.0 release and it makes sense - now as we get ready to release the first 1.1.0 development tarball - -2007-05-25 John (J5) Palmieri <jo...@re...> - - * create directory test/data/valid-config-files/session.d so that - make check passes - -2007-05-25 John (J5) Palmieri <jo...@re...> - - * INSTALL: remove dependancies for bindings since they no longer - are a part of core - -2007-05-25 Ralf Habacker <ral...@fr...> - - * dbus/dbus-server-win.c,dbus/dbus-server-win.h: new file - with empty function _dbus_server_listen_platform_specific(). - - * dbus/dbus-server.c (listen_funcs): uses - _dbus_server_listen_platform_specific on any platform. - -2007-05-25 Ralf Habacker <ral...@fr...> - - * dbus/dbus-sysdeps-win.c (fill_win_user_info_homedir): not getting - user info from a domain controller isn't an error, the computer - may run in a non domain context. - -2007-05-25 Ralf Habacker <ral...@fr...> - - * dbus/dbus-sysdeps-win.c (_dbus_full_duplex_pipe): fixed assertation. - -2007-05-24 Simon McVittie <sim...@co...> - - ... [truncated message content] |
From: <che...@us...> - 2008-08-12 11:46:29
|
Revision: 788 http://windbus.svn.sourceforge.net/windbus/?rev=788&view=rev Author: chehrlic Date: 2008-08-12 11:46:15 +0000 (Tue, 12 Aug 2008) Log Message: ----------- update to 1.2.3, cleanup Modified Paths: -------------- branches/import/ChangeLog branches/import/HACKING branches/import/Makefile.am branches/import/NEWS branches/import/bus/activation.c branches/import/bus/activation.h branches/import/bus/dbus-daemon.1.in branches/import/bus/dir-watch-inotify.c branches/import/bus/driver.c branches/import/bus/system.conf.in branches/import/config.h.in branches/import/configure.in branches/import/dbus/dbus-auth.c branches/import/dbus/dbus-bus.c branches/import/dbus/dbus-connection.c branches/import/dbus/dbus-connection.h branches/import/dbus/dbus-credentials.c branches/import/dbus/dbus-credentials.h branches/import/dbus/dbus-protocol.h branches/import/dbus/dbus-spawn.c branches/import/dbus/dbus-string-util.c branches/import/dbus/dbus-string.c branches/import/dbus/dbus-string.h branches/import/dbus/dbus-sysdeps-unix.c branches/import/dbus/dbus-sysdeps-util-unix.c branches/import/dbus/dbus-sysdeps.c branches/import/dbus/dbus-sysdeps.h branches/import/dbus/dbus-transport.c branches/import/dbus/dbus-transport.h branches/import/dbus/dbus-userdb-util.c branches/import/dbus/dbus-userdb.c branches/import/dbus/dbus-watch.c branches/import/doc/dbus-faq.html branches/import/doc/dbus-specification.html branches/import/doc/dbus-specification.xml branches/import/doc/dbus-test-plan.html branches/import/test/Makefile.am branches/import/test/data/invalid-service-files-system/org.freedesktop.DBus.TestSuiteNoService.service branches/import/test/data/invalid-service-files-system/org.freedesktop.DBus.TestSuiteNoUser.service branches/import/test/data/valid-config-files-system/debug-allow-all-fail.conf branches/import/test/data/valid-config-files-system/debug-allow-all-pass.conf branches/import/test/data/valid-service-files-system/org.freedesktop.DBus.TestSuiteEchoService.service branches/import/test/data/valid-service-files-system/org.freedesktop.DBus.TestSuiteSegfaultService.service branches/import/test/data/valid-service-files-system/org.freedesktop.DBus.TestSuiteShellEchoServiceFail.service branches/import/test/data/valid-service-files-system/org.freedesktop.DBus.TestSuiteShellEchoServiceSuccess.service branches/import/test/name-test/Makefile.am branches/import/test/name-test/run-test.sh branches/import/test/name-test/run-with-tmp-session-bus.conf branches/import/test/test-utils.c branches/import/test/test-utils.h branches/import/tools/dbus-monitor.c branches/import/tools/run-with-tmp-session-bus.sh Added Paths: ----------- branches/import/ChangeLog.pre-1-2 branches/import/Makefile.in branches/import/NEWS.pre-1-2 branches/import/aclocal.m4 branches/import/bus/Makefile.in branches/import/bus/dbus-daemon.1 branches/import/config.guess branches/import/config.sub branches/import/configure branches/import/dbus/Makefile.in branches/import/dbus/dbus-arch-deps.h branches/import/depcomp branches/import/doc/Makefile.in branches/import/install-sh branches/import/ltmain.sh branches/import/missing branches/import/test/Makefile.in branches/import/test/data/valid-config-files/debug-allow-all-sha1.conf branches/import/test/data/valid-config-files/debug-allow-all.conf branches/import/test/data/valid-config-files/session.conf branches/import/test/data/valid-config-files/session.d/ branches/import/test/data/valid-config-files/system.conf branches/import/test/data/valid-service-files/org.freedesktop.DBus.TestSuite.PrivServer.service branches/import/test/data/valid-service-files/org.freedesktop.DBus.TestSuite.PrivServer.service.in branches/import/test/data/valid-service-files/org.freedesktop.DBus.TestSuiteEchoService.service branches/import/test/data/valid-service-files/org.freedesktop.DBus.TestSuiteSegfaultService.service branches/import/test/data/valid-service-files/org.freedesktop.DBus.TestSuiteShellEchoServiceFail.service branches/import/test/data/valid-service-files/org.freedesktop.DBus.TestSuiteShellEchoServiceSuccess.service branches/import/test/name-test/Makefile.in branches/import/test/name-test/test-privserver-client.c branches/import/test/name-test/test-privserver.c branches/import/test/name-test/test-shutdown.c branches/import/tools/Makefile.in Removed Paths: ------------- branches/import/DBus-win32.patch branches/import/Makefile.cvs branches/import/autogen.sh branches/import/build-mingw.bat branches/import/bus/dir-watch.c branches/import/dbus/dbus-example.c branches/import/dbus/dbus-md5.c branches/import/dbus/dbus-md5.h branches/import/dbus-win.patch branches/import/patch.bat branches/import/test/data/valid-introspection-files/ branches/import/test/data/valid-service-files/debug-echo.service.in branches/import/test/data/valid-service-files/debug-segfault.service.in branches/import/test/data/valid-service-files/debug-shell-echo-fail.service.in branches/import/test/data/valid-service-files/debug-shell-echo-success.service.in branches/import/tools/dbus-viewer.c branches/import/update-dbus-docs.sh branches/import/win-patches/ Property Changed: ---------------- branches/import/ChangeLog.pre-1-0 branches/import/NEWS.pre-1-0 branches/import/bus/activation-exit-codes.h branches/import/bus/activation-helper-bin.c branches/import/bus/activation-helper.c branches/import/bus/activation-helper.h branches/import/bus/bus-service-win.c branches/import/bus/config-parser-common.c branches/import/bus/config-parser-common.h branches/import/bus/config-parser-trivial.c branches/import/bus/config-parser-trivial.h branches/import/bus/dir-watch-inotify.c branches/import/bus/test-launch-helper.c branches/import/bus/test-system.c branches/import/config.h.in branches/import/dbus/dbus-credentials-util.c branches/import/dbus/dbus-credentials.c branches/import/dbus/dbus-credentials.h branches/import/dbus/dbus-server-win.c branches/import/dbus/dbus-server-win.h branches/import/dbus/dbus-sysdeps-thread-win.c branches/import/dbus/dbus-transport-win.c branches/import/dbus/dbus-transport-win.h branches/import/test/data/invalid-service-files-system/org.freedesktop.DBus.TestSuiteNoExec.service.in branches/import/test/data/invalid-service-files-system/org.freedesktop.DBus.TestSuiteNoService.service.in branches/import/test/data/invalid-service-files-system/org.freedesktop.DBus.TestSuiteNoUser.service.in branches/import/test/data/valid-config-files-system/debug-allow-all-fail.conf.in branches/import/test/data/valid-config-files-system/debug-allow-all-pass.conf.in branches/import/test/data/valid-service-files/org.freedesktop.DBus.TestSuiteEchoService.service.in branches/import/test/data/valid-service-files/org.freedesktop.DBus.TestSuiteSegfaultService.service.in branches/import/test/data/valid-service-files/org.freedesktop.DBus.TestSuiteShellEchoServiceFail.service.in branches/import/test/data/valid-service-files/org.freedesktop.DBus.TestSuiteShellEchoServiceSuccess.service.in branches/import/test/data/valid-service-files-system/org.freedesktop.DBus.TestSuiteEchoService.service.in branches/import/test/data/valid-service-files-system/org.freedesktop.DBus.TestSuiteSegfaultService.service.in branches/import/test/data/valid-service-files-system/org.freedesktop.DBus.TestSuiteShellEchoServiceFail.service.in branches/import/test/data/valid-service-files-system/org.freedesktop.DBus.TestSuiteShellEchoServiceSuccess.service.in branches/import/test/name-test/run-test.sh branches/import/test/name-test/test-ids.c branches/import/tools/dbus-launch-win.c branches/import/tools/run-with-tmp-session-bus.sh Modified: branches/import/ChangeLog =================================================================== --- branches/import/ChangeLog 2008-07-25 11:40:38 UTC (rev 787) +++ branches/import/ChangeLog 2008-08-12 11:46:15 UTC (rev 788) @@ -1,2027 +1,5 @@ -2008-04-04 John (J5) Palmieri <jo...@re...> +2008-04-16 John (J5) Palmieri <jo...@re...> - * Released 1.2.1 - -2008-04-03 John (J5) Palmieri <jo...@re...> - - Patch from Sumit <sum...@ya...>, comments added - - * dbus/dbus-transport.c(_dbus_transport_open): fix mem leak - -2008-04-03 John (J5) Palmieri <jo...@re...> - - * dbus/dbus-connection.c (dbus_connection_send): add documentation - to describe when to call dbus_connection_flush and - dbus_connection_unref after a call to dbus_connection_send is made - Initial wording by Stanislav Brabec <sbrabec at suse.cz> - (fd.o bug#13558) - -2008-04-03 John (J5) Palmieri <jo...@re...> - - Patch from Kimmo Hämäläinen <kimmo.hamalainen at nokia.com> - - * bus/expirelist.c - (do_expiration_with_current_time): calculate correct min wait time - and next interval - (bus_expire_list_add, bus_expire_list_add_link): if the timeout is - disabled when we add an item to the expire list, enable the timeout - (do_expiration_with_current_time): only set timeout if there are - items to expire - -2008-04-01 Timo Hoenig <th...@su...> - - Patch from Frederic Crozat <fc...@ma...> - - * bus/dir-watch-inotify.c (bus_watch_directory): Only monitor - IN_CLOSE_WRITE, IN_DELETE, IN_MOVE_TO and IN_MOVE_FROM events. This - way, only atomic changes to configuration file are monitored. - * bus/dir-watch-inotify.c (_handle_inotify_watch): Fix typo in - _dbus_verbose function call - * bus/dir-watch-inotify.c (bus_drop_all_directory_watches): Use - _dbus_strerror instead of perror - -2008-03-04 Havoc Pennington <hp...@re...> - - * bus/connection.c, bus/expirelist.c: Make the BusExpireList - struct opaque, adding accessors for manipulating the list. In this - commit there should be no change in functionality or behavior. The - purpose of this change is to improve encapsulation prior to fixing - some bugs Kimmo Hämäläinen found where the timeout is not properly - updated, since we need to e.g. take some action whenever adding - and removing stuff from the expire list. - -2008-03-31 Colin Walters <wa...@ve...> - - Patch from Owen Taylor <ot...@re...> - - * tools/dbus-launch-x11.c: Check for X11 events before - selecting (FDO bug #15293) - -2008-03-31 Colin Walters <wa...@ve...> - - Patch from Owen Taylor <ot...@re...> - - * tools/dbus-launch-x11.c: Make sure we call XFlush() - on all code paths (FDO bug #15293) - -2008-03-27 Havoc Pennington <hp...@re...> - - * tools/dbus-send.c (append_dict): Do not provide a signature to - dbus_message_iter_open_container() when opening a dict entry. - -2008-03-26 Colin Walters <wa...@ve...> - - Patch from Scott James Remnant <sc...@ne...> - - * dbus/dbus-bus.c: Set default exit_on_disconnect after registration with - the bus, not before. This ensures that programs which wish to set - exit_on_disconnect to FALSE will not be terminated if the bus exits - during registration. (FDO Bug #15112) - -2008-03-04 John (J5) Palmieri <jo...@re...> - - * fix broken poll on Mac OSX - build patch by Benjamin Reed - * configure.in: check for OSX's deadlocking poll - * dbus/dbus-sysdeps-unix.c (_dbus_poll): if we have a broken poll - don't use poll - -2008-03-04 John (J5) Palmieri <jo...@re...> - - * check if the linker supports a flag instead of just checking for GNU - ld - * configure.in: move AM_PROG_LIBTOOL to the top - (ld_supports_flag): new function for checking if the linker supports - a given flag - -2008-03-04 John (J5) Palmieri <jo...@re...> - - * add a changelog for Benjamin Reed's git patch RANT: Change Logs are - handled by git and having an external changelog just screws up - merging. We should write down rules for doing git commit messages - and leave it at that. - * configure.in: Platform build fixes for Mac OS X - the Darwin linker does not understand the -z option; wrap it in - a check for $with_gnu_ld. - environ is only available at runtime, so you need to make a - reference to _NSGetEnviron instead for symbols to resolve properly. - -2008-03-04 John (J5) Palmieri <jo...@re...> - - * configure.in: add $THREAD_LIBS to DBUS_LAUNCHER_LIBS so we link - correctly - -2008-03-04 John (J5) Palmieri <jo...@re...> - - * tools/dbus-launch.c: wrap X'ism in #ifdef so we can compile - without X - -2008-02-28 John (J5) Palmieri <jo...@re...> - - * dbus/dbus-sysdeps-unix.c: define _AI_ADDRCONFIG as 0 if not - defined so that we can compile with an older glibc - -2008-02-26 John (J5) Palmieri <jo...@re...> - - * Released 1.1.20 - -2008-02-26 John (J5) Palmieri <jo...@re...> - - * CVE-2008-0595 - security policy of the type <allow send_interface= - "some.interface.WithMethods"/> work as an implicit allow for - messages sent without an interface bypassing the default deny rules - and potentially allowing restricted methods exported on the bus to be - executed by unauthorized users. This patch fixes the issue. - * bus/policy.c (bus_client_policy_check_can_send, - bus_client_policy_check_can_receive): skip messages without an - interface when evaluating an allow rule, and thus pass it to the - default deny rules - -2008-02-26 John (J5) Palmieri <jo...@re...> - - * correctly unref connections without guids during shutdown - * dbus/dbus-connection.c (close_connection_on_shutdown): new method - split out from shared_connections_shutdown - (shared_connections_shutdown): shutdown all shared connections - without guids - (_dbus_connection_ref_unlocked): handle OOM when prepending no guid - connections to the shared_connections_no_guid list - * Patch by Kimmo Hämäläinen <kimmo dot hamalainen at nokia dot com> - -2008-02-21 John (J5) Palmieri <jo...@re...> - - * fix build against the latest gcc/glibc - * dbus/dbus-sysdeps-unix.c: define _GNU_SOURCE - * bus/selinux.c: include limits.h - * Patch by Matthias Clasen <mclasen at redhat.com> - -2008-02-21 John (J5) Palmieri <jo...@re...> - - * fixes dbus-launch so the bus goes away when X does - (Red Hat Bug #430412) - * tools/dbus-launch.c (main): set xdisplay = NULL - * Patch by Matthias Clasen <mclasen at redhat.com> - -2008-01-17 John (J5) Palmieri <jo...@re...> - - * Released 1.1.4 - -2008-01-17 Timo Hoenig <th...@su...> - * fix inotify support - * bus/dir-watch-inotify.c (_handle_inotify_watch): fix reading of the - inotify events. Also, use ssize_t not size_t for 'ret'. - * bus/dir-watch-inotify.c (bus_watch_directory): watch not only for - IN_MODIFY but also for IN_CREATE and IN_DELETE - * bus/dir-watch-inotify.c (bus_drop_all_directory_watches): drop the - inotify watches more elegantly by closing inotify:_fd, set inotify_fd to - -1 after dropping the watches - -2008-01-15 John (J5) Palmieri <jo...@re...> - - * configure.in: post-release version bump - -2008-01-15 John (J5) Palmieri <jo...@re...> - - * Released 1.1.3 (1.2.0RC1) - -2008-01-15 John (J5) Palmieri <jo...@re...> - - * fix hacking to say git instead of cvs - -2008-01-15 John (J5) Palmieri <jo...@re...> - - * patch by Sébastien Couret <10function at gmail dot com> - - * dbus/dbus-marshal-recursive.c (all_reader_classes[]): wrap in - #ifndef DBUS_DISABLE_ASSERT since it is only used in asserts which - are noop - -2008-01-15 John (J5) Palmieri <jo...@re...> - - * patch by Magnus Henoch <henoch plus bfdo at dtek dot chalmers dot se> - - * dbus/dbus-auth.c (handle_server_data_external_mech): handle SASL - EXTERNAL's inital empty responce (FDO Bug #9945) - -2008-01-15 John (J5) Palmieri <jo...@re...> - - * bus/messagebus.in: add lsb headers (FDO Bug #11491) - -2008-01-15 John (J5) Palmieri <jo...@re...> - - * patch by Peter O'Gorman <pogma at thewrittenword dot com> - - * dbus/dbus-spawn.c (babysit_signal_handler): check write return value - so we don't hang (FDO Bug #11665) - -2008-01-15 John (J5) Palmieri <jo...@re...> - - * patch by Peter O'Gorman <pogma at thewrittenword dot com> - - * dbus/dbus-sysdeps.h: support for AIX poll implementation (FDO Bug - #11666) - -2008-01-15 John (J5) Palmieri <jo...@re...> - - * tests/name-test/run-test.sh: make more portable (FDO Bug #11667) - -2008-01-15 John (J5) Palmieri <jo...@re...> - - * patch by Kimmo Hämäläinen <kimmo dot hamalainen at nokia dot com> - - * dbus/dbus-connection.c (_dbus_connection_get_next_client_serial): - don't check for < 0 on an unsigned variable (FDO Bug #12924) - -2008-01-15 John (J5) Palmieri <jo...@re...> - - * patch by Kimmo Hämäläinen <kimmo dot hamalainen at nokia dot com> - - * bus/bus.c (setup_server): check failed allocation (FDO Bug #12920) - -2008-01-15 John (J5) Palmieri <jo...@re...> - - * patch by Kimmo Hämäläinen <kimmo dot hamalainen at nokia dot com> - - * dbus/dbus-spawn.c (_dbus_spawn_async_with_babysitter): the API - contract says sitter_p can be NULL, so let's check it (FDO Bug #12919) - -2008-01-15 John (J5) Palmieri <jo...@re...> - - * patch by Kimmo Hämäläinen <kimmo dot hamalainen at nokia dot com> - - * dbus/dbus-spawn.c (read_ints, read_pid): use correct ssize_t type - instead of size_t (FDO Bug #12862) - -2008-01-15 John (J5) Palmieri <jo...@re...> - - * patch by Kimmo Hämäläinen <kimmo dot hamalainen at nokia dot com> - - * dbus/dbus-errors.c (dbus_set_error): make sure to call va_end if we - hit an OOM error inside va_start (FDO Bug #12846) - -2008-01-15 John (J5) Palmieri <jo...@re...> - - * patch by Kimmo Hämäläinen <kimmo dot hamalainen at nokia dot com> - - * dbus/dbus-connection.c (dbus_connection_send_with_reply): - fix possible crash if pending_return is NULL (FDO Bug #12673) - -2008-01-15 John (J5) Palmieri <jo...@re...> - - * portions of patch submitted by Tim Mooney - <enchanter at users dot sourceforge dot net> - - * configure.in: never auto-select libxml (FDO Bug #12479) - -2008-01-15 John (J5) Palmieri <jo...@re...> - - * patches by Kimmo Hämäläinen <kimmo dot hamalainen at nokia dot com> - - * dbus/dbus-sysdeps-unix (_dbus_get_autolaunch_address): handle OOM - (FDO Bug #12945) - - * dbus/dbus-uuidgen.c (return_uuid): handle OOM (FDO Bug #12928) - - * dbus/dbus-misc.c (dbus_get_local_machine_id): handle OOM, fix return - value to return NULL not FALSE (FDO Bug #12946) - -2008-01-15 John (J5) Palmieri <jo...@re...> - - * bus/bus.c (bus_context_check_security_policy): rewrite selinux error - handling to not abort due to a NULL read and to set the error only if - it is not already set (Based off of FDO Bug #12430) - -2008-01-15 John (J5) Palmieri <jo...@re...> - - * patch by Kimmo Hämäläinen <kimmo dot hamalainen at nokia dot com> - - * dbus/dbus-internals.c (_dbus_read_uuid_file_without_creating, - _dbus_create_uuid_file_exclusively): add OOM handling (FDO Bug #12952) - -2008-01-15 John (J5) Palmieri <jo...@re...> - - * patch by Kimmo Hämäläinen <kimmo dot hamalainen at nokia dot com> - - * dbus/dbus-spawn.c (babysit, babysitter_iteration): add error - handling when polling (FDO Bug #12954) - -2008-01-15 John (J5) Palmieri <jo...@re...> - - * patch by Kimmo Hämäläinen <kimmo dot hamalainen at nokia dot com> - - * bus/config-parser.c (locate_attributes): remove dead code which - always evaluated to TRUE - - * dbus/dbus-shell.c (_dbus_shell_quote): remove unused code - -2008-01-14 John (J5) Palmieri <jo...@re...> - - * patch by Kimmo Hämäläinen <kimmo dot hamalainen at nokia dot com> - - * bus/connection.c (bus_connection_complete): plug a possible - BusClientPolicy leak (FDO Bug #13242) - -2008-01-14 John (J5) Palmieri <jo...@re...> - - * patch by Frederic Crozat <fcrozat at mandriva dot com> (FDO Bz# - 13268) - - * add inotify support - - * bus/Makefile.am: add inotify module to the build - - * bus/dir-watch-inotify.c: inotify module based off the dnotify and - kqueue modules - - * configure.in: add checks and switch for inotify - also add a printout at the end of configure if inotify and kqueue - support is being built in (dnotify already had this) - -2008-01-14 John (J5) Palmieri <jo...@re...> - - * patch by Frederic Crozat <fcrozat at mandriva dot com> - - * bus/dir-watch-dnotify.c (bus_watch_directory): watch for file - creates also - -2008-01-14 John (J5) Palmieri <jo...@re...> - - * patch by Kimmo Hämäläinen <kimmo dot hamalainen at nokia dot com> - - * dbus/dbus-transport-socket.c(do_reading): return message - loader buffer in case of OOM (FDO Bug#12666) - -2008-01-14 John (J5) Palmieri <jo...@re...> - - * configure.in: add warning to output when libxml is selected since - we don't have a libxml maintainer and expat works perfectly fine - for what we need an xml parser for - -2008-01-14 John (J5) Palmieri <jo...@re...> - - * Patch by Andrea Luzzardi <scox at sig11 dot org>: creates a - _dbus_geteuid function to fix EXTERNAL authentication in setuid - applications - - * dbus/dbus-sysdeps-unix.c (_dbus_geteuid): used to get the effective - uid of the running program - (_dbus_credentials_add_from_current_process): use geteuid instead of - getuid - (_dbus_append_user_from_current_process): use geteuid instead of - getuid - - * dbus/dbus-sysdeps-util-unix.c (_dbus_change_to_daemon_user): use - geteuid instead of getuid - (_dbus_unix_user_is_at_console): use geteuid instead of getuid - - * dbus/dbus-sysdeps-win.c (_dbus_geteuid): add a windows equivilant - that returns DBUS_UID_UNSET - -2007-12-18 Havoc Pennington <hp...@re...> - - * dbus/dbus-connection.c (_dbus_connection_block_pending_call): - fix location of curly braces - -2007-11-23 Sjoerd Simons <sj...@lu...> - - * tools/dbus-launch.c: let both a normal dbus-launch and an - autolaunched bus save their parameters in X11 if possible. This makes - the autolaunch and non-autolaunch behaviour more similar. With the - exception that on a normal launch there will always be a new session - bus and not being able to save parameters is not fatal. This also - enables to launch programs directly with autolaunch (not very usefull - though). - -2007-10-31 Havoc Pennington <hp...@re...> - - * bus/selinux.c (log_audit_callback): rewrite to use - _dbus_string_copy_to_buffer_with_nul() - - * dbus/dbus-string.c (_dbus_string_copy_to_buffer): change to NOT - nul-terminate the buffer; fail an assertion if there is not enough - space in the target buffer. This fixes two bugs where - copy_to_buffer was used to copy the binary bytes in a UUID, where - nul termination did not make sense. Bug reported by David Castelow. - (_dbus_string_copy_to_buffer_with_nul): new function that always - nul-terminates the buffer, and fails an assertion if there is not - enough space in the buffer. - -2007-10-23 Havoc Pennington <hp...@re...> - - * bus/bus.c (bus_context_new): use the new name here - - * bus/selinux.c (bus_selinux_audit_init): rename from audit_init() - to avoid possible libc conflict, and declare it in .h file to - avoid a warning - -2007-10-19 Havoc Pennington <hp...@re...> - - * bus/bus.c (bus_context_new): put audit_init() in HAVE_SELINUX - -2007-10-19 Havoc Pennington <hp...@re...> - - * bus/bus.c (bus_context_new): put the audit_init() in here - instead, which I believe ends up being the same as where it was - before, though I'm not sure I understand why it goes here. - - * dbus/dbus-sysdeps-util-unix.c (_dbus_change_to_daemon_user): - remove audit_init() from here, this file can't depend on code in - bus/ directory - -2007-10-16 Simon McVittie <sim...@co...> - - * configure.in: *Actually* fix detection of i486 atomic ops - - my previous attempt at a fix would always enable them due to wrong - quoting. Patch from Colin Walters <wa...@ve...> - -2007-10-11 Simon McVittie <sim...@co...> - - * configure.in: enable Autoconf's AC_C_INLINE to avoid compilation - failure with gcc -ansi - * dbus/dbus-macros.h, dbus/dbus-arch-deps.h.in: Use new macro - _DBUS_GNUC_EXTENSION (the same as G_GNUC_EXTENSION) to avoid -ansi - warnings about use of "long long". - * dbus/dbus-server-socket.c: remove unused variable when assertions - are disabled - * dbus/dbus-marshal-validate.c: avoid empty statements by removing - stray semicolons - * tools/dbus-launch.c: convert C++-style comment to C-style, add {} - for clarity - * .gitignore: ignore vi swapfiles - * dbus/dbus-errors.h, dbus/dbus-errors.c: Add DBUS_ERROR_INIT macro, - equivalent to calling dbus_error_init() on an uninitialized DBusError - * dbus/dbus-address.c, dbus/dbus-auth-script.c, dbus/dbus-auth-util.c, - dbus/dbus-connection.c, dbus/dbus-internals.c, dbus/dbus-keyring.c, - dbus/dbus-message-util.c, dbus/dbus-server.c, dbus/dbus-sha.c, - dbus/dbus-spawn-win.c, dbus/dbus-spawn.c, - dbus/dbus-sysdeps-util-win.c, dbus/dbus-transport-socket.c, - dbus/dbus-transport.c, dbus/dbus-userdb.c: use that macro instead of - calling dbus_error_init() where it's clearly equivalent - * configure.in, dbus/dbus-sysdeps.h, dbus/dbus-sysdeps-unix.c: Fix - detection of i486 atomic ops. Previously, the attempts to determine - support at compile-time on Darwin were causing the i486 atomic ops to - be used on *all* i386 or x86-64 GCC builds (AH_VERBATIM can't be - conditionalized like we were trying to). - -2007-10-10 Simon McVittie <sim...@co...> - - * dbus/dbus-errors.c, dbus/dbus-protocol.h: Add new error - org.freedesktop.DBus.Error.ObjectPathInUse - * dbus/dbus-object-tree.h, dbus/dbus-object-tree.c, - dbus/dbus-connection.c, dbus/dbus-connection.h: add new functions - dbus_connection_try_register_object_path and - dbus_connection_try_register_fallback, which raise ObjectPathInUse - rather than asserting, to make object path registration less painful - for bindings - * .gitignore: add various things that weren't in .cvsignore because - CVS implicitly ignored them; generally bring up to date - -2007-10-09 John (J5) Palmieri <jo...@re...> - - * tools/run-with-tmp-session-bus.sh: Fix env exports for better - portability (#9280) - * tools/dbus-send.1: Document syntax for container types in dbus-send - man file (#9553) - patch from Jack Spaar <jspaar at - users.sourceforge.net> - - [Both OK for MIT/X11 relicensing -smcv] - -2007-10-09 Simon McVittie <sim...@co...> - - * doc/dbus-specification.xml: Specifically forbid empty structs (#7969) - * doc/dbus-specification.xml: Patches from Kristoffer Lundén to clarify - description of DBUS_COOKIE_SHA1 (#10184) and allowable contents of a - variant (#10185, amended as per Havoc's comments) - - [All of the above are OK for MIT/X11 licensing] - -2007-10-03 John (J5) Palmieri <jo...@re...> - - * dbus/dbus-internals.h: fd.o bug #11678 Don't error out if compiler - does not support vararg macros. _dbus_verbose is the only function - that does this so make it a noop if vararg macros are not supported - * bus/selinux.c, dbus/dbus-sysdeps-util-unix.c: fd.o bug #12429 - Reverse check to setpcap and only init audit if we were root - (patch by Dan Walsh <dw...@re...>, - https://bugs.freedesktop.org/show_bug.cgi?id=12429). Reverse - we_were_root check to setpcap if we were root. Also only init audit - if we were root. So error dbus message will not show up when policy - reload happens. dbus -session will no longer try to send audit - message, only system will. - * configure.in: fd.o bug #11872 improve linker test for --gc-sections. - Patch by Tim Mooney <enchanter at users.sourceforge.net> - * configure.in, dbus/dbus-sysdeps.c: fd.o bug #11872 fix clearenv for - systems that do not have it. Patch from Brian Cameron <brian.cameron - at sun.com> - * tools/dbus-launch.c: fd.o bug #12547 remove superfluous if. - Also convert tabs to spaces - * configure.in, bus/Makefile.am, dbus/Makefile.am: Correctly implement - -fPIC and -fPIE. For security reasons we want possition independent - code for libraries and possition independent executable for - executables. Before we were just enabling -fPIC. Now we correctly - enable -fPIC and -PIE for libdbus and the bus respectively. Proper - LD_FLAGS are set for each also. - -2007-09-20 Ryan Lortie <de...@de...> - - Add argument path matching support. Bug #11066. - - * dbus/signals.c (struct DBusMatchRule, bus_match_rule_new, - bus_match_rule_set_arg, bus_match_rule_parse_arg_match, - match_rule_matches): Add support for parsing and matching on - arg0path='/some/path' type rules. - - * dbus/signals.h (bus_match_rule_set_arg): change to take const - DBusString instead of const char * for the string to match against. - - * dbus/dbus-bus.c: add a quick note to dbus_bus_add_match - documentation about the path matching. - - * doc/dbus-specification.xml: add a more detailed description of the - changes here. - -2007-09-19 Ryan Lortie <de...@de...> - - Add support for compacting DBusStrings to release wasted memory. - - * dbus/dbus-string.[ch] (compact, _dbus_string_compact, - _dbus_string_lock): new compact function to free up allocated memory - that is no longer used. - - * dbus/dbus-message.c (load_message): call _dbus_string_compact on the - message loader buffer. - - * dbus/dbus-transport-socket.c (do_reading, do_writing): call - _dbus_string_compact on the incoming/outgoing "encoded" buffers. - - * dbus/dbus-string-util.c (_dbus_string_test): add a few tests for - string compacting. - -2007-09-13 Ryan Lortie <de...@de...> - - * HACKING: add more explicit git branch/tag instructions - -2007-09-13 Ryan Lortie <de...@de...> - - migrate from cvs to git (cvs2svn -> git-svnimport). - - * HACKING: update release/branch/tag instructions - * */.cvsignore: rename to .gitignore - - also, clean up tags and branch names to conform to HACKING - -2007-08-17 William Jon McCann <mc...@jh...> - - * update-dbus-docs.sh: upload DTD to server - -2007-08-17 Havoc Pennington <hp...@re...> - - * tools/dbus-launch-x11.c (set_address_in_x11): fix from Michael - Lorenz to use long not int with XChangeProperty format 32 - - * dbus/dbus-sysdeps-util-unix.c - (_dbus_write_pid_to_file_and_pipe): factor this out, and use the - same code in _dbus_become_daemon (where the parent writes the pid - file and to the pid pipe) and in bus_context_new (where the daemon - writes its own pid file and to its own pid pipe) - - * bus/bus.c (bus_context_new): close the pid pipe after we print - to it. Also, don't write the pid to the pipe twice when we fork, - someone reported this bug a long time ago. - -2007-08-03 Havoc Pennington <hp...@re...> - - * configure.in: add major/minor/micro version number AC_SUBST - - * dbus/dbus-arch-deps.h.in (DBUS_MAJOR_VERSION, - DBUS_MINOR_VERSION, DBUS_MICRO_VERSION, DBUS_VERSION_STRING, - DBUS_VERSION): collection of macros to get version of library we - are compiled against. - - * dbus/dbus-misc.c (dbus_get_version): new function, to get - version of library we are linked against at runtime. - -2007-07-30 Havoc Pennington <hp...@re...> - - * bus/activation-helper.c (check_bus_name): don't use - _dbus_check_valid_bus_name() which is only around with - --enable-checks, instead use _dbus_validate_bus_name(). - Bug #11766 from Diego <di...@pe...> - -2007-07-27 Havoc Pennington <hp...@re...> - - * configure.in: post-release version bump - -2007-07-27 Havoc Pennington <hp...@re...> - - * release 1.1.2 - -2007-07-26 Havoc Pennington <hp...@re...> - - * bus/config-parser-trivial.c (check_return_values): disable a - test that hardcoded the bus user's name - - * bus/dispatch.c (bus_dispatch_test_conf): remove the "if - (!use_launcher)" around the tests, they were only failing because - we didn't pass through all the expected errors from the helper. - - * bus/activation-exit-codes.h - (BUS_SPAWN_EXIT_CODE_CHILD_SIGNALED): add a code for child segfaulting - (BUS_SPAWN_EXIT_CODE_GENERIC_FAILURE): make "1" be a generic - failure code, so if a third party launch helper were written it - could just always return 1 on failure. - -2007-07-24 Daniel P. Berrange <da...@be...> - - * bus/dbus-daemon.1: Add docs on new syntax options for the bus - address strings - - * dbus/dbus-address.c: Allow * in addresses (for binding to all - addresses). - - * dbus/dbus-sysdeps.h: - * dbus/dbus-sysdeps-unix.c: Re-write to use getaddrinfo instead - of gethostbyname to enable protocol independant name lookup, - making IPv6 work - - * dbus/dbus-server-socket.h: - * dbus/dbus-server-socket.c: Add support for 'family' in the - address string to specify ipv4 vs ipv6. Use a port string to - allow for service resolution. Allow for binding to multiple - sockets at once in case of dual IPv4 & IPv6 stacks. - - * dbus/dbus-server-unix.c: Pass in an array of file descriptors - instead of a single one. - - * dbus/dbus-transport-socket.h: - * dbus/dbus-transport-socket.c: Add support for 'family' in the - address string to specify ipv4 vs ipv6. Use a port string to - allow for service resolution. - -2007-07-24 Havoc Pennington <hp...@re...> - - * configure.in: add AM_PROG_CC_C_O to allow per-target CPPFLAGS - - * bus/dispatch.c (bus_dispatch_test_conf): Fix up setting - TEST_LAUNCH_HELPER_CONFIG to include the full path, and enable - test shell_fail_service_auto_start when use_launcher==TRUE - - * bus/activation-helper-bin.c (convert_error_to_exit_code): pass - through the INVALID_ARGS error so the test suite works - - * bus/activation.c (handle_activation_exit_error): return - DBUS_ERROR_NO_MEMORY if we get BUS_SPAWN_EXIT_CODE_NO_MEMORY - - * dbus/dbus-spawn.c (_dbus_babysitter_get_child_exit_status): - return only the exit code of the child, not the entire thingy from - waitpid(), and make the return value indicate whether the child - exited normally (with a status code) - - * bus/bus.c (process_config_first_time_only): _dbus_strdup works - on NULL so no need to check - (process_config_every_time): move servicehelper init here, so we - reload it on HUP or config file change - - * bus/Makefile.am (install-data-hook): remove comment because - Emacs make mode seems to be grumpy about it - -2007-07-24 Richard Hughes <ri...@hu...> - - * bus/Makefile.am: - * bus/test-system.c: (die), (check_memleaks), (test_pre_hook), - (test_post_hook), (main): - Add back the test-system.c file - not sure now this got ignored in the - diff. I blame git. - -2007-07-24 Richard Hughes <ri...@hu...> - - * configure.in: - Use ustar to generate the tarball; this fixes the make distcheck - problem when the data files do not fit in the archive: - tar: dbus-1.1.2/test/data/valid-service-files/org.freedesktop.DBus. - TestSuiteShellEchoServiceFail.service.in: file name is too - long (max 99); not dumped - - We have to have the 'long' names as the service helper matches by - filename rather than by the name in the service file. - -2007-07-24 Richard Hughes <ri...@hu...> - - * configure.in: - * test/Makefile.am: - * test/data/invalid-service-files-system/org.freedesktop.DBus.TestS - uiteNoExec.service.in: - * test/data/invalid-service-files-system/org.freedesktop.DBus.TestS - uiteNoService.service.in: - * test/data/invalid-service-files-system/org.freedesktop.DBus.TestS - uiteNoUser.service.in: - * test/data/valid-config-files-system/debug-allow-all-fail.conf.in: - * test/data/valid-config-files-system/debug-allow-all-pass.conf.in: - * test/data/valid-config-files/debug-allow-all-sha1.conf.in: - * test/data/valid-config-files/debug-allow-all.conf.in: - * test/data/valid-service-files-system/org.freedesktop.DBus.TestSui - teEchoService.service.in: - * test/data/valid-service-files-system/org.freedesktop.DBus.TestSui - teSegfaultService.service.in: - * test/data/valid-service-files-system/org.freedesktop.DBus.TestSui - teShellEchoServiceFail.service.in: - * test/data/valid-service-files-system/org.freedesktop.DBus.TestSui - teShellEchoServiceSuccess.service.in: - * test/data/valid-service-files/debug-echo.service.in: - * test/data/valid-service-files/debug-segfault.service.in: - * test/data/valid-service-files/debug-shell-echo-fail.service.in: - * test/data/valid-service-files/debug-shell-echo-success.service.in: - * test/data/valid-service-files/org.freedesktop.DBus.TestSuiteEchoS - ervice.service.in: - * test/data/valid-service-files/org.freedesktop.DBus.TestSuiteSegfa - ultService.service.in: - * test/data/valid-service-files/org.freedesktop.DBus.TestSuiteShell - EchoServiceFail.service.in: - * test/data/valid-service-files/org.freedesktop.DBus.TestSuiteShell - EchoServiceSuccess.service.in: - Add the data files needed by the system activation unit checks. - -2007-07-24 Richard Hughes <ri...@hu...> - - * bus/dispatch.c: (check_segfault_service_no_auto_start), - (check_launch_service_file_missing), - (check_launch_service_user_missing), - (check_launch_service_exec_missing), - (check_launch_service_service_missing), (bus_dispatch_test_conf), - (bus_dispatch_test_conf_fail), (bus_dispatch_test): - Add unit tests for system activation. Most are copied from the - session activation tests, but some didn't apply when using a laucher. - -2007-07-24 Richard Hughes <ri...@hu...> - - * bus/activation.c: (bus_activation_activate_service): - If the bus uses a service-laucher, then use the setuid laucher. - -2007-07-24 Richard Hughes <ri...@hu...> - - * configure.in: - Add the needed library exports for the new laucher. - -2007-07-24 Richard Hughes <ri...@hu...> - - * configure.in: - Check for -Wl,--gc-sections so we can really reduce the size of the - setuid binary. - -2007-07-24 Richard Hughes <ri...@hu...> - - * bus/activation.c: (handle_activation_exit_error), - (babysitter_watch_callback): - Map the child exit status integer to a proper dbus error. - -2007-07-24 Richard Hughes <ri...@hu...> - - * bus/bus.c: (process_config_first_time_only), - (process_config_every_time), (bus_context_unref), - (bus_context_get_servicehelper): - * bus/bus.h: - Add the concept of a service-helper and allow it's value to be read. - -2007-07-24 Richard Hughes <ri...@hu...> - - * bus/activation.c: (bus_activation_entry_unref), - (update_desktop_file_entry): - Add the concept of, and read the value of user from the desktop file. - The user string is not required unless we are using system activation. - -2007-07-24 Richard Hughes <ri...@hu...> - - * bus/activation.c: - * bus/desktop-file.h: - Move the defines into the header file, as we use these in the lauch - helper as well as the desktop file parsing. - -2007-07-24 Richard Hughes <ri...@hu...> - - * bus/.cvsignore: - Add the autogenerated binary files. - -2007-07-24 Richard Hughes <ri...@hu...> - - * bus/Makefile.am: - * bus/test.h: - Add the build glue for the lauch helper, and also add the launch-helper - OOM checks into make check. I've probably broken the build, give me 2. - -2007-07-24 Richard Hughes <ri...@hu...> - - * bus/test-launch-helper.c: (die), (check_memleaks), - (test_post_hook), (bus_activation_helper_oom_test), (main): - Add a test wrapper to allow OOM checks on the launch helper. - -2007-07-24 Richard Hughes <ri...@hu...> - - * bus/activation-helper-bin.c: (convert_error_to_exit_code), - (main): - * bus/activation-helper.c: (desktop_file_for_name), - (clear_environment), (check_permissions), (check_service_name), - (get_parameters_for_service), (switch_user), - (exec_for_correct_user), (check_bus_name), (get_correct_parser), - (launch_bus_name), (check_dbus_user), (run_launch_helper): - * bus/activation-helper.h: - Add the initial launch-helper. This is split into a main section and a - binary loader that allows us to lauch the main section in another test - harness to do stuff like OOM testing. No build glue yet. - -2007-07-24 Richard Hughes <ri...@hu...> - - * bus/Makefile.am: - * bus/config-parser.c: (bus_config_parser_unref), - (start_busconfig_child), (bus_config_parser_end_element), - (servicehelper_path), (bus_config_parser_content), - (bus_config_parser_finished), - (bus_config_parser_get_servicehelper), - (test_default_session_servicedirs), - (test_default_system_servicedirs), (bus_config_parser_test): - * bus/config-parser.h: - Make the config-parser code use the common config code. - Also add the session and systemdirs stuff, and make the config parser - aware of the servicehelper field. - -2007-07-24 Richard Hughes <ri...@hu...> - - * bus/system.conf.in: - Add new servicehelper fields to the default system.conf file. - -2007-07-24 Richard Hughes <ri...@hu...> - - * bus/config-parser-trivial.c: (service_dirs_find_dir), - (service_dirs_append_link_unique_or_free), (bus_config_parser_new), - (bus_config_parser_unref), (bus_config_parser_start_element), - (bus_config_parser_end_element), (bus_config_parser_content), - (bus_config_parser_finished), (bus_config_parser_get_user), - (bus_config_parser_get_type), (bus_config_parser_get_service_dirs), - (check_return_values), (do_load), (check_loader_oom_func), - (process_test_valid_subdir), (make_full_path), (check_file_valid), - (bus_config_parser_trivial_test): - * bus/config-parser-trivial.h: - Add a security sensitive stripped down config parser for the setuid - launcher. This file only reads what it needs, and doesn't try to do - anything remotely clever like including external files. - It is not intended to validate the config file; it is expected that - config-parser will do that before the setuid program tries to read it. - -2007-07-24 Richard Hughes <ri...@hu...> - - * bus/config-parser-common.c: - (bus_config_parser_element_name_to_type), - (bus_config_parser_element_type_to_name): - * bus/config-parser-common.h: - We don't want to run the whole config parser with all it's deps in the - setuid program. We need to implement a stripped down config parser just - for the launcher, and to do so I need some common functions and - defines; add them here. - -2007-07-24 Richard Hughes <ri...@hu...> - - * dbus/dbus-sysdeps-unix.c: - (_dbus_get_standard_system_servicedirs): - * dbus/dbus-sysdeps-win.c: - Provide a way to get the standard system servicedirs, just like we do - for the session service dirs. These should be seporate, as there may - be a security issue starting up some session stuff as root. - The use-case for the same binary starting up per-system _and_ - per-session is also not valid. - -2007-07-24 Richard Hughes <ri...@hu...> - - * bus/dbus-daemon.1.in: - Add standard_system_servicedirs and servicehelper into the man file - and explain what each does. - -2007-07-24 Richard Hughes <ri...@hu...> - - * doc/busconfig.dtd: - Add servicehelper into the dtd, it will soon be a valid part of the - config file. - -2007-07-24 Richard Hughes <ri...@hu...> - - * dbus/dbus-spawn.c: (read_data), - (_dbus_babysitter_get_child_exit_status): - * dbus/dbus-spawn.h: - Add a function so we can get access to the exit status of the launch - helper. - By providing the return code and not the error we can leave the - 'what does this mean?' to the bus launch code and not include it in the - dbus directory. - -2007-07-24 Richard Hughes <ri...@hu...> - - * bus/activation-exit-codes.h: - Add defines which specify the output codes of the launch helper. - We have to use exit codes as this is the only way we can return failure - type without going grotty things like redirecting possibly-nonsecure - stderr into the error. - -2007-07-24 Richard Hughes <ri...@hu...> - - * dbus/dbus-protocol.h: - Add new error names needed for the launch helper. - -2007-07-24 Richard Hughes <ri...@hu...> - - * dbus/dbus-sysdeps.c: (_dbus_clearenv): - * dbus/dbus-sysdeps.h: - Add a wrapper for clearenv. - -2007-07-24 Richard Hughes <ri...@hu...> - - * doc/system-activation.txt: - Add design document for the system activation parts. I'll shortly be - committing many patches that add system activation using a setuid - launcher into CVS, so expect things to be broken for a few hours. - -2007-07-19 Ralf Habacker <ral...@fr...> - - * cmake/modules/FindKDEWIN.cmake: fixed comment - * cmake/modules/FindKDEWIN32.cmake: removed obsolate cmake module - -2007-07-18 Havoc Pennington <hp...@re...> - - * dbus/dbus-message.c (dbus_message_get_cached) - (dbus_message_cache_or_finalize): don't mess with message from - message cache outside of the cache lock. Bug #9164 from Jonathan - Matthew. - -2007-07-13 Havoc Pennington <hp...@re...> - - * Add indent-tabs-mode: nil to all file headers. - -2007-07-12 Havoc Pennington <hp...@re...> - - * dbus/dbus-sysdeps-util.c (_dbus_sysdeps_test): invert the test - for parsing hex as double to be sure it fails to work - - * dbus/dbus-sysdeps.c (_dbus_string_parse_double): don't allow hex numbers. - -2007-07-10 Havoc Pennington <hp...@re...> - - * dbus/dbus-connection.c (struct DBusConnection): Fix from Olivier - Hochreutiner to avoid trying to protect individual bits in a word - with different locks (make dispatch_acquired and io_path_acquired - dbus_bool_t rather than bitfields) - -2007-07-09 Ralf Habacker <ral...@fr...> - - * dbus/dbus-sysdeps-win.c,dbus-sysdeps-win.h,dbus-sysdeps-win-util.c, - dbus-sysdeps-spawn-win.c: synced with windbus sources - -2007-07-07 Ralf Habacker <ral...@fr...> - - * dbus/dbus-sysdeps-win.c - (_dbus_getsid): remove unused jump label - (_dbus_read_credentials_socket): _dbus_string_init could fail, - check initialisation - (_dbus_get_working_dir, _dbus_init_working_dir): remove unused - functions - -2007-07-04 Ralf Habacker <ral...@fr...> - - * cmake/modules/FindKDEWIN.cmake: search in <program files dir>\win32libs - for windows supplementary packages too - -2007-06-30 Ralf Habacker <ral...@fr...> - - * cmake/dbus/CMakeLists.txt: handle userdb as unix file - -2007-06-30 Ralf Habacker <ral...@fr...> - - * dbus/dbus-sysdeps-win.c,dbus/dbus-sysdeps-win.h: removed obsolate - DBusUserInfo code - -2007-06-30 Ralf Habacker <ral...@fr...> - - * dbus/dbus-sysdeps-win.c (_dbus_daemon_init): reduced compiler warnings - -2007-06-23 Ralf Habacker <ral...@fr...> - - * dbus/dbus-auth-script.c (_dbus_auth_script_run): added UNIX_ONLY and - WIN_ONLY commands for auth scripts - * test/data/auth/external-root.auth-script: limit execution to unix - -2007-06-21 Havoc Pennington <hp...@re...> - - * dbus/dbus-tranport.c (auth_via_default_rules): made the verbose spam - cross-platform - -2007-06-21 Havoc Pennington <hp...@re...> - - * dbus/dbus-watch.c (dbus_watch_get_fd): 1) its behavior should - not be the same as before, the ABI has never been declared stable - on Windows and 2) do not commit to cross-platform files without - posting the exact patch to the mailing list - - * dbus/dbus-sysdeps-util.c (_dbus_sysdeps_test): as I have pointed - out before, either 0xff needs to work on both platforms, or none - of the dbus code can rely on it working. That means the options - are 1) audit the code for anywhere that relies on 0xff working, if - none found ideally add a test that it *doesn't* work and make unix - reject it explicitly, but in any case this test would go away or - 2) make it work on Windows also, then we don't have to figure out - whether we rely on it. - - And in either case, post the exact patch to the mailing list and - don't just commit. - -2007-06-21 Ralf Habacker <ral...@fr...> - - * cmake/CMakeLists.txt: added VERSION_PATCH to be able to - distinguish win32 binary release from dbus versioning - -2007-06-21 Ralf Habacker <ral...@fr...> - - * dbus/dbus-sysdeps-win.c: deleted local DBusCredentials structure - (_dbus_getsid): new function - (_dbus_read_credentials_socket): used correct function - (_dbus_append_user_from_current_process, - _dbus_credentials_add_from_current_process): added real - sid reading - (_dbus_credentials_parse_and_add_desired,_dbus_parse_uid): - deleted - -2007-06-21 Ralf Habacker <ral...@fr...> - - * dbus/dbus-sysdeps-util.c (_dbus_sysdeps_test): don't check - 0xff as floating point, this isn't supported on win32 math - implementation - -2007-06-21 Ralf Habacker <ral...@fr...> - - * dbus/dbus-sysdeps-win.c (_dbus_homedir_from_username, - _dbus_homedir_from_current_process, _dbus_append_desired_identity): - removed obsolate functions - -2007-06-21 Ralf Habacker <ral...@fr...> - - * dbus/dbus-sysdeps-win.c, dbus/dbus-sysdeps-util-win.c, - dbus/dbus-sysdeps-win.h: disabled uid/sid conversation stuff - implementation by Peter Kuemmel - -2007-06-21 Ralf Habacker <ral...@fr...> - - * dbus/dbus-watch.c (dbus_watch_get_fd): this function is - deprecated and its behavior should be as before until all - client code is migrated. - -2007-06-19 Ralf Habacker <ral...@fr...> - - * dbus/dbus-sysdeps-util-win.c, tools/dbus-launch-win.c: - msvc7.1 fixes by Jaroslaw Staniek tested with mingw - -2007-06-19 Ralf Habacker <ral...@fr...> - - * dbus/dbus-sysdeps-win.c, dbus/dbus-sysdeps-spawn-win.c, - dbus/dbus-sysdeps-win.h: disabled DBusSocket implementation - by Peter Kuemmel - -2007-06-18 Ralf Habacker <ral...@fr...> - - * dbus-win.patch: removed obsolate patches - -2007-06-18 Havoc Pennington <hp...@re...> - - * configure.in: bump version to 1.1.2 so CVS is higher than last - release (this is not the 1.1.2 release) - -2007-06-18 Havoc Pennington <hp...@re...> - - * Release 1.1.1 - -2007-06-18 Havoc Pennington <hp...@re...> - - * doc/dbus-specification.xml: document org.freedesktop.DBus.GetId() - - * bus/driver.c (bus_driver_handle_get_id): implement org.freedesktop.DBus.GetId() - - * bus/bus.c (bus_context_new): generate a unique ID for each bus context - - * dbus/dbus-connection.c (dbus_connection_get_server_id): new function - - * dbus/dbus-bus.c (dbus_bus_get_id): new function - - * dbus/dbus-server.c (dbus_server_get_id): new function - -2007-06-18 Havoc Pennington <hp...@re...> - - * dbus/dbus-sysdeps-unix.c (_dbus_read_credentials_socket): clean - this up a little bit, to try and understand why telnet'ing to a - server and sending a non-nul byte didn't disconnect immediately; - now it seems that it does disconnect immediately as it should, - though I don't understand what has changed. - -2007-06-18 Havoc Pennington <hp...@re...> - - * dbus/dbus-watch.c (dbus_watch_get_socket) - (dbus_watch_get_unix_fd): new API to match DBusConnection - (dbus_watch_get_fd): deprecate this - - Throughout: just s/dbus_watch_get_fd/dbus_watch_get_socket/g for - now since all the transports use sockets anyway - -2007-06-16 Ralf Habacker <ral...@fr...> - - * dbus/dbus-macros.h, dbus/dbus-message.c, - dbus/dbus-message.h: renamed DBUS_GNUC_DEPRECATED - to DBUS_DEPRECATED and extended to msvc compiler - -2007-06-15 Ralf Habacker <ral...@fr...> - - * cmake/CMakeLists.txt: use local include header first - - * dbus/dbus-sysdeps-win.c: mingw fix of DBusCredential struct - -2007-06-15 Ralf Habacker <ral...@fr...> - - * cmake/ConfigureChecks.cmake,cmake/config.h.cmake: - added check for HAVE_ERRNO_H - - * cmake/dbus/CMakeLists.txt: added missing files - - * dbus/dbus-transport-win.c/.h: new files - - * dbus/dbus-sysdeps-win.c,.h: added required _unix functions - to make dbus compilable on win32 - - * dbus/dbus-sysdeps-win-utils.c,.h: moved some functions to - dbus-sysdeps-win.c - - * dbus-win.patch: removed applied or obsolate patches - - Note: dbus-win32 is now compilable, no guarantee that it runs - without any problems - -2007-06-15 Havoc Pennington <hp...@re...> - - * dbus/dbus-sysdeps-unix.c (_dbus_append_session_config_file) - (_dbus_append_system_config_file): new functions - - * bus/main.c (main): use _dbus_append_system_config_file() and - _dbus_append_session_config_file() - - * dbus/Makefile.am (INCLUDES): move DBUS_SYSTEM_CONFIG_FILE and - DBUS_SESSION_CONFIG_FILE into this makefile - -2007-06-15 Havoc Pennington <hp...@re...> - - * dbus/dbus-sysdeps.c (_dbus_set_errno_to_zero) - (_dbus_get_is_errno_nonzero, _dbus_get_is_errno_eintr) - (_dbus_strerror_from_errno): family of functions to abstract - errno, though these are somewhat bogus (really we should make our - socket wrappers not use errno probably - the issue is that any - usage of errno that isn't socket-related probably is not - cross-platform, so should either be in a unix-only file that can - use errno directly, or is a bug - these general errno wrappers - hide issues of this nature in non-socket code, while - socket-specific API changes would not since sockets are allowed - cross-platform) - -2007-06-14 Havoc Pennington <hp...@re...> - - * bus/dispatch.c (check_get_connection_unix_process_id): mop up - getpid() (noticed by Peter Kümmel) and adapt the test to - expect a "pid unknown" error when running on Windows. - -2007-06-14 Havoc Pennington <hp...@re...> - - * dbus/dbus-sysdeps-unix.c (_dbus_credentials_parse_and_add_user): - delete this function since it was effectively the same as - _dbus_credentials_add_from_username() - -2007-06-14 Havoc Pennington <hp...@re...> - - * dbus/dbus-auth.c: adapt to keyring changes - - * dbus/dbus-keyring.c: change to avoid using user ID and home - directory directly; instead use a - keyring-location-from-credentials function in dbus-sysdeps - - * fix to use _dbus_append_user_from_current_process() instead of - _dbus_username_from_current_process() or _dbus_append_desired_identity(). - -2007-06-14 Ralf Habacker <ral...@fr...> - - * reverted global rename of function _dbus_username_from_current_process. - It needs too much tests to verify that the change does not break anything. - I had overseen that the signatures are different and requires non - trivial changes. - This is one *major* disadvantage of emulating oop functionality with c. - You are responsible for cleaning every object on every function return point - which could be a nightmare if you are not working with dbus all the days. - -2007-06-14 Ralf Habacker <ral...@fr...> - - * dbus/dbus-auth.c (handle_client_initial_response_cookie_sha1_mech): - fixed usage of _dbus_append_desired_identity() - - * dbus/dbus-sysdeps.h (_dbus_username_from_current_process): removed prototype - -2007-06-14 Ralf Habacker <ral...@fr...> - - * dbus/dbus-sysdeps.c: moved global lock system_users from dbus-userdb.c - -2007-06-14 Ralf Habacker <ral...@fr...> - - * global rename of function _dbus_username_from_current_process - to _dbus_append_desired_identity. - Approved by Havoc Pennington - -2007-06-14 Ralf Habacker <ral...@fr...> - - * dbus/dbus-sysdeps-win.c: disabled DBusUserInfo related code - (_dbus_append_desired_identity, _dbus_windows_user_is_process_owner): - new win32 functions as counterpart of unix related - (_dbus_send_credentials_socket,_dbus_read_credentials_socket): - renamed from ..._unix_socket - (_dbus_send_credentials_unix_socket): removed obsolate function - - * dbus/dbus-sysdeps-win-util.c: disabled DBusGroupInfo related code - (_dbus_verify_daemon_user,_dbus_change_to_daemon_user): - new win32 functions as counterpart of unix related - -2007-06-14 Simon McVittie <sim...@co...> - - * doc/dbus-specification.xml: say the protocol version is 1 instead of - 0 (patch from Kristoffer Lundén, fd.o#10033) and remove the FIXME - about removing protocol version from messages (as per Havoc's comment - on that bug) - -2007-06-14 Ralf Habacker <ral...@fr...> - - * dbus/dbus-sysdeps-win.c (_dbus_pid_for_log,_dbus_flush_caches): - new win32 functions as counterpart of unix related - -2007-06-14 Ralf Habacker <ral...@fr...> - - * cmake/modules/FindKDEWIN.cmake, - cmake/modules/FindKDEWIN_Packager.cmake, - cmake/modules/Win32Macros.cmake: new files from the - kdewin32 project - * cmake/CMakeLists.txt: cleaned support for kdewin installer and - win32 explorer wrapper - -2007-06-13 Havoc Pennington <hp...@re...> - - * dbus/dbus-message.c (dbus_message_iter_open_container): Fix - broken return_if_fail (kind of scary that test suite does not - cover this) - -2007-06-13 Havoc Pennington <hp...@re...> - - * dbus/dbus-server-socket.c (_dbus_server_listen_socket): support - all_interfaces=true|false for tcp servers - - * dbus/dbus-sysdeps-unix.c (_dbus_listen_tcp_socket): support - inaddr_any flag - - * bus/selinux.c: fix some missing includes - - * dbus/dbus-server-socket.c (_dbus_server_listen_socket): allow - port to simply be omitted in addition to specifying 0 - -2007-06-13 Havoc Pennington <hp...@re...> - - * configure.ac, bus/selinux.c, dbus/dbus-sysdeps-unix-util.c: add - libaudit support, no clue what this means really but now we have - it. Patches from Fedora package. - - * bus/bus.c (bus_context_new): move selinux initialization after - changing to daemon user, patch from Fedora package - - * dbus/dbus-transport.c (auth_via_unix_user_function): fix a typo - -2007-06-12 Havoc Pennington <hp...@re...> - - * dbus/dbus-message.c (dbus_message_iter_open_container): improve - the checks/warnings for contained_signature a bit - -2007-06-12 Havoc Pennington <hp...@re...> - - * dbus/dbus-marshal-recursive.c (write_or_verify_typecode): - improve the warning a bit if you write extra data into a message - -2007-06-12 Havoc Pennington <hp...@re...> - - * dbus/dbus-auth.c (sha1_handle_second_client_response) - (handle_server_data_anonymous_mech): add the process ID from - socket credentials, if available, even if not using EXTERNAL - - * dbus/dbus-transport.c (auth_via_default_rules): support - allow_anonymous flag - - * dbus/dbus-connection.c (dbus_connection_get_is_anonymous) - (dbus_connection_set_allow_anonymous): new API for controlling - anonymous access - -2007-06-09 Havoc Pennington <hp...@re...> - - * dbus/dbus-string.c (_dbus_string_pop_line): fix this not to - think an empty line is the end of the file. - Also, fix some whitespace. - - * dbus/dbus-string-util.c: add more tests for - _dbus_string_pop_line() revealing that it thinks an empty line is - the end of the file, which broke dbus-auth-script.c so - it didn't really run the scripts - - * dbus/dbus-auth.c: add ANONYMOUS mechanism - - * dbus/dbus-auth-script.c (_dbus_auth_script_run): fix to detect - an empty/no-op auth script; add commands to check that we have or - don't have the expected credentials - -2007-06-09 Havoc Pennington <hp...@re...> - - * bus/policy.c (bus_policy_create_client_policy): gracefully - continue if the connection has no unix user - just don't apply - any unix user dependent rules. - - * bus/config-parser.c: remove dbus-userdb.h usage - - * bus/bus.c: remove dbus-userdb.h usage - - * dbus/dbus-transport.c (_dbus_transport_get_is_authenticated): - support Windows user function; also, fix the logic for checking - auth as root in the default auth code (broken in the previous - commit) - - * dbus/dbus-connection.c - (dbus_connection_set_windows_user_function): new function - (dbus_connection_get_windows_user): new function - -2007-06-09 Havoc Pennington <hp...@re...> - - * bus/dispatch.c (check_get_connection_unix_process_id): adapt - since sysdeps-unix.h stuff isn't included anymore - - * bus/bus.c (bus_context_new): use more abstract functions to - change user, so they can be no-ops on Windows - - * dbus/dbus-credentials.c, dbus/dbus-credentials.h, - dbus/dbus-credentials-util.c: new files containing a fully opaque - DBusCredentials data type to replace the old not opaque one. - - * configure.in (DBUS_UNIX): define DBUS_UNIX to match DBUS_WIN on - windows - - * dbus/dbus-userdb.h: prohibit on Windows, next step is to clean - up the uses of it in bus/*.c and factor out the parts of - cookie auth that depend on it - -2007-06-07 Havoc Pennington <hp...@re...> - - * dbus/dbus-message.c: improve some docs related to reading val... [truncated message content] |
From: <che...@us...> - 2008-07-25 11:40:44
|
Revision: 787 http://windbus.svn.sourceforge.net/windbus/?rev=787&view=rev Author: chehrlic Date: 2008-07-25 11:40:38 +0000 (Fri, 25 Jul 2008) Log Message: ----------- remove CVS subdirs Removed Paths: ------------- trunk/CVS/ trunk/bus/CVS/ trunk/cmake/CVS/ trunk/cmake/bus/CVS/ trunk/cmake/dbus/CVS/ trunk/cmake/doc/CVS/ trunk/cmake/modules/CVS/ trunk/cmake/test/CVS/ trunk/cmake/test/data/CVS/ trunk/cmake/test/data/valid-config-files/CVS/ trunk/cmake/test/name-test/CVS/ trunk/cmake/tools/CVS/ trunk/dbus/CVS/ trunk/doc/CVS/ trunk/test/CVS/ trunk/test/data/CVS/ trunk/test/data/auth/CVS/ trunk/test/data/equiv-config-files/CVS/ trunk/test/data/equiv-config-files/basic/CVS/ trunk/test/data/equiv-config-files/basic/basic.d/CVS/ trunk/test/data/equiv-config-files/entities/CVS/ trunk/test/data/equiv-config-files/entities/basic.d/CVS/ trunk/test/data/incomplete-messages/CVS/ trunk/test/data/invalid-config-files/CVS/ trunk/test/data/invalid-messages/CVS/ trunk/test/data/sha-1/CVS/ trunk/test/data/valid-config-files/CVS/ trunk/test/data/valid-config-files/basic.d/CVS/ trunk/test/data/valid-config-files/system.d/CVS/ trunk/test/data/valid-introspection-files/CVS/ trunk/test/data/valid-messages/CVS/ trunk/test/data/valid-service-files/CVS/ trunk/test/name-test/CVS/ trunk/tools/CVS/ trunk/win-patches/cmake-cvs.patch Deleted: trunk/win-patches/cmake-cvs.patch =================================================================== --- trunk/win-patches/cmake-cvs.patch 2008-07-25 11:34:00 UTC (rev 786) +++ trunk/win-patches/cmake-cvs.patch 2008-07-25 11:40:38 UTC (rev 787) @@ -1,384 +0,0 @@ -Index: test/CVS/Entries -=================================================================== ---- test/CVS/Entries (revision 610) -+++ test/CVS/Entries (working copy) -@@ -1,3 +1,3 @@ --/CMakeLists.txt/1.1/Sat Mar 3 14:32:17 2007// -+/CMakeLists.txt/1.2/Sat Apr 28 19:37:25 2007// - D/data//// - D/name-test//// -Index: test/name-test/CVS/Entries -=================================================================== ---- test/name-test/CVS/Entries (revision 610) -+++ test/name-test/CVS/Entries (working copy) -@@ -1,2 +1,2 @@ --/CMakeLists.txt/1.1/Sat Mar 3 14:32:17 2007// -+/CMakeLists.txt/1.2/Sat Apr 28 19:37:25 2007// - D -Index: test/name-test/CMakeLists.txt -=================================================================== ---- test/name-test/CMakeLists.txt (revision 610) -+++ test/name-test/CMakeLists.txt (working copy) -@@ -9,17 +9,17 @@ - # there is also a test-names executable, don't know if this is the same - add_executable(test-names1 ${NAMEtest-DIR}/test-names.c) - target_link_libraries(test-names1 dbus-1) --install_targets(/bin test-names1) -+#install_targets(/bin test-names1) - ADD_TEST(test-names ${EXECUTABLE_OUTPUT_PATH}/test-names1) - - add_executable(test-pending-call-dispatch ${NAMEtest-DIR}/test-pending-call-dispatch.c) - target_link_libraries(test-pending-call-dispatch dbus-1) --install_targets(/bin test-pending-call-dispatch) -+#install_targets(/bin test-pending-call-dispatch) - ADD_TEST(test-pending-call-dispatch ${EXECUTABLE_OUTPUT_PATH}/test-pending_call-dispatch) - - add_executable(test-thread-init ${NAMEtest-DIR}/test-threads-init.c) - target_link_libraries(test-thread-init dbus-1) --install_targets(/bin test-thread-init) -+#install_targets(/bin test-thread-init) - ADD_TEST(test-names ${EXECUTABLE_OUTPUT_PATH}/test-thread-init) - - endif (DBUS_BUILD_TESTS) -Index: test/CMakeLists.txt -=================================================================== ---- test/CMakeLists.txt (revision 610) -+++ test/CMakeLists.txt (working copy) -@@ -90,7 +90,7 @@ - - add_executable(test-service ${test-service_SOURCES}) - target_link_libraries(test-service dbus-1) --install_targets(/bin test-service) -+#install_targets(/bin test-service) - - # (rh) does not work at now - ADD_TEST(test-service ${EXECUTABLE_OUTPUT_PATH}/test-service${EXT}) -@@ -99,17 +99,17 @@ - - add_executable(test-names ${test-names_SOURCES}) - target_link_libraries(test-names dbus-1) --install_targets(/bin test-names) -+#install_targets(/bin test-names) - ADD_TEST(test-names ${EXECUTABLE_OUTPUT_PATH}/test-names${EXT}) - - add_executable(test-shell ${test-shell_SOURCES}) - target_link_libraries(test-shell dbus-1) --install_targets(/bin test-shell) -+#install_targets(/bin test-shell) - ADD_TEST(test-shell ${EXECUTABLE_OUTPUT_PATH}/test-shell${EXT}) - - add_executable(test-shell-service ${test-shell_SOURCES}) - target_link_libraries(test-shell-service dbus-1) --install_targets(/bin test-shell-service) -+#install_targets(/bin test-shell-service) - ADD_TEST(test-shell-service ${EXECUTABLE_OUTPUT_PATH}/test-shell-service${EXT}) - - add_executable(test-spawn ${test-spawn_SOURCES}) -@@ -119,12 +119,12 @@ - - add_executable(test-exit ${test-exit_SOURCES}) - target_link_libraries(test-exit dbus-1) --install_targets(/bin test-exit) -+#install_targets(/bin test-exit) - ADD_TEST(test-exit ${EXECUTABLE_OUTPUT_PATH}/test-exit${EXT}) - - add_executable(test-segfault ${test-segfault_SOURCES}) - target_link_libraries(test-segfault dbus-1) --install_targets(/bin test-segfault) -+#install_targets(/bin test-segfault) - ADD_TEST(test-segfault ${EXECUTABLE_OUTPUT_PATH}/test-segfault${EXT}) - - add_executable(test-sleep-forever ${test-sleep-forever_SOURCES}) -@@ -203,7 +203,7 @@ - MESSAGE("FROM: ${FILE}\nTO: ${TARGET}\n") - ENDIF (CONFIG_VERBOSE) - configure_file(${FILE} ${TARGET} ) -- install_files(/data/dbus-1/services FILES ${TARGET}) -+ #install_files(/data/dbus-1/services FILES ${TARGET}) - ENDFOREACH(FILE) - - # -Index: tools/CVS/Entries -=================================================================== ---- tools/CVS/Entries (revision 610) -+++ tools/CVS/Entries (working copy) -@@ -1,2 +1,2 @@ --/CMakeLists.txt/1.1/Sat Mar 3 14:32:17 2007// -+/CMakeLists.txt/1.2/Thu Apr 26 09:30:38 2007// - D -Index: tools/CMakeLists.txt -=================================================================== ---- tools/CMakeLists.txt (revision 610) -+++ tools/CMakeLists.txt (working copy) -@@ -54,16 +54,16 @@ - ../../tools/dbus-viewer.c - ) - --add_executable(dbus-send ${dbus_send_SOURCES}) --target_link_libraries(dbus-send dbus-1) --install_targets(/bin dbus-send ) -+add_executable(dbus-send${CMAKE_EXE_POSTFIX} ${dbus_send_SOURCES}) -+target_link_libraries(dbus-send${CMAKE_EXE_POSTFIX} dbus-1) -+install_targets(/bin dbus-send${CMAKE_EXE_POSTFIX} ) - - # glib required --#add_executable(dbus_launch ${dbus_launch_SOURCES}) -+#add_executable(dbus_launch${CMAKE_EXE_POSTFIX} ${dbus_launch_SOURCES}) - --add_executable(dbus-monitor ${dbus_monitor_SOURCES}) --target_link_libraries(dbus-monitor dbus-1) --install_targets(/bin dbus-monitor ) -+add_executable(dbus-monitor${CMAKE_EXE_POSTFIX} ${dbus_monitor_SOURCES}) -+target_link_libraries(dbus-monitor${CMAKE_EXE_POSTFIX} dbus-1) -+install_targets(/bin dbus-monitor${CMAKE_EXE_POSTFIX} ) - - #dbus_send_LDADD= $(top_builddir)/dbus/libdbus-1.la - #dbus_monitor_LDADD= $(top_builddir)/glib/libdbus-glib-1.la -Index: modules/FindLibExpat.cmake -=================================================================== ---- modules/FindLibExpat.cmake (revision 610) -+++ modules/FindLibExpat.cmake (working copy) -@@ -13,13 +13,23 @@ - - else (LIBEXPAT_INCLUDE_DIR AND LIBEXPAT_LIBRARIES) - -- IF (NOT WIN32) -+ IF (WIN32) -+ file(TO_CMAKE_PATH "$ENV{PROGRAMFILES}" _progFiles) -+ find_FILE(LIBEXPAT_DIR expat Source/lib/expat.h -+ PATHS -+ "${_progFiles}" -+ ) -+ if (LIBEXPAT_DIR) -+ set (_LIBEXPATIncDir ${LIBEXPAT_DIR}/Source/lib) -+ set (_LIBEXPATLinkDir ${LIBEXPAT_DIR}/libs) -+ endif (LIBEXPAT_DIR) -+ ELSE (WIN32) - # use pkg-config to get the directories and then use these values - # in the FIND_PATH() and FIND_LIBRARY() calls - INCLUDE(UsePkgConfig) - PKGCONFIG(LIBEXPAT-2.0 _LIBEXPATIncDir _LIBEXPATLinkDir _LIBEXPATLinkFlags _LiIconvCflags) - SET(LIBEXPAT_DEFINITIONS ${_LIBEXPATCflags}) -- ENDIF (NOT WIN32) -+ ENDIF (WIN32) - - FIND_PATH(LIBEXPAT_INCLUDE_DIR expat.h - PATHS -Index: modules/CVS/Entries -=================================================================== ---- modules/CVS/Entries (revision 610) -+++ modules/CVS/Entries (working copy) -@@ -5,7 +5,7 @@ - /FindGLIB.cmake/1.1/Sat Mar 3 14:32:17 2007// - /FindGNUWIN32.cmake/1.1/Sat Mar 3 14:32:17 2007// - /FindKDEWIN32.cmake/1.1/Sat Mar 3 14:32:17 2007// --/FindLibExpat.cmake/1.1/Sat Mar 3 14:32:17 2007// -+/FindLibExpat.cmake/1.2/Fri Mar 16 22:34:40 2007// - /FindLibIconv.cmake/1.1/Sat Mar 3 14:32:17 2007// - /FindQt4.cmake/1.1/Sat Mar 3 14:32:17 2007// - /MacroGetenvWinPath.cmake/1.1/Sat Mar 3 14:32:17 2007// -Index: bus/CVS/Entries -=================================================================== ---- bus/CVS/Entries (revision 610) -+++ bus/CVS/Entries (working copy) -@@ -1,4 +1,4 @@ --/CMakeLists.txt/1.2/Tue Mar 6 20:51:02 2007// -+/CMakeLists.txt/1.4/Sat Apr 28 19:37:25 2007// - /service.cmake/1.1/Sat Mar 3 14:32:17 2007// - /session.conf.cmake/1.1/Sat Mar 3 14:32:17 2007// - /system.conf.cmake/1.1/Sat Mar 3 14:32:17 2007// -Index: bus/CMakeLists.txt -=================================================================== ---- bus/CMakeLists.txt (revision 610) -+++ bus/CMakeLists.txt (working copy) -@@ -82,9 +82,9 @@ - include_directories(${XML_INCLUDE_DIR}) - SET (LIBS ${XML_LIBRARY}) - --add_executable(dbus-daemon ${dbus_daemon_SOURCES}) --target_link_libraries(dbus-daemon dbus-1 ${LIBS}) --install_targets(/bin dbus-daemon ) -+add_executable(dbus-daemon${CMAKE_EXE_POSTFIX} ${dbus_daemon_SOURCES}) -+target_link_libraries(dbus-daemon${CMAKE_EXE_POSTFIX} dbus-1 ${LIBS}) -+install_targets(/bin dbus-daemon${CMAKE_EXE_POSTFIX} ) - install_files(/etc FILES ${config_DATA}) - - if (DBUS_SERVICE) -@@ -95,9 +95,9 @@ - # ${BUS_SOURCES} - ) - -- add_executable(dbus-service ${dbus_service_SOURCES} ) -- target_link_libraries(dbus-service dbus-1 ${LIBS}) -- install_targets(/bin dbus-service ) -+ add_executable(dbus-service${CMAKE_EXE_POSTFIX} ${dbus_service_SOURCES} ) -+ target_link_libraries(dbus-service${CMAKE_EXE_POSTFIX} dbus-1 ${LIBS}) -+ install_targets(/bin dbus-service${CMAKE_EXE_POSTFIX} ) - - endif (DBUS_SERVICE) - -@@ -123,7 +123,7 @@ - if (DBUS_BUILD_TESTS) - add_executable(bus-test ${bus_test_SOURCES}) - target_link_libraries(bus-test dbus-1 ${LIBS} ) -- install_targets(/bin bus-test) -+ #install_targets(/bin bus-test) - add_test(bus-test ${EXECUTABLE_OUTPUT_PATH}/bus-test ${CMAKE_SOURCE_DIR}/../test/data) - endif (DBUS_BUILD_TESTS) - -Index: CVS/Entries -=================================================================== ---- CVS/Entries (revision 610) -+++ CVS/Entries (working copy) -@@ -1,4 +1,4 @@ --/CMakeLists.txt/1.4/Wed Mar 14 00:16:05 2007// -+/CMakeLists.txt/1.8/Wed May 23 06:00:34 2007// - /ConfigureChecks.cmake/1.2/Thu Mar 8 08:36:47 2007// - /Doxyfile.cmake/1.1/Wed Mar 14 00:16:05 2007// - /bus-test.bat.cmake/1.1/Sat Mar 3 14:32:17 2007// -Index: CVS/Entries.Log -=================================================================== ---- CVS/Entries.Log (revision 610) -+++ CVS/Entries.Log (working copy) -@@ -1,5 +1,6 @@ - A D/bus//// - A D/dbus//// -+A D/doc//// - A D/modules//// - A D/test//// - A D/tools//// -Index: dbus/CVS/Entries -=================================================================== ---- dbus/CVS/Entries (revision 610) -+++ dbus/CVS/Entries (working copy) -@@ -1,3 +1,3 @@ --/CMakeLists.txt/1.2/Tue Mar 6 20:51:02 2007// -+/CMakeLists.txt/1.7/Thu May 24 19:15:26 2007// - /dbus-arch-deps.h.cmake/1.1/Sat Mar 3 14:32:17 2007// - D -Index: dbus/CMakeLists.txt -=================================================================== ---- dbus/CMakeLists.txt (revision 610) -+++ dbus/CMakeLists.txt (working copy) -@@ -68,6 +68,11 @@ - ${DBUS_DIR}/dbus-transport-unix.c - ${DBUS_DIR}/dbus-server-unix.c - ) -+else(UNIX) -+ set (DBUS_LIB_SOURCES ${DBUS_LIB_SOURCES} -+# ${DBUS_DIR}/dbus-transport-win.c -+ ${DBUS_DIR}/dbus-server-win.c -+ ) - endif(UNIX) - - set (DBUS_LIB_HEADERS -@@ -167,7 +172,7 @@ - if (WIN32) - set (DBUS_SHARED_SOURCES ${DBUS_SHARED_SOURCES} - ${DBUS_DIR}/dbus-sysdeps-win.c -- ${DBUS_DIR}/dbus-sysdeps-win-thread.c -+ ${DBUS_DIR}/dbus-sysdeps-thread-win.c - ${DBUS_DIR}/dbus-sysdeps-util-win.c - ${DBUS_DIR}/dbus-spawn-win.c - ) -@@ -205,7 +210,6 @@ - ${DBUS_UTIL_HEADERS} - ) - --set(CMAKE_DEBUG_POSTFIX "d") - if(MSVC) - add_library(dbus-1 STATIC ${libdbus_SOURCES} ${libdbus_HEADERS} ) - project_source_group(${GROUP_CODE} libdbus_SOURCES libdbus_HEADERS) -@@ -234,10 +238,10 @@ - - if (DBUS_BUILD_TESTS) - set (TESTS_ENVIRONMENT "DBUS_TEST_DATA=${CMAKE_SOURCE_DIR}/test/data DBUS_TEST_HOMEDIR=${CMAKE_BUILD_DIR}/dbus") -- ADD_EXECUTABLE(dbus-test ${CMAKE_SOURCE_DIR}/../dbus/dbus-test-main.c) -+ ADD_EXECUTABLE(dbus-test ${CMAKE_SOURCE_DIR}/../dbus/dbus-test-main.c) - target_link_libraries(dbus-test dbus-1 ${LIBS}) - add_test(dbus-test ${EXECUTABLE_OUTPUT_PATH}/dbus-test ${CMAKE_SOURCE_DIR}/../test/data) -- install_targets(/bin dbus-test) -+ #install_targets(/bin dbus-test) - ENDIF (DBUS_BUILD_TESTS) - - if (UNIX) -Index: CMakeLists.txt -=================================================================== ---- CMakeLists.txt (revision 610) -+++ CMakeLists.txt (working copy) -@@ -1,6 +1,6 @@ - set (PACKAGE dbus) - set (VERSION_MAJOR "1") --set (VERSION_MINOR "0") -+set (VERSION_MINOR "1") - set (VERSION_PATCH "0") - set (VERSION ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH} ) - project(${PACKAGE}) -@@ -68,14 +68,20 @@ - set(CMAKE_CXX_WARNING_LEVEL 3 CACHE TYPE STRING FORCE) - endif (WALL) - -- SET(MSVC_W_ERROR " /we4028 /we4013 /we4133 /we4047 /we4031 /we4002 /we4003 /we4114 /we4022") -+ SET(MSVC_W_ERROR " /we4028 /we4013 /we4133 /we4047 /we4031 /we4002 /we4003 /we4114") - SET(MSVC_W_DISABLE " /wd4127 /wd4090 /wd4101 /wd4244") - - SET(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} /FIconfig.h ${MSVC_W_ERROR} ${MSVC_W_DISABLE}") - SET(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} /FIconfig.h ${MSVC_W_ERROR} ${MSVC_W_DISABLE}") - endif(MSVC) - -+if(CMAKE_BUILD_TYPE STREQUAL "Debug") -+ # used by executables, CMAKE_DEBUG_POSTFIX does not handle this case -+ set (CMAKE_EXE_POSTFIX "d") -+ set (CMAKE_DEBUG_POSTFIX "d") -+endif(CMAKE_BUILD_TYPE STREQUAL "Debug") - -+ - ######################################################################### - # Windows CE - # -@@ -225,9 +231,6 @@ - #AC_ARG_ENABLE(checks, AS_HELP_STRING([--enable-checks],[include sanity checks on public API]),enable_checks=$enableval,enable_checks=yes) - OPTION(DBUS_DISABLE_CHECKS "Disable public API sanity checking" OFF) - --#AC_ARG_ENABLE(xml-docs, AS_HELP_STRING([--enable-xml-docs],[build XML documentation (requires xmlto)]),enable_xml_docs=$enableval,enable_xml_docs=auto) --#xmldocs missing -- - #AC_ARG_ENABLE(gcov, AS_HELP_STRING([--enable-gcov],[compile with coverage profiling instrumentation (gcc only)]),enable_gcov=$enableval,enable_gcov=no) - OPTION(DBUS_GCOV_ENABLED "compile with coverage profiling instrumentation (gcc only)" OFF) - if(DBUS_GCOV_ENABLED) -@@ -330,20 +333,12 @@ - set (EXT ".exe") - endif(WIN32) - --# confirure.in: --#TEST_PATH(SERVICE_DIR, data/valid-service-files) --#TEST_PATH(SERVICE_BINARY, test-service) --#TEST_PATH(SHELL_SERVICE_BINARY, test-shell-service) --#TEST_PATH(EXIT_BINARY, test-exit) --#TEST_PATH(SEGFAULT_BINARY, test-segfault) --#TEST_PATH(SLEEP_FOREVER_BINARY, test-sleep-forever) -- - set(TEST_SERVICE_DIR ${CMAKE_BINARY_DIR}/test/data/valid-service-files CACHE STRING "Full path to test file test/data/valid-service-files in builddir") --set(TEST_SERVICE_BINARY ${EXPANDED_BINDIR}/test-service${EXT} CACHE STRING "Full path to test file test/test-service in builddir") --set(TEST_SHELL_SERVICE_BINARY ${EXPANDED_BINDIR}/test-shell-service${EXT} CACHE STRING "Full path to test file test/test-shell-service in builddir") --set(TEST_EXIT_BINARY ${EXPANDED_BINDIR}/test-exit${EXT} CACHE STRING "Full path to test file test/test-exit in builddir") --set(TEST_SEGFAULT_BINARY ${EXPANDED_BINDIR}/test-segfault${EXT} CACHE STRING "Full path to test file test/test-segfault in builddir") --set(TEST_SLEEP_FOREVER_BINARY ${EXPANDED_BINDIR}/test-sleep-forever${EXT} CACHE STRING "Full path to test file test/test-sleep-forever in builddir") -+set(TEST_SERVICE_BINARY ${CMAKE_BINARY_DIR}/bin/test-service${EXT} CACHE STRING "Full path to test file test/test-service in builddir") -+set(TEST_SHELL_SERVICE_BINARY ${CMAKE_BINARY_DIR}/bin/test-shell-service${EXT} CACHE STRING "Full path to test file test/test-shell-service in builddir") -+set(TEST_EXIT_BINARY ${CMAKE_BINARY_DIR}/bin/test-exit${EXT} CACHE STRING "Full path to test file test/test-exit in builddir") -+set(TEST_SEGFAULT_BINARY ${CMAKE_BINARY_DIR}/bin/test-segfault${EXT} CACHE STRING "Full path to test file test/test-segfault in builddir") -+set(TEST_SLEEP_FOREVER_BINARY ${CMAKE_BINARY_DIR}/bin/test-sleep-forever${EXT} CACHE STRING "Full path to test file test/test-sleep-forever in builddir") - - #### Find socket directories - if (NOT WIN32) -@@ -445,8 +440,7 @@ - add_subdirectory( test ) - endif (DBUS_BUILD_TESTS) - add_subdirectory( tools ) --# there is currently no directory 'doc' --#add_subdirectory( doc ) -+add_subdirectory( doc ) - - - OPTION(DBUS_INSTALL_SYSTEM_LIBS "install required system libraries" OFF) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <che...@us...> - 2008-07-25 11:34:02
|
Revision: 786 http://windbus.svn.sourceforge.net/windbus/?rev=786&view=rev Author: chehrlic Date: 2008-07-25 11:34:00 +0000 (Fri, 25 Jul 2008) Log Message: ----------- tag 1.2.1 Added Paths: ----------- tags/1.2.1/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <hab...@us...> - 2008-07-13 21:33:06
|
Revision: 785 http://windbus.svn.sourceforge.net/windbus/?rev=785&view=rev Author: habacker Date: 2008-07-13 14:33:02 -0700 (Sun, 13 Jul 2008) Log Message: ----------- cleaned up include directory ordering: local include directory is used before installed include directory to make sure local headers are used first. Modified Paths: -------------- trunk/cmake/CMakeLists.txt trunk/cmake/bus/CMakeLists.txt trunk/cmake/dbus/CMakeLists.txt trunk/cmake/pkg-config/CMakeLists.txt trunk/cmake/test/CMakeLists.txt trunk/cmake/test/name-test/CMakeLists.txt trunk/cmake/tools/CMakeLists.txt Modified: trunk/cmake/CMakeLists.txt =================================================================== --- trunk/cmake/CMakeLists.txt 2008-07-04 13:57:38 UTC (rev 784) +++ trunk/cmake/CMakeLists.txt 2008-07-13 21:33:02 UTC (rev 785) @@ -177,8 +177,7 @@ set (EXECUTABLE_OUTPUT_PATH ${CMAKE_BINARY_DIR}/bin) # for including config.h and for includes like <dir/foo.h> -include_directories( ${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR} ) -include_directories( ${CMAKE_INCLUDE_PATH} ) +include_directories( ${CMAKE_SOURCE_DIR}/.. ${CMAKE_BINARY_DIR} ${CMAKE_INCLUDE_PATH} ) # linker search directories link_directories(${DBUS_LIB_DIR} ${LIBRARY_OUTPUT_PATH} ) Modified: trunk/cmake/bus/CMakeLists.txt =================================================================== --- trunk/cmake/bus/CMakeLists.txt 2008-07-04 13:57:38 UTC (rev 784) +++ trunk/cmake/bus/CMakeLists.txt 2008-07-13 21:33:02 UTC (rev 785) @@ -1,8 +1,5 @@ project(bus) -include_directories(${CMAKE_SOURCE_DIR}/..) -include_directories( ${CMAKE_INCLUDE_PATH} ) - add_definitions(-DDBUS_COMPILATION) SET(EFENCE "") Modified: trunk/cmake/dbus/CMakeLists.txt =================================================================== --- trunk/cmake/dbus/CMakeLists.txt 2008-07-04 13:57:38 UTC (rev 784) +++ trunk/cmake/dbus/CMakeLists.txt 2008-07-13 21:33:02 UTC (rev 785) @@ -2,7 +2,6 @@ #INCLUDES=-I$(top_srcdir) $(DBUS_CLIENT_CFLAGS) -DDBUS_COMPILATION -include_directories(${CMAKE_SOURCE_DIR}/..) SET(DBUS_DIR ${CMAKE_SOURCE_DIR}/../dbus) configure_file(${CMAKE_CURRENT_SOURCE_DIR}/dbus-arch-deps.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/dbus-arch-deps.h ) Modified: trunk/cmake/pkg-config/CMakeLists.txt =================================================================== --- trunk/cmake/pkg-config/CMakeLists.txt 2008-07-04 13:57:38 UTC (rev 784) +++ trunk/cmake/pkg-config/CMakeLists.txt 2008-07-13 21:33:02 UTC (rev 785) @@ -1,7 +1,4 @@ - -include_directories(${CMAKE_SOURCE_DIR}/..) - add_executable(pkg-config ../../pkg-config/pkg-config.cpp) target_link_libraries(pkg-config ${DBUS_1}) install_targets(/bin pkg-config ) Modified: trunk/cmake/test/CMakeLists.txt =================================================================== --- trunk/cmake/test/CMakeLists.txt 2008-07-04 13:57:38 UTC (rev 784) +++ trunk/cmake/test/CMakeLists.txt 2008-07-13 21:33:02 UTC (rev 785) @@ -17,9 +17,6 @@ #INCLUDES=-I$(top_srcdir) $(DBUS_test-CFLAGS) -include_directories( ${CMAKE_SOURCE_DIR}/.. ) -include_directories( ${CMAKE_INCLUDE_PATH} ) - if (WIN32) add_definitions(-Dsleep=_sleep) endif (WIN32) Modified: trunk/cmake/test/name-test/CMakeLists.txt =================================================================== --- trunk/cmake/test/name-test/CMakeLists.txt 2008-07-04 13:57:38 UTC (rev 784) +++ trunk/cmake/test/name-test/CMakeLists.txt 2008-07-13 21:33:02 UTC (rev 785) @@ -2,8 +2,6 @@ set (NAMEtest-DIR ../../../test/name-test) -include_directories( ${CMAKE_SOURCE_DIR}/.. ) -include_directories( ${CMAKE_INCLUDE_PATH} ) add_definitions(-DDBUS_COMPILATION) # there is also a test-names executable, don't know if this is the same Modified: trunk/cmake/tools/CMakeLists.txt =================================================================== --- trunk/cmake/tools/CMakeLists.txt 2008-07-04 13:57:38 UTC (rev 784) +++ trunk/cmake/tools/CMakeLists.txt 2008-07-13 21:33:02 UTC (rev 785) @@ -1,7 +1,5 @@ project(tools) -include_directories(${CMAKE_SOURCE_DIR}/..) - #nodist_libdbus_glib_HEADERS = dbus-glib-bindings.h #libdbus_glibdir = $(includedir)/dbus-1.0/dbus This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <che...@us...> - 2008-07-04 13:57:44
|
Revision: 784 http://windbus.svn.sourceforge.net/windbus/?rev=784&view=rev Author: chehrlic Date: 2008-07-04 06:57:38 -0700 (Fri, 04 Jul 2008) Log Message: ----------- last patch from jaroslaw Modified Paths: -------------- trunk/cmake/dbus/dbus-1.def.cmake trunk/dbus/dbus-misc.c Modified: trunk/cmake/dbus/dbus-1.def.cmake =================================================================== --- trunk/cmake/dbus/dbus-1.def.cmake 2008-07-02 15:59:21 UTC (rev 783) +++ trunk/cmake/dbus/dbus-1.def.cmake 2008-07-04 13:57:38 UTC (rev 784) @@ -870,3 +870,4 @@ dbus_watch_get_unix_fd dbus_watch_handle dbus_watch_set_data +dbus_kde_patch Modified: trunk/dbus/dbus-misc.c =================================================================== --- trunk/dbus/dbus-misc.c 2008-07-02 15:59:21 UTC (rev 783) +++ trunk/dbus/dbus-misc.c 2008-07-04 13:57:38 UTC (rev 784) @@ -170,6 +170,13 @@ *micro_version_p = DBUS_MICRO_VERSION; } +/** + * Indicates that this is KDE modification of dbus; used in KUniqueApplication::start(). + */ +void +dbus_kde_patch (void) +{ +} /** @} */ /* End of public API */ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <che...@us...> - 2008-07-02 16:00:02
|
Revision: 783 http://windbus.svn.sourceforge.net/windbus/?rev=783&view=rev Author: chehrlic Date: 2008-07-02 08:59:21 -0700 (Wed, 02 Jul 2008) Log Message: ----------- apply changes from jstaniek - only tested if it compiles with msvc Modified Paths: -------------- trunk/README.win trunk/bus/config-parser.c trunk/bus/dispatch.c trunk/bus/driver.c trunk/bus/services.c trunk/dbus/dbus-bus.c trunk/dbus/dbus-mainloop.c trunk/dbus/dbus-sysdeps-util-win.c trunk/dbus/dbus-sysdeps-util.c trunk/dbus/dbus-sysdeps-win.c trunk/dbus/dbus-sysdeps.c trunk/dbus/dbus-sysdeps.h trunk/dbus/dbus-threads.c Modified: trunk/README.win =================================================================== --- trunk/README.win 2008-05-21 15:31:33 UTC (rev 782) +++ trunk/README.win 2008-07-02 15:59:21 UTC (rev 783) @@ -92,13 +92,12 @@ Running the tests in Visual Studio: To successfully run the tests by the IDE you must add - the FULL patch to test\data in your build directory - (e.g. c:\dbus\build\test\data) - in something like + '..\..\test\data' a in your build directory: -> Project Settings -> Debugging -> Command line arguments + and also set there the working directory to $(TargetDir) FAQ Modified: trunk/bus/config-parser.c =================================================================== --- trunk/bus/config-parser.c 2008-05-21 15:31:33 UTC (rev 782) +++ trunk/bus/config-parser.c 2008-07-02 15:59:21 UTC (rev 783) @@ -3130,12 +3130,14 @@ #ifdef DBUS_UNIX "/testusr/testlocal/testshare/dbus-1/services", "/testusr/testshare/dbus-1/services", -#endif DBUS_DATADIR"/dbus-1/services", -#ifdef DBUS_UNIX "/testhome/foo/.testlocal/testshare/dbus-1/services", + NULL, +#else + DBUS_DATADIR"/dbus-1/services", + NULL, + NULL #endif - NULL }; static dbus_bool_t Modified: trunk/bus/dispatch.c =================================================================== --- trunk/bus/dispatch.c 2008-05-21 15:31:33 UTC (rev 782) +++ trunk/bus/dispatch.c 2008-07-02 15:59:21 UTC (rev 783) @@ -428,6 +428,11 @@ } } +#ifdef DBUS_WIN +#include <tools/dbus-print-message.h> +#include <tools/dbus-print-message.c> +#endif + static void spin_connection_until_authenticated (BusContext *context, DBusConnection *connection) @@ -439,6 +444,20 @@ bus_test_run_bus_loop (context, FALSE); bus_test_run_clients_loop (FALSE); } +#ifdef DBUS_WIN_FIXME_remove_if_it_really_works + /* also fails on Linux. Is it a bug? */ + if ( dbus_connection_get_dispatch_status(connection) != DBUS_DISPATCH_COMPLETE) + { + DBusMessage *message; + message = dbus_connection_pop_message (connection); + printf ("spin_connection_until_authenticated failed,\n"); + printf ("because of a non dispatched message:\n"); + print_message(message, FALSE); + printf ("\n"); + _dbus_assert_not_reached ("spin_connection_until_authenticated failed\n "); + } +#endif + _dbus_verbose (" ... done spinning to auth connection %p\n", connection); } @@ -2626,7 +2645,7 @@ return retval; } -#ifndef DBUS_WIN_FIXME +#ifndef DBUS_WIN_FIXME_remove_if_it_really_works /* returns TRUE if the correct thing happens, * but the correct thing may include OOM errors. */ @@ -2722,9 +2741,12 @@ } else { +/* no DBUS_ERROR_NO_MEMORY on windows (no have_fork_errnum)*/ +#ifndef DBUS_WIN_FIXME warn_unexpected (connection, message, "not this error"); goto out; +#endif } } else @@ -4510,11 +4532,14 @@ if (!check_add_match_all (context, baz)) _dbus_assert_not_reached ("AddMatch message failed"); +#ifndef DBUS_WIN + // TODO: Must fail on Windows? if (!check_get_connection_unix_user (context, baz)) _dbus_assert_not_reached ("GetConnectionUnixUser message failed"); if (!check_get_connection_unix_process_id (context, baz)) _dbus_assert_not_reached ("GetConnectionUnixProcessID message failed"); +#endif if (!check_list_services (context, baz)) _dbus_assert_not_reached ("ListActivatableNames message failed"); @@ -4524,38 +4549,66 @@ _dbus_warn ("Messages were left over after setting up initial connections\n"); _dbus_assert_not_reached ("initial connection setup failed"); } + + // TODO for all tests: sometimes endless waiting in select +#ifdef DBUS_WIN_FIXME_remove_if_it_really_works + _dbus_warn("\tTODO check1_try_iterations: create_and_hello\n"); +#else + printf("\tcheck1_try_iterations: create_and_hello \n"); check1_try_iterations (context, "create_and_hello", check_hello_connection); - +#endif + +#ifdef DBUS_WIN_FIXME_remove_if_it_really_works + _dbus_warn("\tTODO check1_try_iterations: nonexistent_service_no_auto_start\n"); +#else + printf("\tcheck2_try_iterations: nonexistent_service_no_auto_start \n"); check2_try_iterations (context, foo, "nonexistent_service_no_auto_start", check_nonexistent_service_no_auto_start); +#endif -#ifdef DBUS_WIN_FIXME - _dbus_warn("TODO: dispatch.c segfault_service_no_auto_start test\n"); +#ifdef DBUS_WIN_FIXME//_remove_if_it_really_works + // How should we suppress the window alerts about the crash? + _dbus_warn("\tTODO check2_try_iterations: segfault_service_no_auto_start\n"); #else + printf("\tcheck2_try_iterations: segfault_service_no_auto_start\n"); check2_try_iterations (context, foo, "segfault_service_no_auto_start", check_segfault_service_no_auto_start); #endif +#ifdef DBUS_WIN_FIXME//_remove_if_it_really_works + // Is the test really that time consuming? + _dbus_warn("\tTODO check2_try_iterations: existent_service_no_auto_start \n"); +#else + printf("\tcheck2_try_iterations: existent_service_no_auto_start \n"); check2_try_iterations (context, foo, "existent_service_no_auto_start", check_existent_service_no_auto_start); - +#endif + +#ifdef DBUS_WIN_FIXME//_remove_if_it_really_works + _dbus_warn("\tTODO check2_try_iterations: nonexistent_service_auto_start \n"); +#else + printf("\tcheck2_try_iterations: nonexistent_service_auto_start \n"); check2_try_iterations (context, foo, "nonexistent_service_auto_start", check_nonexistent_service_auto_start); - +#endif -#ifdef DBUS_WIN_FIXME - _dbus_warn("TODO: dispatch.c segfault_service_auto_start test\n"); +#ifdef DBUS_WIN_FIXME//_remove_if_it_really_works + _dbus_warn("\tTODO check2_try_iterations: segfault_service_auto_start \n"); #else - /* only do the segfault test if we are not using the launcher */ check2_try_iterations (context, foo, "segfault_service_auto_start", check_segfault_service_auto_start); #endif + /* only do the shell fail test if we are not using the launcher */ - /* only do the shell fail test if we are not using the launcher */ +#ifdef DBUS_WIN_FIXME//_remove_if_it_really_works + // endless waiting + _dbus_warn("\tTODO check2_try_iterations: shell_fail_service_auto_start \n"); +#else check2_try_iterations (context, foo, "shell_fail_service_auto_start", check_shell_fail_service_auto_start); +#endif /* specific to launcher */ if (use_launcher) @@ -4571,11 +4624,17 @@ check_existent_service_auto_start); #endif + printf("\tcheck: check_existent_service_auto_start \n"); if (!check_existent_service_auto_start (context, foo)) _dbus_assert_not_reached ("existent service auto start failed"); +#ifdef DBUS_WIN_FIXME//_remove_if_it_really_works + _dbus_warn("\tTODO check_shell_service_success_auto_start \n"); +#else + printf("\tcheck_shell_service_success_auto_start \n"); if (!check_shell_service_success_auto_start (context, foo)) _dbus_assert_not_reached ("shell success service auto start failed"); +#endif _dbus_verbose ("Disconnecting foo, bar, and baz\n"); @@ -4706,8 +4765,14 @@ _dbus_assert_not_reached ("initial connection setup failed"); } +#ifdef DBUS_WIN_FIXME//_remove_if_it_really_works + // very time consuming + _dbus_warn("\tTODO check1_try_iterations: create_and_hello_sha1 \n"); +#else + printf("\tcheck1_try_iterations: create_and_hello_sha1 \n"); check1_try_iterations (context, "create_and_hello_sha1", check_hello_connection); +#endif kill_client_connection_unchecked (foo); Modified: trunk/bus/driver.c =================================================================== --- trunk/bus/driver.c 2008-05-21 15:31:33 UTC (rev 782) +++ trunk/bus/driver.c 2008-07-02 15:59:21 UTC (rev 783) @@ -35,6 +35,10 @@ #include <dbus/dbus-marshal-recursive.h> #include <string.h> +#ifdef DBUS_WIN +#define DBUS_CLEANUP_OLD_SERVICES +#endif + static dbus_bool_t bus_driver_send_welcome_message (DBusConnection *connection, DBusMessage *hello_message, BusTransaction *transaction, @@ -676,6 +680,11 @@ return retval; } +#ifdef DBUS_CLEANUP_OLD_SERVICES +extern _dbus_process_exists (int pid); +extern int _dbus_find_unique_pid (BusRegistry *registry, const char *service_name); +#endif + static dbus_bool_t bus_driver_handle_service_exists (DBusConnection *connection, BusTransaction *transaction, @@ -709,6 +718,15 @@ { _dbus_string_init_const (&service_name, name); service = bus_registry_lookup (registry, &service_name); + +#ifdef DBUS_CLEANUP_OLD_SERVICES + if (service) + { + int pid = _dbus_find_unique_pid (registry, name); + if (pid != 0 && !_dbus_process_exists (pid)) + service = NULL; + } +#endif service_exists = service != NULL; } Modified: trunk/bus/services.c =================================================================== --- trunk/bus/services.c 2008-05-21 15:31:33 UTC (rev 782) +++ trunk/bus/services.c 2008-07-02 15:59:21 UTC (rev 783) @@ -35,6 +35,10 @@ #include "bus.h" #include "selinux.h" +#ifdef DBUS_WIN +#define DBUS_CLEANUP_OLD_SERVICES +#endif + struct BusService { int refcount; @@ -64,6 +68,9 @@ DBusHashTable *service_hash; DBusMemPool *service_pool; DBusMemPool *owner_pool; +#ifdef DBUS_CLEANUP_OLD_SERVICES + DBusHashTable *unique_pid_hash; +#endif DBusHashTable *service_sid_table; }; @@ -85,6 +92,14 @@ if (registry->service_hash == NULL) goto failed; + +#ifdef DBUS_CLEANUP_OLD_SERVICES + registry->unique_pid_hash = _dbus_hash_table_new (DBUS_HASH_STRING, + dbus_free, NULL); + if (registry->unique_pid_hash == NULL) + goto failed; +#endif + registry->service_pool = _dbus_mem_pool_new (sizeof (BusService), TRUE); @@ -125,6 +140,10 @@ { if (registry->service_hash) _dbus_hash_table_unref (registry->service_hash); +#ifdef DBUS_CLEANUP_OLD_SERVICES + if (registry->unique_pid_hash) + _dbus_hash_table_unref (registry->unique_pid_hash); +#endif if (registry->service_pool) _dbus_mem_pool_free (registry->service_pool); if (registry->owner_pool) @@ -372,10 +391,147 @@ return FALSE; } +#ifdef DBUS_CLEANUP_OLD_SERVICES +#include <stdlib.h> +#include <windows.h> +#include <Tlhelp32.h> + +int _dbus_get_base_service_name_and_pid (const char *service_name, + char **base_service_name) +{ + static const char* unique_part = ".unique-"; + char* unique_part_pos; + char* result; + int pid; + unique_part_pos = strstr (service_name, unique_part); + if (unique_part_pos == NULL) + return 0; + pid = 0; + if (strlen(unique_part_pos + 8 /*".unique-"*/) > 0) + pid = atoi( unique_part_pos + 8 ); + if (pid == 0) + return 0; + result = _dbus_strdup (service_name); + result[ unique_part_pos - service_name ] = 0; // cut off before .unique. + *base_service_name = result; + return pid; +} + +static void +bus_service_unlink (BusService *service); + dbus_bool_t +_dbus_process_exists (int pid) +{ + HANDLE proc_handle; + HANDLE hProcessSnap; + PROCESSENTRY32 pe32; + + proc_handle = OpenProcess (PROCESS_ALL_ACCESS, FALSE, pid); + if (proc_handle == 0) + return FALSE; + // this process _may_ still exists: do nothing, so DBUS_REQUEST_NAME_REPLY_EXISTS result will be set + CloseHandle (proc_handle); + // find out if the process isn't a zombie + hProcessSnap = CreateToolhelp32Snapshot (TH32CS_SNAPPROCESS, 0); + if (hProcessSnap == INVALID_HANDLE_VALUE) + return TRUE; + pe32.dwSize = sizeof( PROCESSENTRY32 ); + if (!Process32First(hProcessSnap, &pe32)) + { + CloseHandle (hProcessSnap); + return TRUE; + } + do + { + if (pe32.th32ProcessID == pid) + { + CloseHandle (hProcessSnap); + return TRUE; + } + } while (Process32Next (hProcessSnap,&pe32)); + CloseHandle (hProcessSnap); + return FALSE; +} + +int +_dbus_find_unique_pid (BusRegistry *registry, const char *service_name) +{ + return (int)_dbus_hash_table_lookup_string (registry->unique_pid_hash, + service_name); +} + +static dbus_bool_t +_dbus_registry_release_old_service_win_if_unique (BusRegistry *registry, + DBusConnection *connection, + const char *base_service_name, + int pid, + BusTransaction *transaction, + DBusError *error) +{ + BusService *service; + DBusConnection *connection_to_release; + DBusString base_service_name_str; + dbus_uint32_t service_reply; + char *base_service_name_copy; + int old_pid; + + old_pid = _dbus_find_unique_pid (registry, base_service_name); + if (pid == old_pid) + return TRUE; + + if (old_pid != 0) + { + if (_dbus_process_exists (old_pid)) + return TRUE; + // no such process: + // release old service + _dbus_string_init_const (&base_service_name_str, base_service_name); + _dbus_verbose ("Attempt to release old unique service \"%s\"", + base_service_name); + service = bus_registry_lookup (registry, &base_service_name_str); + if (service) { + struct DBusList *link; + BusOwner* owner; + link = _dbus_list_get_first_link (&service->owners); + owner = (BusOwner *)link->data; + connection_to_release = owner->conn; + } + else + { + connection_to_release = connection; + } + + if (!bus_registry_release_service (registry, connection_to_release, &base_service_name_str, &service_reply, + transaction, error)) + { + _dbus_string_free (&base_service_name_str); + dbus_set_error (error, DBUS_ERROR_INVALID_ARGS, + "Cannot release old unique service \"%s\"", + base_service_name); + return FALSE; + } + _dbus_string_free (&base_service_name_str); + _dbus_verbose ("_dbus_registry_release_old_service_win_if_unique(): Service \"%s\" released\n", + base_service_name); + } + // remember new PID for this service + base_service_name_copy = _dbus_strdup (base_service_name); + if (!_dbus_hash_table_insert_string (registry->unique_pid_hash, + base_service_name_copy, + (void*)pid)) + { + dbus_free (base_service_name_copy); + return FALSE; + } + return TRUE; +} +#endif + +dbus_bool_t bus_registry_acquire_service (BusRegistry *registry, DBusConnection *connection, - const DBusString *service_name, + const DBusString *a_service_name, dbus_uint32_t flags, dbus_uint32_t *result, BusTransaction *transaction, @@ -389,9 +545,28 @@ BusActivation *activation; BusSELinuxID *sid; BusOwner *primary_owner; + int pid; + char *service_name_tmp; + DBusString *service_name; // real name + DBusString service_name_stack; retval = FALSE; + pid = _dbus_get_base_service_name_and_pid (_dbus_string_get_const_data (a_service_name), + &service_name_tmp); + if (pid == 0) + { + service_name = a_service_name; + service_name_tmp = 0; + } + else + { + _dbus_string_init_const (&service_name_stack, service_name_tmp); + service_name = &service_name_stack; + _dbus_registry_release_old_service_win_if_unique ( + registry, connection, service_name_tmp, pid, transaction, error); + } + if (!_dbus_validate_bus_name (service_name, 0, _dbus_string_get_length (service_name))) { @@ -594,6 +769,10 @@ error); out: +#ifdef DBUS_CLEANUP_OLD_SERVICES + if (service_name_tmp) + free (service_name_tmp); +#endif return retval; } @@ -671,6 +850,14 @@ retval = TRUE; out: +#ifdef DBUS_CLEANUP_OLD_SERVICES + if (retval) + { + // remove old entry + _dbus_hash_table_remove_string (registry->unique_pid_hash, + _dbus_string_get_const_data(service_name)); + } +#endif return retval; } Modified: trunk/dbus/dbus-bus.c =================================================================== --- trunk/dbus/dbus-bus.c 2008-05-21 15:31:33 UTC (rev 782) +++ trunk/dbus/dbus-bus.c 2008-07-02 15:59:21 UTC (rev 783) @@ -350,8 +350,10 @@ { int i; +#if !defined(DBUS_WIN) && !defined(DBUS_WINCE) + // qt example pong says "QMutex::lock: Deadlock detected" _DBUS_LOCK (bus); - +#endif /* We are expecting to have the connection saved in only one of these * slots, but someone could in a pathological case set system and session * bus to the same bus or something. Or set one of them to the starter @@ -366,7 +368,9 @@ } } +#if !defined(DBUS_WIN) && !defined(DBUS_WINCE) _DBUS_UNLOCK (bus); +#endif } static DBusConnection * Modified: trunk/dbus/dbus-mainloop.c =================================================================== --- trunk/dbus/dbus-mainloop.c 2008-05-21 15:31:33 UTC (rev 782) +++ trunk/dbus/dbus-mainloop.c 2008-07-02 15:59:21 UTC (rev 783) @@ -883,6 +883,8 @@ loop->depth -= 1; + _dbus_daemon_release (); + _dbus_verbose ("Quit main loop, depth %d -> %d\n", loop->depth + 1, loop->depth); } Modified: trunk/dbus/dbus-sysdeps-util-win.c =================================================================== --- trunk/dbus/dbus-sysdeps-util-win.c 2008-05-21 15:31:33 UTC (rev 782) +++ trunk/dbus/dbus-sysdeps-util-win.c 2008-07-02 15:59:21 UTC (rev 783) @@ -32,6 +32,7 @@ #include "dbus-string.h" #include "dbus-sysdeps.h" #include "dbus-sysdeps-win.h" +#include "dbus-sockets-win.h" #include "dbus-memory.h" #include <io.h> Modified: trunk/dbus/dbus-sysdeps-util.c =================================================================== --- trunk/dbus/dbus-sysdeps-util.c 2008-05-21 15:31:33 UTC (rev 782) +++ trunk/dbus/dbus-sysdeps-util.c 2008-07-02 15:59:21 UTC (rev 783) @@ -141,6 +141,7 @@ exit (1); } +#ifndef DBUS_WIN_FIXME _dbus_string_init_const (&str, "0xff"); if (_dbus_string_parse_double (&str, 0, &val, &pos)) @@ -148,6 +149,7 @@ _dbus_warn ("Should not have parsed hex as double\n"); exit (1); } +#endif #ifdef DBUS_WIN check_path_absolute ("c:/", TRUE); Modified: trunk/dbus/dbus-sysdeps-win.c =================================================================== --- trunk/dbus/dbus-sysdeps-win.c 2008-05-21 15:31:33 UTC (rev 782) +++ trunk/dbus/dbus-sysdeps-win.c 2008-07-02 15:59:21 UTC (rev 783) @@ -3118,14 +3118,16 @@ if (_dbus_daemon_already_runs(address)) { - printf("dbus daemon already exists\n"); + _dbus_verbose("found already running dbus daemon\n"); retval = TRUE; goto out; } if (!SearchPathA(NULL, "dbus-daemon.exe", NULL, sizeof(dbus_exe_path), dbus_exe_path, &lpFile)) { - printf ("could not find dbus-daemon executable\n"); + printf ("please add the path to dbus-daemon.exe to your PATH environment variable\n"); + printf ("or start the daemon manually\n\n"); + printf (""); goto out; } @@ -3367,12 +3369,15 @@ { char path[MAX_PATH*2]; int path_size = sizeof(path); + int len = 4 + strlen(s); if (!_dbus_get_install_root(path,path_size)) return FALSE; - strcat_s(path,path_size,"etc\\"); - strcat_s(path,path_size,s); + if(len > sizeof(path)-2) + return FALSE; + strcat(path,"etc\\"); + strcat(path,s); if (_dbus_file_exists(path)) { // find path from executable @@ -3383,8 +3388,10 @@ { if (!_dbus_get_install_root(path,path_size)) return FALSE; - strcat_s(path,path_size,"bus\\"); - strcat_s(path,path_size,s); + if(len + strlen(path) > sizeof(path)-2) + return FALSE; + strcat(path,"bus\\"); + strcat(path,s); if (_dbus_file_exists(path)) { Modified: trunk/dbus/dbus-sysdeps.c =================================================================== --- trunk/dbus/dbus-sysdeps.c 2008-05-21 15:31:33 UTC (rev 782) +++ trunk/dbus/dbus-sysdeps.c 2008-07-02 15:59:21 UTC (rev 783) @@ -1028,7 +1028,11 @@ dbus_bool_t _dbus_get_is_errno_enomem (void) { +#ifdef ENOMEM return errno == ENOMEM; +#else + return FALSE; +#endif } /** @@ -1038,7 +1042,11 @@ dbus_bool_t _dbus_get_is_errno_eintr (void) { +#ifdef EINTR return errno == EINTR; +#else + return FALSE; +#endif } /** Modified: trunk/dbus/dbus-sysdeps.h =================================================================== --- trunk/dbus/dbus-sysdeps.h 2008-05-21 15:31:33 UTC (rev 782) +++ trunk/dbus/dbus-sysdeps.h 2008-07-02 15:59:21 UTC (rev 783) @@ -134,6 +134,7 @@ * */ +void _dbus_daemon_release (void); dbus_bool_t _dbus_open_tcp_socket (int *fd, DBusError *error); dbus_bool_t _dbus_close_socket (int fd, Modified: trunk/dbus/dbus-threads.c =================================================================== --- trunk/dbus/dbus-threads.c 2008-05-21 15:31:33 UTC (rev 782) +++ trunk/dbus/dbus-threads.c 2008-07-02 15:59:21 UTC (rev 783) @@ -810,7 +810,11 @@ dbus_bool_t _dbus_threads_init_debug (void) { +#if defined(DBUS_WIN) + return _dbus_threads_init_platform_specific(); +#else return dbus_threads_init (&fake_functions); +#endif } #endif /* DBUS_BUILD_TESTS */ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <che...@us...> - 2008-05-21 15:32:20
|
Revision: 782 http://windbus.svn.sourceforge.net/windbus/?rev=782&view=rev Author: chehrlic Date: 2008-05-21 08:31:33 -0700 (Wed, 21 May 2008) Log Message: ----------- fix cmake cmp0003 warning the correct way Modified Paths: -------------- trunk/cmake/CMakeLists.txt trunk/cmake/dbus/CMakeLists.txt Modified: trunk/cmake/CMakeLists.txt =================================================================== --- trunk/cmake/CMakeLists.txt 2008-05-09 16:17:13 UTC (rev 781) +++ trunk/cmake/CMakeLists.txt 2008-05-21 15:31:33 UTC (rev 782) @@ -21,7 +21,10 @@ # we need to be up to date CMAKE_MINIMUM_REQUIRED(VERSION 2.4.4 FATAL_ERROR) - +if(COMMAND cmake_policy) + cmake_policy(SET CMP0003 NEW) +endif(COMMAND cmake_policy) + # where to look first for cmake modules, before ${CMAKE_ROOT}/Modules/ is checked set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/modules") Modified: trunk/cmake/dbus/CMakeLists.txt =================================================================== --- trunk/cmake/dbus/CMakeLists.txt 2008-05-09 16:17:13 UTC (rev 781) +++ trunk/cmake/dbus/CMakeLists.txt 2008-05-21 15:31:33 UTC (rev 782) @@ -193,10 +193,7 @@ ${DBUS_DIR}/dbus-sockets-win.h ${DBUS_DIR}/dbus-sysdeps-win.h ) - find_library(WS2_32_LIBRARY ws2_32) - find_library(ADVAPI32_LIBRARY advapi32) - find_library(NETAPI32_LIBRARY netapi32) - set (LIBS ${LIBS} ${WS2_32_LIBRARY} ${ADVAPI32_LIBRARY} ${NETAPI32_LIBRARY}) + set (LIBS ${LIBS} ws2_32 advapi32 netapi32) else (WIN32) set (DBUS_SHARED_SOURCES ${DBUS_SHARED_SOURCES} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: m s <ms....@gm...> - 2008-05-14 17:19:56
|
I finally figure out how to fix the problem. In addition to adding the wspiapi.h file to the dbus directory, You have to make sure that you are linking to mingw's libws2_32.a and not to windows ws2_32.dll (as it does by default - beacuse windows\system32 happens to be in the path first) I used cmake GUI (cmake 2.6 has an interesting GUI interface - where you can turn on advanced entries and see the paths used) to change the ws2_32 library away from windows dll to the mingw dll I thought I'd share my findings just for others who may be new to this and run into this issue. I already spent a lot of timing tracing this issue and resolving it. Cheers -MS On 5/13/08, m s <ms....@gm...> wrote: > > Ok I downloaded the patch that includes "wspiapi.h" and tried. > > "wspiapi.h" was not a part of the Windows platform SDK, so I searched for > it and added it to the local direcory - it would be better to add it to the > repository or update the readme.win file to point to the appropirate include > package. > > And I was still not able to compile - it seemed it was looking for some > deifnes that I found in winsock2.h. So I added that to dbus-sysdeps-win.c. > And I still bet compile errors. <SEE BELOW> > > BTW I also tried searching for ws2_32.lib - but it is not a part of > platform SDK. > > Any pointers? > I am stuck here. It seems some instructions are missing from the readme.win > file that are causing this issues on my system. > > My setup is: > CMake:2.6 > Mingw - 5.4.1 > Gnu win32 > Plaform SDK > > -MS > > > C:\windbusSvnCvs\windbus-build> > > C:\windbusSvnCvs\windbus-build>mingw32-make > Linking C shared library ..\bin\libdbus-1.dll > CMakeFiles\dbus-1.dir\C_\windbusSvnCvs\dbus\dbus-sysdeps-win.obj: In > function `W > spiapiParseV4Address': > C:/windbusSvnCvs/dbus/wspiapi.h:128: undefined reference to `inet_addr@4'<%60inet_addr@4'> > CMakeFiles\dbus-1.dir\C_\windbusSvnCvs\dbus\dbus-sysdeps-win.obj: In > function `W > spiapiQueryDNS': > C:/windbusSvnCvs/dbus/wspiapi.h:232: undefined reference to > `gethostbyname@4' <%60gethostbyname@4'> > C:/windbusSvnCvs/dbus/wspiapi.h:260: undefined reference to > `WSAGetLastError@0' <%60WSAGetLastError@0'> > CMakeFiles\dbus-1.dir\C_\windbusSvnCvs\dbus\dbus-sysdeps-win.obj: In > function `W > spiapiLegacyGetAddrInfo': > C:/windbusSvnCvs/dbus/wspiapi.h:541: undefined reference to `htons@4'<%60htons@4'> > C:/windbusSvnCvs/dbus/wspiapi.h:552: undefined reference to > `getservbyname@8' <%60getservbyname@8'> > C:/windbusSvnCvs/dbus/wspiapi.h:559: undefined reference to > `getservbyname@8' <%60getservbyname@8'> > C:/windbusSvnCvs/dbus/wspiapi.h:592: undefined reference to `htonl@4'<%60htonl@4'> > C:/windbusSvnCvs/dbus/wspiapi.h:612: undefined reference to `inet_ntoa@4'<%60inet_ntoa@4'> > CMakeFiles\dbus-1.dir\C_\windbusSvnCvs\dbus\dbus-sysdeps-win.obj: In > function `W > spiapiLegacyGetNameInfo': > C:/windbusSvnCvs/dbus/wspiapi.h:733: undefined reference to `ntohs@4'<%60ntohs@4'> > C:/windbusSvnCvs/dbus/wspiapi.h:738: undefined reference to > `getservbyport@8' <%60getservbyport@8'> > C:/windbusSvnCvs/dbus/wspiapi.h:748: undefined reference to `ntohs@4'<%60ntohs@4'> > C:/windbusSvnCvs/dbus/wspiapi.h:769: undefined reference to `inet_ntoa@4'<%60inet_ntoa@4'> > C:/windbusSvnCvs/dbus/wspiapi.h:774: undefined reference to > `gethostbyaddr@12' <%60gethostbyaddr@12'> > C:/windbusSvnCvs/dbus/wspiapi.h:790: undefined reference to > `WSAGetLastError@0' <%60WSAGetLastError@0'> > C:/windbusSvnCvs/dbus/wspiapi.h:799: undefined reference to `inet_ntoa@4'<%60inet_ntoa@4'> > CMakeFiles\dbus-1.dir\C_\windbusSvnCvs\dbus\dbus-sysdeps-win.obj: In > function `d > bus_read_socket': > C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:313: undefined reference to > `recv@16' <%60recv@16'> > C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:317: undefined reference to > `WSAGetLast > Error@0' > CMakeFiles\dbus-1.dir\C_\windbusSvnCvs\dbus\dbus-sysdeps-win.obj: In > function `d > bus_write_socket': > C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:373: undefined reference to > `send@16' <%60send@16'> > C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:377: undefined reference to > `WSAGetLast > Error@0' > CMakeFiles\dbus-1.dir\C_\windbusSvnCvs\dbus\dbus-sysdeps-win.obj: In > function `d > bus_close_socket': > C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:410: undefined reference to > `closesocke > t@4' > C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:412: undefined reference to > `WSAGetLast > Error@0' > CMakeFiles\dbus-1.dir\C_\windbusSvnCvs\dbus\dbus-sysdeps-win.obj: In > function `d > bus_set_fd_nonblocking': > C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:479: undefined reference to > `ioctlsocke > t@12' > C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:481: undefined reference to > `WSAGetLast > Error@0' > C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:481: undefined reference to > `WSAGetLast > Error@0' > CMakeFiles\dbus-1.dir\C_\windbusSvnCvs\dbus\dbus-sysdeps-win.obj: In > function `d > bus_write_socket_two': > C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:553: undefined reference to > `WSASend@28 <%60WSASend@28> > ' > C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:563: undefined reference to > `WSAGetLast > Error@0' > CMakeFiles\dbus-1.dir\C_\windbusSvnCvs\dbus\dbus-sysdeps-win.obj: In > function `d > bus_win_startup_winsock': > C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:613: undefined reference to > `WSAStartup > @8' > CMakeFiles\dbus-1.dir\C_\windbusSvnCvs\dbus\dbus-sysdeps-win.obj: In > function `d > bus_full_duplex_pipe': > C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:972: undefined reference to > `socket@12' <%60socket@12'> > > C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:975: undefined reference to > `WSAGetLast > Error@0' > C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:980: undefined reference to > `ioctlsocke > t@12' > C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:982: undefined reference to > `WSAGetLast > Error@0' > C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:989: undefined reference to > `htonl@4' <%60htonl@4'> > C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:991: undefined reference to > `bind@12' <%60bind@12'> > C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:993: undefined reference to > `WSAGetLast > Error@0' > C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:997: undefined reference to > `listen@8' <%60listen@8'> > C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:999: undefined reference to > `WSAGetLast > Error@0' > C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:1004: undefined reference to > `getsockna > me@12' > C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:1006: undefined reference to > `WSAGetLas > tError@0' > C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:1010: undefined reference to > `socket@12 <%60socket@12> > ' > C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:1013: undefined reference to > `WSAGetLas > tError@0' > C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:1018: undefined reference to > `ioctlsock > et@12' > C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:1020: undefined reference to > `WSAGetLas > tError@0' > C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:1024: undefined reference to > `connect@1 <%60connect@1> > 2' > C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:1024: undefined reference to > `WSAGetLas > tError@0' > C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:1027: undefined reference to > `WSAGetLas > tError@0' > C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:1037: undefined reference to > `select@20 <%60select@20> > ' > C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:1039: undefined reference to > `WSAGetLas > tError@0' > C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:1043: undefined reference to > `__WSAFDIs > Set@8' > C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:1045: undefined reference to > `accept@12 <%60accept@12> > ' > C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:1048: undefined reference to > `WSAGetLas > tError@0' > C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:1058: undefined reference to > `select@20 <%60select@20> > ' > C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:1060: undefined reference to > `WSAGetLas > tError@0' > C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:1064: undefined reference to > `__WSAFDIs > Set@8' > C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:1069: undefined reference to > `ioctlsock > et@12' > C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:1071: undefined reference to > `WSAGetLas > tError@0' > C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:1076: undefined reference to > `ioctlsock > et@12' > C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:1078: undefined reference to > `WSAGetLas > tError@0' > C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:1085: undefined reference to > `ioctlsock > et@12' > C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:1087: undefined reference to > `WSAGetLas > tError@0' > C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:1098: undefined reference to > `closesock > et@4' > C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:1103: undefined reference to > `closesock > et@4' > C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:1105: undefined reference to > `closesock > et@4' > C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:1107: undefined reference to > `closesock > et@4' > CMakeFiles\dbus-1.dir\C_\windbusSvnCvs\dbus\dbus-sysdeps-win.obj: In > function `d > bus_poll': > C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:1340: undefined reference to > `select@20 <%60select@20> > ' > C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:1345: undefined reference to > `WSAGetLas > tError@0' > C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:1362: undefined reference to > `__WSAFDIs > Set@8' > C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:1365: undefined reference to > `__WSAFDIs > Set@8' > C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:1368: undefined reference to > `__WSAFDIs > Set@8' > C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:1381: undefined reference to > `__WSAFDIs > Set@8' > C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:1384: undefined reference to > `__WSAFDIs > Set@8' > > CMakeFiles\dbus-1.dir\C_\windbusSvnCvs\dbus\dbus-sysdeps-win.obj:C:/windbusSvnCv > s/dbus/dbus-sysdeps-win.c:1387: more undefined references to > `__WSAFDIsSet@8' <%60__WSAFDIsSet@8'> fo > llow > CMakeFiles\dbus-1.dir\C_\windbusSvnCvs\dbus\dbus-sysdeps-win.obj: In > function `d > bus_connect_tcp_socket': > C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:1477: undefined reference to > `socket@12 <%60socket@12> > ' > C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:1481: undefined reference to > `WSAGetLas > tError@0' > C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:1522: undefined reference to > `closesock > et@4' > C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:1529: undefined reference to > `socket@12 <%60socket@12> > ' > C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:1540: undefined reference to > `connect@1 <%60connect@1> > 2' > C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:1542: undefined reference to > `closesock > et@4' > C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:1564: undefined reference to > `closesock > et@4' > CMakeFiles\dbus-1.dir\C_\windbusSvnCvs\dbus\dbus-sysdeps-win.obj: In > function `d > bus_listen_tcp_socket': > C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:1647: undefined reference to > `socket@12 <%60socket@12> > ' > C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:1657: Creating library file: > ..\bin\lib > dbus-1.dll.a > undefined reference to `bind@12' <%60bind@12'> > C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:1659: undefined reference to > `closesock > et@4' > C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:1666: undefined reference to > `listen@8' <%60listen@8'> > > C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:1668: undefined reference to > `closesock > et@4' > C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:1678: undefined reference to > `closesock > et@4' > C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:1701: undefined reference to > `getsockna > me@12' > C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:1766: undefined reference to > `closesock > et@4' > CMakeFiles\dbus-1.dir\C_\windbusSvnCvs\dbus\dbus-sysdeps-win.obj: In > function `d > bus_accept': > C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:1785: undefined reference to > `accept@12 <%60accept@12> > ' > C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:1789: undefined reference to > `WSAGetLas > tError@0' > CMakeFiles\dbus-1.dir\C_\windbusSvnCvs\dbus\dbus-spawn-win.obj: In function > `bab > ysitter': > C:/windbusSvnCvs/dbus/dbus-spawn-win.c:529: undefined reference to > `send@16' <%60send@16'> > collect2: ld returned 1 exit status > mingw32-make[2]: *** [bin/libdbus-1.dll] Error 1 > mingw32-make[1]: *** [dbus/CMakeFiles/dbus-1.dir/all] Error 2 > mingw32-make: *** [all] Error 2 > > C:\windbusSvnCvs\windbus-build> > C:\windbusSvnCvs\windbus-build> > C:\windbusSvnCvs\windbus-build> > |
From: m s <ms....@gm...> - 2008-05-13 20:40:02
|
On 5/13/08, m s <ms....@gm...> wrote: > > Hack is fine with me - what I am saying is that doesnt work for me. > BTW the initial problems I was having was in compiling the sources I got > from the trunk itself, and that you say works for you all. > > So what my question probably is - what is the development environment > requirement for windbus? > And I hae the following on my system (where it doesnt compile) > > CMake:2.6 > Mingw - 5.4.1 > Gnu win32 > Plaform SDK v 6.1 > So obviously I am missing something and that is what I want to know? I > couldnt figure out more from the documentations available. > -MS > > > > > On 5/13/08, Christian Ehrlicher <Ch....@gm...> wrote: > > > > m s schrieb: > > > > > Ok I downloaded the patch that includes "wspiapi.h" and tried. > > > "wspiapi.h" was not a part of the Windows platform SDK, so I searched > > > for it and added it to the local direcory - it would be better to add it to > > > the repository or update the readme.win file to point to the appropirate > > > include package. > > > And I was still not able to compile - it seemed it was looking for > > > some deifnes that I found in winsock2.h. So I added that to > > > dbus-sysdeps-win.c. > > > And I still bet compile errors. <SEE BELOW> > > > > > What did you do not understand when I said 'hack'? It's nothing more, no > > official relase, nothing. > > If you want use 1.1.2 from trunk which compiles fine here. > > ou only have to copy the header, nothing more - if you add other headers > > it might not work. > > > > BTW I also tried searching for ws2_32.lib - but it is not a part of > > > platform SDK. > > > > > You don't need it at all - you're using mingw and therefore need > > ws2_32.a which is part of mingw toolkit. And if not - ws2_32.dll works too. > > > > > Any pointers? > > > I am stuck here. It seems some instructions are missing from the > > > readme.win file that are causing this issues on my system. > > > > > > > > Use 1.1.2 or precompiled ones from winkde.org > > > > > > Christian > > > > |
From: Christian E. <Ch....@gm...> - 2008-05-13 19:18:45
|
m s schrieb: > Ok I downloaded the patch that includes "wspiapi.h" and tried. > > "wspiapi.h" was not a part of the Windows platform SDK, so I searched > for it and added it to the local direcory - it would be better to add it > to the repository or update the readme.win file to point to the > appropirate include package. > > And I was still not able to compile - it seemed it was looking for some > deifnes that I found in winsock2.h. So I added that to dbus-sysdeps-win.c. > And I still bet compile errors. <SEE BELOW> What did you do not understand when I said 'hack'? It's nothing more, no official relase, nothing. If you want use 1.1.2 from trunk which compiles fine here. ou only have to copy the header, nothing more - if you add other headers it might not work. > > BTW I also tried searching for ws2_32.lib - but it is not a part of > platform SDK. You don't need it at all - you're using mingw and therefore need ws2_32.a which is part of mingw toolkit. And if not - ws2_32.dll works too. > > Any pointers? > I am stuck here. It seems some instructions are missing from the > readme.win file that are causing this issues on my system. > Use 1.1.2 or precompiled ones from winkde.org Christian |
From: m s <ms....@gm...> - 2008-05-13 19:07:35
|
Ok I downloaded the patch that includes "wspiapi.h" and tried. "wspiapi.h" was not a part of the Windows platform SDK, so I searched for it and added it to the local direcory - it would be better to add it to the repository or update the readme.win file to point to the appropirate include package. And I was still not able to compile - it seemed it was looking for some deifnes that I found in winsock2.h. So I added that to dbus-sysdeps-win.c. And I still bet compile errors. <SEE BELOW> BTW I also tried searching for ws2_32.lib - but it is not a part of platform SDK. Any pointers? I am stuck here. It seems some instructions are missing from the readme.win file that are causing this issues on my system. My setup is: CMake:2.6 Mingw - 5.4.1 Gnu win32 Plaform SDK -MS C:\windbusSvnCvs\windbus-build> C:\windbusSvnCvs\windbus-build>mingw32-make Linking C shared library ..\bin\libdbus-1.dll CMakeFiles\dbus-1.dir\C_\windbusSvnCvs\dbus\dbus-sysdeps-win.obj: In function `W spiapiParseV4Address': C:/windbusSvnCvs/dbus/wspiapi.h:128: undefined reference to `inet_addr@4'<%60inet_addr@4'> CMakeFiles\dbus-1.dir\C_\windbusSvnCvs\dbus\dbus-sysdeps-win.obj: In function `W spiapiQueryDNS': C:/windbusSvnCvs/dbus/wspiapi.h:232: undefined reference to `gethostbyname@4' <%60gethostbyname@4'> C:/windbusSvnCvs/dbus/wspiapi.h:260: undefined reference to `WSAGetLastError@0' <%60WSAGetLastError@0'> CMakeFiles\dbus-1.dir\C_\windbusSvnCvs\dbus\dbus-sysdeps-win.obj: In function `W spiapiLegacyGetAddrInfo': C:/windbusSvnCvs/dbus/wspiapi.h:541: undefined reference to `htons@4'<%60htons@4'> C:/windbusSvnCvs/dbus/wspiapi.h:552: undefined reference to `getservbyname@8' <%60getservbyname@8'> C:/windbusSvnCvs/dbus/wspiapi.h:559: undefined reference to `getservbyname@8' <%60getservbyname@8'> C:/windbusSvnCvs/dbus/wspiapi.h:592: undefined reference to `htonl@4'<%60htonl@4'> C:/windbusSvnCvs/dbus/wspiapi.h:612: undefined reference to `inet_ntoa@4'<%60inet_ntoa@4'> CMakeFiles\dbus-1.dir\C_\windbusSvnCvs\dbus\dbus-sysdeps-win.obj: In function `W spiapiLegacyGetNameInfo': C:/windbusSvnCvs/dbus/wspiapi.h:733: undefined reference to `ntohs@4'<%60ntohs@4'> C:/windbusSvnCvs/dbus/wspiapi.h:738: undefined reference to `getservbyport@8' <%60getservbyport@8'> C:/windbusSvnCvs/dbus/wspiapi.h:748: undefined reference to `ntohs@4'<%60ntohs@4'> C:/windbusSvnCvs/dbus/wspiapi.h:769: undefined reference to `inet_ntoa@4'<%60inet_ntoa@4'> C:/windbusSvnCvs/dbus/wspiapi.h:774: undefined reference to `gethostbyaddr@12' <%60gethostbyaddr@12'> C:/windbusSvnCvs/dbus/wspiapi.h:790: undefined reference to `WSAGetLastError@0' <%60WSAGetLastError@0'> C:/windbusSvnCvs/dbus/wspiapi.h:799: undefined reference to `inet_ntoa@4'<%60inet_ntoa@4'> CMakeFiles\dbus-1.dir\C_\windbusSvnCvs\dbus\dbus-sysdeps-win.obj: In function `d bus_read_socket': C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:313: undefined reference to `recv@16' <%60recv@16'> C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:317: undefined reference to `WSAGetLast Error@0' CMakeFiles\dbus-1.dir\C_\windbusSvnCvs\dbus\dbus-sysdeps-win.obj: In function `d bus_write_socket': C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:373: undefined reference to `send@16' <%60send@16'> C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:377: undefined reference to `WSAGetLast Error@0' CMakeFiles\dbus-1.dir\C_\windbusSvnCvs\dbus\dbus-sysdeps-win.obj: In function `d bus_close_socket': C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:410: undefined reference to `closesocke t@4' C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:412: undefined reference to `WSAGetLast Error@0' CMakeFiles\dbus-1.dir\C_\windbusSvnCvs\dbus\dbus-sysdeps-win.obj: In function `d bus_set_fd_nonblocking': C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:479: undefined reference to `ioctlsocke t@12' C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:481: undefined reference to `WSAGetLast Error@0' C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:481: undefined reference to `WSAGetLast Error@0' CMakeFiles\dbus-1.dir\C_\windbusSvnCvs\dbus\dbus-sysdeps-win.obj: In function `d bus_write_socket_two': C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:553: undefined reference to `WSASend@28 <%60WSASend@28> ' C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:563: undefined reference to `WSAGetLast Error@0' CMakeFiles\dbus-1.dir\C_\windbusSvnCvs\dbus\dbus-sysdeps-win.obj: In function `d bus_win_startup_winsock': C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:613: undefined reference to `WSAStartup @8' CMakeFiles\dbus-1.dir\C_\windbusSvnCvs\dbus\dbus-sysdeps-win.obj: In function `d bus_full_duplex_pipe': C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:972: undefined reference to `socket@12' <%60socket@12'> C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:975: undefined reference to `WSAGetLast Error@0' C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:980: undefined reference to `ioctlsocke t@12' C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:982: undefined reference to `WSAGetLast Error@0' C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:989: undefined reference to `htonl@4' <%60htonl@4'> C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:991: undefined reference to `bind@12' <%60bind@12'> C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:993: undefined reference to `WSAGetLast Error@0' C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:997: undefined reference to `listen@8' <%60listen@8'> C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:999: undefined reference to `WSAGetLast Error@0' C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:1004: undefined reference to `getsockna me@12' C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:1006: undefined reference to `WSAGetLas tError@0' C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:1010: undefined reference to `socket@12 <%60socket@12> ' C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:1013: undefined reference to `WSAGetLas tError@0' C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:1018: undefined reference to `ioctlsock et@12' C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:1020: undefined reference to `WSAGetLas tError@0' C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:1024: undefined reference to `connect@1 <%60connect@1> 2' C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:1024: undefined reference to `WSAGetLas tError@0' C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:1027: undefined reference to `WSAGetLas tError@0' C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:1037: undefined reference to `select@20 <%60select@20> ' C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:1039: undefined reference to `WSAGetLas tError@0' C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:1043: undefined reference to `__WSAFDIs Set@8' C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:1045: undefined reference to `accept@12 <%60accept@12> ' C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:1048: undefined reference to `WSAGetLas tError@0' C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:1058: undefined reference to `select@20 <%60select@20> ' C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:1060: undefined reference to `WSAGetLas tError@0' C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:1064: undefined reference to `__WSAFDIs Set@8' C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:1069: undefined reference to `ioctlsock et@12' C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:1071: undefined reference to `WSAGetLas tError@0' C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:1076: undefined reference to `ioctlsock et@12' C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:1078: undefined reference to `WSAGetLas tError@0' C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:1085: undefined reference to `ioctlsock et@12' C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:1087: undefined reference to `WSAGetLas tError@0' C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:1098: undefined reference to `closesock et@4' C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:1103: undefined reference to `closesock et@4' C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:1105: undefined reference to `closesock et@4' C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:1107: undefined reference to `closesock et@4' CMakeFiles\dbus-1.dir\C_\windbusSvnCvs\dbus\dbus-sysdeps-win.obj: In function `d bus_poll': C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:1340: undefined reference to `select@20 <%60select@20> ' C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:1345: undefined reference to `WSAGetLas tError@0' C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:1362: undefined reference to `__WSAFDIs Set@8' C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:1365: undefined reference to `__WSAFDIs Set@8' C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:1368: undefined reference to `__WSAFDIs Set@8' C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:1381: undefined reference to `__WSAFDIs Set@8' C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:1384: undefined reference to `__WSAFDIs Set@8' CMakeFiles\dbus-1.dir\C_\windbusSvnCvs\dbus\dbus-sysdeps-win.obj:C:/windbusSvnCv s/dbus/dbus-sysdeps-win.c:1387: more undefined references to `__WSAFDIsSet@8' <%60__WSAFDIsSet@8'> fo llow CMakeFiles\dbus-1.dir\C_\windbusSvnCvs\dbus\dbus-sysdeps-win.obj: In function `d bus_connect_tcp_socket': C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:1477: undefined reference to `socket@12 <%60socket@12> ' C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:1481: undefined reference to `WSAGetLas tError@0' C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:1522: undefined reference to `closesock et@4' C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:1529: undefined reference to `socket@12 <%60socket@12> ' C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:1540: undefined reference to `connect@1 <%60connect@1> 2' C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:1542: undefined reference to `closesock et@4' C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:1564: undefined reference to `closesock et@4' CMakeFiles\dbus-1.dir\C_\windbusSvnCvs\dbus\dbus-sysdeps-win.obj: In function `d bus_listen_tcp_socket': C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:1647: undefined reference to `socket@12 <%60socket@12> ' C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:1657: Creating library file: ..\bin\lib dbus-1.dll.a undefined reference to `bind@12' <%60bind@12'> C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:1659: undefined reference to `closesock et@4' C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:1666: undefined reference to `listen@8' <%60listen@8'> C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:1668: undefined reference to `closesock et@4' C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:1678: undefined reference to `closesock et@4' C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:1701: undefined reference to `getsockna me@12' C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:1766: undefined reference to `closesock et@4' CMakeFiles\dbus-1.dir\C_\windbusSvnCvs\dbus\dbus-sysdeps-win.obj: In function `d bus_accept': C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:1785: undefined reference to `accept@12 <%60accept@12> ' C:/windbusSvnCvs/dbus/dbus-sysdeps-win.c:1789: undefined reference to `WSAGetLas tError@0' CMakeFiles\dbus-1.dir\C_\windbusSvnCvs\dbus\dbus-spawn-win.obj: In function `bab ysitter': C:/windbusSvnCvs/dbus/dbus-spawn-win.c:529: undefined reference to `send@16'<%60send@16'> collect2: ld returned 1 exit status mingw32-make[2]: *** [bin/libdbus-1.dll] Error 1 mingw32-make[1]: *** [dbus/CMakeFiles/dbus-1.dir/all] Error 2 mingw32-make: *** [all] Error 2 C:\windbusSvnCvs\windbus-build> C:\windbusSvnCvs\windbus-build> C:\windbusSvnCvs\windbus-build> |
From: <che...@us...> - 2008-05-09 16:17:38
|
Revision: 781 http://windbus.svn.sourceforge.net/windbus/?rev=781&view=rev Author: chehrlic Date: 2008-05-09 09:17:13 -0700 (Fri, 09 May 2008) Log Message: ----------- mingw compile++ , w2k-support++ Modified Paths: -------------- trunk/dbus/dbus-sysdeps-win.c Modified: trunk/dbus/dbus-sysdeps-win.c =================================================================== --- trunk/dbus/dbus-sysdeps-win.c 2008-04-23 19:08:51 UTC (rev 780) +++ trunk/dbus/dbus-sysdeps-win.c 2008-05-09 16:17:13 UTC (rev 781) @@ -54,6 +54,14 @@ #include <sys/stat.h> #include <sys/types.h> +// needed for w2k compatibility (getaddrinfo/freeaddrinfo/getnameinfo) +#ifdef __GNUC__ +#define _inline +#include "wspiapi.h" +#else +#include <wspiapi.h> +#endif + #ifndef O_BINARY #define O_BINARY 0 #endif This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: Christian E. <Ch....@gm...> - 2008-05-09 08:32:08
|
> Von: "Olivier Hochreutiner" > > In f > > unction `dbus_read_socket': > > C:/WinDBusDownloads/svncvs/dbus/dbus-sysdeps-win.c:305: undefined > reference > > to ` > > recv@16' > > C:/WinDBusDownloads/svncvs/dbus/dbus-sysdeps-win.c:309: undefined > reference > > to ` > > WSAGetLastError@0' > > > CMakeFiles\dbus-1.dir\C_\WinDBusDownloads\svncvs\dbus\dbus-sysdeps-win.obj: > > In f > > unction `dbus_write_socket': > > C:/WinDBusDownloads/svncvs/dbus/dbus-sysdeps-win.c:365: undefined > reference > > to ` > > send@16' > > It seems that ws2_32.lib is missing. Do you have some Windows SDK or > Visual Studio Express installed ? I believe one of them is needed even > if you build with mingw to provide these libs. > Looks like a cmake 2.6 issue (can reproduce it here) - I'll look into this this weekend. Christian -- Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer |
From: Olivier H. <oli...@gm...> - 2008-05-09 08:30:29
|
> In f > unction `dbus_read_socket': > C:/WinDBusDownloads/svncvs/dbus/dbus-sysdeps-win.c:305: undefined reference > to ` > recv@16' > C:/WinDBusDownloads/svncvs/dbus/dbus-sysdeps-win.c:309: undefined reference > to ` > WSAGetLastError@0' > CMakeFiles\dbus-1.dir\C_\WinDBusDownloads\svncvs\dbus\dbus-sysdeps-win.obj: > In f > unction `dbus_write_socket': > C:/WinDBusDownloads/svncvs/dbus/dbus-sysdeps-win.c:365: undefined reference > to ` > send@16' It seems that ws2_32.lib is missing. Do you have some Windows SDK or Visual Studio Express installed ? I believe one of them is needed even if you build with mingw to provide these libs. Best, Olivier |
From: m s <ms....@gm...> - 2008-05-09 00:33:37
|
I am trying to compile windbus from svn. My environment is: MinGW 5.3.1 Cmake 2.6 win32libs I used the cmake gui to get apst the configuration steps and when I go tot hte next step and execute mingw32-make I get the following error (below) Any pointers on what is to be done to rectify this. Thanks in advance -MS C:\WinDBusDownloads\svncvs>cd dbus-build C:\WinDBusDownloads\svncvs\dbus-build>mingw32-make Linking C shared library ..\bin\libdbus-1.dll Creating library file: ..\bin\libdbus-1.dll.a CMakeFiles\dbus-1.dir\C_\WinDBusDownloads\svncvs\dbus\dbus-sysdeps-win.obj: In f unction `dbus_read_socket': C:/WinDBusDownloads/svncvs/dbus/dbus-sysdeps-win.c:305: undefined reference to ` recv@16' C:/WinDBusDownloads/svncvs/dbus/dbus-sysdeps-win.c:309: undefined reference to ` WSAGetLastError@0' CMakeFiles\dbus-1.dir\C_\WinDBusDownloads\svncvs\dbus\dbus-sysdeps-win.obj: In f unction `dbus_write_socket': C:/WinDBusDownloads/svncvs/dbus/dbus-sysdeps-win.c:365: undefined reference to ` send@16' C:/WinDBusDownloads/svncvs/dbus/dbus-sysdeps-win.c:369: undefined reference to ` WSAGetLastError@0' CMakeFiles\dbus-1.dir\C_\WinDBusDownloads\svncvs\dbus\dbus-sysdeps-win.obj: In f unction `dbus_close_socket': C:/WinDBusDownloads/svncvs/dbus/dbus-sysdeps-win.c:402: undefined reference to ` closesocket@4' C:/WinDBusDownloads/svncvs/dbus/dbus-sysdeps-win.c:404: undefined reference to ` WSAGetLastError@0' CMakeFiles\dbus-1.dir\C_\WinDBusDownloads\svncvs\dbus\dbus-sysdeps-win.obj: In f unction `dbus_set_fd_nonblocking': C:/WinDBusDownloads/svncvs/dbus/dbus-sysdeps-win.c:471: undefined reference to ` ioctlsocket@12' C:/WinDBusDownloads/svncvs/dbus/dbus-sysdeps-win.c:473: undefined reference to ` WSAGetLastError@0' C:/WinDBusDownloads/svncvs/dbus/dbus-sysdeps-win.c:473: undefined reference to ` WSAGetLastError@0' CMakeFiles\dbus-1.dir\C_\WinDBusDownloads\svncvs\dbus\dbus-sysdeps-win.obj: In f unction `dbus_write_socket_two': C:/WinDBusDownloads/svncvs/dbus/dbus-sysdeps-win.c:545: undefined reference to ` WSASend@28' C:/WinDBusDownloads/svncvs/dbus/dbus-sysdeps-win.c:555: undefined reference to ` WSAGetLastError@0' CMakeFiles\dbus-1.dir\C_\WinDBusDownloads\svncvs\dbus\dbus-sysdeps-win.obj: In f unction `dbus_win_startup_winsock': C:/WinDBusDownloads/svncvs/dbus/dbus-sysdeps-win.c:605: undefined reference to ` WSAStartup@8' CMakeFiles\dbus-1.dir\C_\WinDBusDownloads\svncvs\dbus\dbus-sysdeps-win.obj: In f unction `dbus_full_duplex_pipe': C:/WinDBusDownloads/svncvs/dbus/dbus-sysdeps-win.c:964: undefined reference to ` socket@12' C:/WinDBusDownloads/svncvs/dbus/dbus-sysdeps-win.c:967: undefined reference to ` WSAGetLastError@0' C:/WinDBusDownloads/svncvs/dbus/dbus-sysdeps-win.c:972: undefined reference to ` ioctlsocket@12' C:/WinDBusDownloads/svncvs/dbus/dbus-sysdeps-win.c:974: undefined reference to ` WSAGetLastError@0' C:/WinDBusDownloads/svncvs/dbus/dbus-sysdeps-win.c:981: undefined reference to ` htonl@4' C:/WinDBusDownloads/svncvs/dbus/dbus-sysdeps-win.c:983: undefined reference to ` bind@12' C:/WinDBusDownloads/svncvs/dbus/dbus-sysdeps-win.c:985: undefined reference to ` WSAGetLastError@0' C:/WinDBusDownloads/svncvs/dbus/dbus-sysdeps-win.c:989: undefined reference to ` listen@8' C:/WinDBusDownloads/svncvs/dbus/dbus-sysdeps-win.c:991: undefined reference to ` WSAGetLastError@0' C:/WinDBusDownloads/svncvs/dbus/dbus-sysdeps-win.c:996: undefined reference to ` getsockname@12' C:/WinDBusDownloads/svncvs/dbus/dbus-sysdeps-win.c:998: undefined reference to ` WSAGetLastError@0' C:/WinDBusDownloads/svncvs/dbus/dbus-sysdeps-win.c:1002: undefined reference to `socket@12' <%60socket@12'> C:/WinDBusDownloads/svncvs/dbus/dbus-sysdeps-win.c:1005: undefined reference to `WSAGetLastError@0' <%60WSAGetLastError@0'> C:/WinDBusDownloads/svncvs/dbus/dbus-sysdeps-win.c:1010: undefined reference to `ioctlsocket@12' <%60ioctlsocket@12'> C:/WinDBusDownloads/svncvs/dbus/dbus-sysdeps-win.c:1012: undefined reference to `WSAGetLastError@0' <%60WSAGetLastError@0'> C:/WinDBusDownloads/svncvs/dbus/dbus-sysdeps-win.c:1016: undefined reference to `connect@12' <%60connect@12'> C:/WinDBusDownloads/svncvs/dbus/dbus-sysdeps-win.c:1016: undefined reference to `WSAGetLastError@0' <%60WSAGetLastError@0'> C:/WinDBusDownloads/svncvs/dbus/dbus-sysdeps-win.c:1019: undefined reference to `WSAGetLastError@0' <%60WSAGetLastError@0'> C:/WinDBusDownloads/svncvs/dbus/dbus-sysdeps-win.c:1029: undefined reference to `select@20' <%60select@20'> C:/WinDBusDownloads/svncvs/dbus/dbus-sysdeps-win.c:1031: undefined reference to `WSAGetLastError@0' <%60WSAGetLastError@0'> C:/WinDBusDownloads/svncvs/dbus/dbus-sysdeps-win.c:1035: undefined reference to `__WSAFDIsSet@8' <%60__WSAFDIsSet@8'> C:/WinDBusDownloads/svncvs/dbus/dbus-sysdeps-win.c:1037: undefined reference to `accept@12' <%60accept@12'> C:/WinDBusDownloads/svncvs/dbus/dbus-sysdeps-win.c:1040: undefined reference to `WSAGetLastError@0' <%60WSAGetLastError@0'> C:/WinDBusDownloads/svncvs/dbus/dbus-sysdeps-win.c:1050: undefined reference to `select@20' <%60select@20'> C:/WinDBusDownloads/svncvs/dbus/dbus-sysdeps-win.c:1052: undefined reference to `WSAGetLastError@0' <%60WSAGetLastError@0'> C:/WinDBusDownloads/svncvs/dbus/dbus-sysdeps-win.c:1056: undefined reference to `__WSAFDIsSet@8' <%60__WSAFDIsSet@8'> C:/WinDBusDownloads/svncvs/dbus/dbus-sysdeps-win.c:1061: undefined reference to `ioctlsocket@12' <%60ioctlsocket@12'> C:/WinDBusDownloads/svncvs/dbus/dbus-sysdeps-win.c:1063: undefined reference to `WSAGetLastError@0' <%60WSAGetLastError@0'> C:/WinDBusDownloads/svncvs/dbus/dbus-sysdeps-win.c:1068: undefined reference to `ioctlsocket@12' <%60ioctlsocket@12'> C:/WinDBusDownloads/svncvs/dbus/dbus-sysdeps-win.c:1070: undefined reference to `WSAGetLastError@0' <%60WSAGetLastError@0'> C:/WinDBusDownloads/svncvs/dbus/dbus-sysdeps-win.c:1077: undefined reference to `ioctlsocket@12' <%60ioctlsocket@12'> C:/WinDBusDownloads/svncvs/dbus/dbus-sysdeps-win.c:1079: undefined reference to `WSAGetLastError@0' <%60WSAGetLastError@0'> C:/WinDBusDownloads/svncvs/dbus/dbus-sysdeps-win.c:1090: undefined reference to `closesocket@4' <%60closesocket@4'> C:/WinDBusDownloads/svncvs/dbus/dbus-sysdeps-win.c:1095: undefined reference to `closesocket@4' <%60closesocket@4'> C:/WinDBusDownloads/svncvs/dbus/dbus-sysdeps-win.c:1097: undefined reference to `closesocket@4' <%60closesocket@4'> C:/WinDBusDownloads/svncvs/dbus/dbus-sysdeps-win.c:1099: undefined reference to `closesocket@4' <%60closesocket@4'> CMakeFiles\dbus-1.dir\C_\WinDBusDownloads\svncvs\dbus\dbus-sysdeps-win.obj: In f unction `dbus_poll': C:/WinDBusDownloads/svncvs/dbus/dbus-sysdeps-win.c:1332: undefined reference to `select@20' <%60select@20'> C:/WinDBusDownloads/svncvs/dbus/dbus-sysdeps-win.c:1337: undefined reference to `WSAGetLastError@0' <%60WSAGetLastError@0'> C:/WinDBusDownloads/svncvs/dbus/dbus-sysdeps-win.c:1354: undefined reference to `__WSAFDIsSet@8' <%60__WSAFDIsSet@8'> C:/WinDBusDownloads/svncvs/dbus/dbus-sysdeps-win.c:1357: undefined reference to `__WSAFDIsSet@8' <%60__WSAFDIsSet@8'> C:/WinDBusDownloads/svncvs/dbus/dbus-sysdeps-win.c:1360: undefined reference to `__WSAFDIsSet@8' <%60__WSAFDIsSet@8'> C:/WinDBusDownloads/svncvs/dbus/dbus-sysdeps-win.c:1373: undefined reference to `__WSAFDIsSet@8' <%60__WSAFDIsSet@8'> C:/WinDBusDownloads/svncvs/dbus/dbus-sysdeps-win.c:1376: undefined reference to `__WSAFDIsSet@8' <%60__WSAFDIsSet@8'> CMakeFiles\dbus-1.dir\C_\WinDBusDownloads\svncvs\dbus\dbus-sysdeps-win.obj:C:/Wi nDBusDownloads/svncvs/dbus/dbus-sysdeps-win.c:1379: more undefined references to `__WSAFDIsSet@8' <%60__WSAFDIsSet@8'> follow CMakeFiles\dbus-1.dir\C_\WinDBusDownloads\svncvs\dbus\dbus-sysdeps-win.obj: In f unction `dbus_connect_tcp_socket': C:/WinDBusDownloads/svncvs/dbus/dbus-sysdeps-win.c:1469: undefined reference to `socket@12' <%60socket@12'> C:/WinDBusDownloads/svncvs/dbus/dbus-sysdeps-win.c:1473: undefined reference to `WSAGetLastError@0' <%60WSAGetLastError@0'> C:/WinDBusDownloads/svncvs/dbus/dbus-sysdeps-win.c:1514: undefined reference to `closesocket@4' <%60closesocket@4'> C:/WinDBusDownloads/svncvs/dbus/dbus-sysdeps-win.c:1521: undefined reference to `socket@12' <%60socket@12'> C:/WinDBusDownloads/svncvs/dbus/dbus-sysdeps-win.c:1532: undefined reference to `connect@12' <%60connect@12'> C:/WinDBusDownloads/svncvs/dbus/dbus-sysdeps-win.c:1534: undefined reference to `closesocket@4' <%60closesocket@4'> C:/WinDBusDownloads/svncvs/dbus/dbus-sysdeps-win.c:1556: undefined reference to `closesocket@4' <%60closesocket@4'> CMakeFiles\dbus-1.dir\C_\WinDBusDownloads\svncvs\dbus\dbus-sysdeps-win.obj: In f unction `dbus_listen_tcp_socket': C:/WinDBusDownloads/svncvs/dbus/dbus-sysdeps-win.c:1639: undefined reference to `socket@12' <%60socket@12'> C:/WinDBusDownloads/svncvs/dbus/dbus-sysdeps-win.c:1649: undefined reference to `bind@12' <%60bind@12'> C:/WinDBusDownloads/svncvs/dbus/dbus-sysdeps-win.c:1651: undefined reference to `closesocket@4' <%60closesocket@4'> C:/WinDBusDownloads/svncvs/dbus/dbus-sysdeps-win.c:1658: undefined reference to `listen@8' <%60listen@8'> C:/WinDBusDownloads/svncvs/dbus/dbus-sysdeps-win.c:1660: undefined reference to `closesocket@4' <%60closesocket@4'> C:/WinDBusDownloads/svncvs/dbus/dbus-sysdeps-win.c:1670: undefined reference to `closesocket@4' <%60closesocket@4'> C:/WinDBusDownloads/svncvs/dbus/dbus-sysdeps-win.c:1693: undefined reference to `getsockname@12' <%60getsockname@12'> C:/WinDBusDownloads/svncvs/dbus/dbus-sysdeps-win.c:1758: undefined reference to `closesocket@4' <%60closesocket@4'> CMakeFiles\dbus-1.dir\C_\WinDBusDownloads\svncvs\dbus\dbus-sysdeps-win.obj: In f unction `dbus_accept': C:/WinDBusDownloads/svncvs/dbus/dbus-sysdeps-win.c:1777: undefined reference to `accept@12' <%60accept@12'> C:/WinDBusDownloads/svncvs/dbus/dbus-sysdeps-win.c:1781: undefined reference to `WSAGetLastError@0' <%60WSAGetLastError@0'> CMakeFiles\dbus-1.dir\C_\WinDBusDownloads\svncvs\dbus\dbus-spawn-win.obj: In fun ction `babysitter': C:/WinDBusDownloads/svncvs/dbus/dbus-spawn-win.c:529: undefined reference to `se nd@16' mingw32-make[2]: *** [bin/libdbus-1.dll] Error 1 mingw32-make[1]: *** [dbus/CMakeFiles/dbus-1.dir/all] Error 2 mingw32-make: *** [all] Error 2 C:\WinDBusDownloads\svncvs\dbus-build> |
From: <che...@us...> - 2008-04-23 19:09:41
|
Revision: 780 http://windbus.svn.sourceforge.net/windbus/?rev=780&view=rev Author: chehrlic Date: 2008-04-23 12:08:51 -0700 (Wed, 23 Apr 2008) Log Message: ----------- fix small memleak, already reported to dbus ml Modified Paths: -------------- trunk/dbus/dbus-sysdeps.c Modified: trunk/dbus/dbus-sysdeps.c =================================================================== --- trunk/dbus/dbus-sysdeps.c 2008-04-23 19:02:32 UTC (rev 779) +++ trunk/dbus/dbus-sysdeps.c 2008-04-23 19:08:51 UTC (rev 780) @@ -114,6 +114,7 @@ #else char *putenv_value; size_t len; + dbus_bool_t ret; len = strlen (varname); @@ -130,7 +131,9 @@ strcat (putenv_value, "="); #endif - return (putenv (putenv_value) == 0); + ret = (putenv (putenv_value) == 0); + free (putenv_value); + return ret; #endif } else @@ -142,6 +145,7 @@ size_t len; size_t varname_len; size_t value_len; + dbus_bool_t ret; varname_len = strlen (varname); value_len = strlen (value); @@ -160,7 +164,9 @@ strcpy (putenv_value + varname_len, "="); strcpy (putenv_value + varname_len + 1, value); - return (putenv (putenv_value) == 0); + ret = (putenv (putenv_value) == 0); + free (putenv_value); + return ret; #endif } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <che...@us...> - 2008-04-23 19:03:06
|
Revision: 779 http://windbus.svn.sourceforge.net/windbus/?rev=779&view=rev Author: chehrlic Date: 2008-04-23 12:02:32 -0700 (Wed, 23 Apr 2008) Log Message: ----------- make cmake 2.6 happy Modified Paths: -------------- trunk/cmake/dbus/CMakeLists.txt Modified: trunk/cmake/dbus/CMakeLists.txt =================================================================== --- trunk/cmake/dbus/CMakeLists.txt 2008-04-23 18:11:35 UTC (rev 778) +++ trunk/cmake/dbus/CMakeLists.txt 2008-04-23 19:02:32 UTC (rev 779) @@ -193,7 +193,10 @@ ${DBUS_DIR}/dbus-sockets-win.h ${DBUS_DIR}/dbus-sysdeps-win.h ) - set (LIBS ${LIBS} ws2_32 advapi32 netapi32) + find_library(WS2_32_LIBRARY ws2_32) + find_library(ADVAPI32_LIBRARY advapi32) + find_library(NETAPI32_LIBRARY netapi32) + set (LIBS ${LIBS} ${WS2_32_LIBRARY} ${ADVAPI32_LIBRARY} ${NETAPI32_LIBRARY}) else (WIN32) set (DBUS_SHARED_SOURCES ${DBUS_SHARED_SOURCES} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <che...@us...> - 2008-04-23 18:12:58
|
Revision: 778 http://windbus.svn.sourceforge.net/windbus/?rev=778&view=rev Author: chehrlic Date: 2008-04-23 11:11:35 -0700 (Wed, 23 Apr 2008) Log Message: ----------- update trunk to 1.2.1 this also means that we don't have a cvs version in trunk anymore - we have to work on a release version instead. Shouldn't be that big problem. If you need it,plz open a branch. Modified Paths: -------------- trunk/AUTHORS trunk/ChangeLog trunk/HACKING trunk/NEWS trunk/bus/Makefile.am trunk/bus/activation.c trunk/bus/bus.c trunk/bus/bus.h trunk/bus/config-parser.c trunk/bus/config-parser.h trunk/bus/connection.c trunk/bus/dbus-daemon.1.in trunk/bus/desktop-file.h trunk/bus/dir-watch-dnotify.c trunk/bus/dispatch.c trunk/bus/expirelist.c trunk/bus/expirelist.h trunk/bus/main.c trunk/bus/messagebus.in trunk/bus/policy.c trunk/bus/selinux.c trunk/bus/selinux.h trunk/bus/signals.c trunk/bus/signals.h trunk/bus/system.conf.in trunk/bus/test.h trunk/cmake/CMakeLists.txt trunk/cmake/bus/CMakeLists.txt trunk/cmake/config.h.cmake trunk/cmake/dbus/CMakeLists.txt trunk/cmake/dbus/dbus-1.def.cmake trunk/cmake/test/CMakeLists.txt trunk/configure.in trunk/dbus/Makefile.am trunk/dbus/dbus-address.c trunk/dbus/dbus-arch-deps.h.in trunk/dbus/dbus-auth-script.c trunk/dbus/dbus-auth-util.c trunk/dbus/dbus-auth.c trunk/dbus/dbus-bus.c trunk/dbus/dbus-connection.c trunk/dbus/dbus-connection.h trunk/dbus/dbus-errors.c trunk/dbus/dbus-errors.h trunk/dbus/dbus-internals.c trunk/dbus/dbus-internals.h trunk/dbus/dbus-keyring.c trunk/dbus/dbus-macros.h trunk/dbus/dbus-marshal-recursive.c trunk/dbus/dbus-marshal-validate.c trunk/dbus/dbus-message-util.c trunk/dbus/dbus-message.c trunk/dbus/dbus-misc.c trunk/dbus/dbus-misc.h trunk/dbus/dbus-object-tree.c trunk/dbus/dbus-object-tree.h trunk/dbus/dbus-protocol.h trunk/dbus/dbus-server-socket.c trunk/dbus/dbus-server-socket.h trunk/dbus/dbus-server-unix.c trunk/dbus/dbus-server.c trunk/dbus/dbus-sha.c trunk/dbus/dbus-shell.c trunk/dbus/dbus-shell.h trunk/dbus/dbus-spawn-win.c trunk/dbus/dbus-spawn.c trunk/dbus/dbus-spawn.h trunk/dbus/dbus-string-util.c trunk/dbus/dbus-string.c trunk/dbus/dbus-string.h trunk/dbus/dbus-sysdeps-unix.c trunk/dbus/dbus-sysdeps-unix.h trunk/dbus/dbus-sysdeps-util-unix.c trunk/dbus/dbus-sysdeps-util-win.c trunk/dbus/dbus-sysdeps-win.c trunk/dbus/dbus-sysdeps.c trunk/dbus/dbus-sysdeps.h trunk/dbus/dbus-transport-socket.c trunk/dbus/dbus-transport-socket.h trunk/dbus/dbus-transport.c trunk/dbus/dbus-userdb.c trunk/dbus/dbus-uuidgen.c trunk/dbus/dbus-watch.c trunk/doc/Makefile.am trunk/doc/busconfig.dtd trunk/doc/dbus-specification.xml trunk/doc/introspect.xsl trunk/test/Makefile.am trunk/test/data/valid-config-files/debug-allow-all-sha1.conf.in trunk/test/data/valid-config-files/debug-allow-all.conf.in trunk/test/name-test/run-test.sh trunk/test/name-test/test-names.c trunk/tools/dbus-launch-x11.c trunk/tools/dbus-launch.c trunk/tools/dbus-send.1 trunk/tools/dbus-send.c trunk/tools/run-with-tmp-session-bus.sh Added Paths: ----------- trunk/bus/dir-watch-inotify.c trunk/compile trunk/config.h.in trunk/doc/dbus-faq.html trunk/doc/dbus-specification.html trunk/doc/dbus-test-plan.html trunk/doc/dbus-tutorial.html trunk/test/data/invalid-service-files-system/ trunk/test/data/invalid-service-files-system/org.freedesktop.DBus.TestSuiteNoExec.service trunk/test/data/invalid-service-files-system/org.freedesktop.DBus.TestSuiteNoExec.service.in trunk/test/data/invalid-service-files-system/org.freedesktop.DBus.TestSuiteNoService.service trunk/test/data/invalid-service-files-system/org.freedesktop.DBus.TestSuiteNoService.service.in trunk/test/data/invalid-service-files-system/org.freedesktop.DBus.TestSuiteNoUser.service trunk/test/data/invalid-service-files-system/org.freedesktop.DBus.TestSuiteNoUser.service.in trunk/test/data/valid-config-files/debug-allow-all-sha1.conf trunk/test/data/valid-config-files/debug-allow-all.conf trunk/test/data/valid-config-files/session.conf trunk/test/data/valid-config-files/system.conf trunk/test/data/valid-config-files-system/ trunk/test/data/valid-config-files-system/debug-allow-all-fail.conf trunk/test/data/valid-config-files-system/debug-allow-all-fail.conf.in trunk/test/data/valid-config-files-system/debug-allow-all-pass.conf trunk/test/data/valid-config-files-system/debug-allow-all-pass.conf.in trunk/test/data/valid-service-files-system/ trunk/test/data/valid-service-files-system/org.freedesktop.DBus.TestSuiteEchoService.service trunk/test/data/valid-service-files-system/org.freedesktop.DBus.TestSuiteEchoService.service.in trunk/test/data/valid-service-files-system/org.freedesktop.DBus.TestSuiteSegfaultService.service trunk/test/data/valid-service-files-system/org.freedesktop.DBus.TestSuiteSegfaultService.service.in trunk/test/data/valid-service-files-system/org.freedesktop.DBus.TestSuiteShellEchoServiceFail.service trunk/test/data/valid-service-files-system/org.freedesktop.DBus.TestSuiteShellEchoServiceFail.service.in trunk/test/data/valid-service-files-system/org.freedesktop.DBus.TestSuiteShellEchoServiceSuccess.service trunk/test/data/valid-service-files-system/org.freedesktop.DBus.TestSuiteShellEchoServiceSuccess.service.in trunk/test/name-test/run-with-tmp-session-bus.conf Removed Paths: ------------- trunk/.cvsignore trunk/CVS/Entries trunk/CVS/Repository trunk/CVS/Root trunk/bus/.cvsignore trunk/bus/CVS/Entries trunk/bus/CVS/Repository trunk/bus/CVS/Root trunk/cmake/CVS/Entries trunk/cmake/CVS/Repository trunk/cmake/CVS/Root trunk/cmake/bus/CVS/Entries trunk/cmake/bus/CVS/Repository trunk/cmake/bus/CVS/Root trunk/cmake/dbus/CVS/Entries trunk/cmake/dbus/CVS/Repository trunk/cmake/dbus/CVS/Root trunk/cmake/doc/CVS/Entries trunk/cmake/doc/CVS/Repository trunk/cmake/doc/CVS/Root trunk/cmake/modules/CVS/Entries trunk/cmake/modules/CVS/Repository trunk/cmake/modules/CVS/Root trunk/cmake/test/CVS/Entries trunk/cmake/test/CVS/Repository trunk/cmake/test/CVS/Root trunk/cmake/test/data/CVS/Entries trunk/cmake/test/data/CVS/Repository trunk/cmake/test/data/CVS/Root trunk/cmake/test/data/valid-config-files/CVS/Entries trunk/cmake/test/data/valid-config-files/CVS/Repository trunk/cmake/test/data/valid-config-files/CVS/Root trunk/cmake/test/name-test/CVS/Entries trunk/cmake/test/name-test/CVS/Repository trunk/cmake/test/name-test/CVS/Root trunk/cmake/tools/CVS/Entries trunk/cmake/tools/CVS/Repository trunk/cmake/tools/CVS/Root trunk/dbus/.cvsignore trunk/dbus/CVS/Entries trunk/dbus/CVS/Repository trunk/dbus/CVS/Root trunk/doc/.cvsignore trunk/doc/CVS/Entries trunk/doc/CVS/Repository trunk/doc/CVS/Root trunk/doc/diagram.svg trunk/pkg-config/Makefile trunk/pkg-config/pkg-config.cpp trunk/pkg-config/readme.txt trunk/test/.cvsignore trunk/test/CVS/Entries trunk/test/CVS/Repository trunk/test/CVS/Root trunk/test/break-loader.c trunk/test/data/CVS/Entries trunk/test/data/CVS/Repository trunk/test/data/CVS/Root trunk/test/data/auth/CVS/Entries trunk/test/data/auth/CVS/Repository trunk/test/data/auth/CVS/Root trunk/test/data/equiv-config-files/CVS/Entries trunk/test/data/equiv-config-files/CVS/Repository trunk/test/data/equiv-config-files/CVS/Root trunk/test/data/equiv-config-files/basic/CVS/Entries trunk/test/data/equiv-config-files/basic/CVS/Repository trunk/test/data/equiv-config-files/basic/CVS/Root trunk/test/data/equiv-config-files/basic/basic.d/CVS/Entries trunk/test/data/equiv-config-files/basic/basic.d/CVS/Repository trunk/test/data/equiv-config-files/basic/basic.d/CVS/Root trunk/test/data/equiv-config-files/entities/CVS/Entries trunk/test/data/equiv-config-files/entities/CVS/Repository trunk/test/data/equiv-config-files/entities/CVS/Root trunk/test/data/equiv-config-files/entities/basic.d/CVS/Entries trunk/test/data/equiv-config-files/entities/basic.d/CVS/Repository trunk/test/data/equiv-config-files/entities/basic.d/CVS/Root trunk/test/data/incomplete-messages/CVS/Entries trunk/test/data/incomplete-messages/CVS/Repository trunk/test/data/incomplete-messages/CVS/Root trunk/test/data/invalid-config-files/CVS/Entries trunk/test/data/invalid-config-files/CVS/Repository trunk/test/data/invalid-config-files/CVS/Root trunk/test/data/invalid-messages/CVS/Entries trunk/test/data/invalid-messages/CVS/Repository trunk/test/data/invalid-messages/CVS/Root trunk/test/data/sha-1/CVS/Entries trunk/test/data/sha-1/CVS/Repository trunk/test/data/sha-1/CVS/Root trunk/test/data/valid-config-files/.cvsignore trunk/test/data/valid-config-files/CVS/Entries trunk/test/data/valid-config-files/CVS/Repository trunk/test/data/valid-config-files/CVS/Root trunk/test/data/valid-config-files/basic.d/CVS/Entries trunk/test/data/valid-config-files/basic.d/CVS/Repository trunk/test/data/valid-config-files/basic.d/CVS/Root trunk/test/data/valid-config-files/system.d/CVS/Entries trunk/test/data/valid-config-files/system.d/CVS/Repository trunk/test/data/valid-config-files/system.d/CVS/Root trunk/test/data/valid-introspection-files/CVS/Entries trunk/test/data/valid-introspection-files/CVS/Repository trunk/test/data/valid-introspection-files/CVS/Root trunk/test/data/valid-messages/CVS/Entries trunk/test/data/valid-messages/CVS/Repository trunk/test/data/valid-messages/CVS/Root trunk/test/data/valid-service-files/.cvsignore trunk/test/data/valid-service-files/CVS/Entries trunk/test/data/valid-service-files/CVS/Repository trunk/test/data/valid-service-files/CVS/Root trunk/test/name-test/.cvsignore trunk/test/name-test/CVS/Entries trunk/test/name-test/CVS/Repository trunk/test/name-test/CVS/Root trunk/test/unused-code-gc.py trunk/tools/.cvsignore trunk/tools/CVS/Entries trunk/tools/CVS/Repository trunk/tools/CVS/Root Deleted: trunk/.cvsignore =================================================================== --- trunk/.cvsignore 2008-04-05 14:58:11 UTC (rev 777) +++ trunk/.cvsignore 2008-04-23 18:11:35 UTC (rev 778) @@ -1,22 +0,0 @@ -config.log -config.status -config.sub -configure -*.pc -libtool -ltmain.sh -stamp-h1 -stamp-h -stamp-h.in -Doxyfile -Makefile -Makefile.in -aclocal.m4 -autom4te.cache -config.guess -config.h -config.h.in -*.bb -*.bbg -*.da -*.gcov Modified: trunk/AUTHORS =================================================================== --- trunk/AUTHORS 2008-04-05 14:58:11 UTC (rev 777) +++ trunk/AUTHORS 2008-04-23 18:11:35 UTC (rev 778) @@ -11,17 +11,22 @@ Christian Ehrlicher <ch....@gm...> Harald Fernengel <ha...@kd...> Owen Fraser-Green <ow...@di...> +Peter O'Gorman <po...@th...> Jens Granseuer <je...@gm...> Ralf Habacker <ral...@fr...> Mikael Hallendal <mi...@co...> Kimmo Hämäläinen <kim...@no...> +Magnus Henoch <hen...@dt...> Kristian Høgsberg <kr...@re...> Iain Holmes <ia...@op...> +Richard Hughes <ri...@hu...> Richard Hult <rh...@co...> Peter Kuemmel <syn...@gm...> Alex Larsson <al...@re...> Bernard Leak <be...@br...> Tor Lillqvist <tm...@ik...> +Ryan Lortie <de...@de...> +Andrea Luzzardi <sc...@si...> Marcelo Ricardo Leitner <mar...@te...> Thiago Macieira <th...@kd...> Kjartan Maraas <km...@gn...> Deleted: trunk/CVS/Entries =================================================================== --- trunk/CVS/Entries 2008-04-05 14:58:11 UTC (rev 777) +++ trunk/CVS/Entries 2008-04-23 18:11:35 UTC (rev 778) @@ -1,28 +0,0 @@ -/.cvsignore/1.3/Sun Feb 16 07:20:54 2003// -/AUTHORS/1.12/Fri Nov 10 02:21:05 2006// -/COPYING/1.7/Tue Nov 7 06:13:52 2006// -/ChangeLog.pre-1-0/1.1/Fri May 25 20:49:50 2007// -/Doxyfile.in/1.13/Sat Oct 21 17:43:30 2006// -/HACKING/1.19/Mon Jun 18 19:55:50 2007// -/INSTALL/1.5/Fri May 25 20:19:33 2007// -/Makefile.am/1.28/Sun Oct 22 00:31:08 2006// -/Makefile.cvs/1.2/Sun Nov 23 08:07:04 2003// -/NEWS/1.40/Mon Jun 18 19:49:40 2007// -/NEWS.pre-1-0/1.1/Fri May 25 20:49:50 2007// -/README/1.12/Wed Nov 8 23:17:20 2006// -/README.win/1.2/Fri Mar 16 22:34:40 2007// -/acinclude.m4/1.4/Mon May 21 17:37:08 2007// -/autogen.sh/1.7/Sun Oct 1 03:18:47 2006// -/cleanup-man-pages.sh/1.1/Sun Oct 22 00:31:08 2006// -/configure.in/1.209/Mon Jun 18 19:51:18 2007// -/dbus-1.pc.in/1.5/Thu May 10 15:33:57 2007// -/update-dbus-docs.sh/1.7/Mon May 21 16:43:57 2007// -D/bus//// -D/cmake//// -D/dbus//// -D/doc//// -D/glib//// -D/test//// -D/tools//// -/ChangeLog/1.1358/Fri Jul 20 16:13:32 2007// -/dbus-win.patch/1.18/Fri Jul 20 17:52:55 2007// Deleted: trunk/CVS/Repository =================================================================== --- trunk/CVS/Repository 2008-04-05 14:58:11 UTC (rev 777) +++ trunk/CVS/Repository 2008-04-23 18:11:35 UTC (rev 778) @@ -1 +0,0 @@ -dbus Deleted: trunk/CVS/Root =================================================================== --- trunk/CVS/Root 2008-04-05 14:58:11 UTC (rev 777) +++ trunk/CVS/Root 2008-04-23 18:11:35 UTC (rev 778) @@ -1 +0,0 @@ -:pserver:an...@an...:/cvs/dbus Modified: trunk/ChangeLog =================================================================== --- trunk/ChangeLog 2008-04-05 14:58:11 UTC (rev 777) +++ trunk/ChangeLog 2008-04-23 18:11:35 UTC (rev 778) @@ -1,3 +1,941 @@ +2008-04-04 John (J5) Palmieri <jo...@re...> + + * Released 1.2.1 + +2008-04-03 John (J5) Palmieri <jo...@re...> + + Patch from Sumit <sum...@ya...>, comments added + + * dbus/dbus-transport.c(_dbus_transport_open): fix mem leak + +2008-04-03 John (J5) Palmieri <jo...@re...> + + * dbus/dbus-connection.c (dbus_connection_send): add documentation + to describe when to call dbus_connection_flush and + dbus_connection_unref after a call to dbus_connection_send is made + Initial wording by Stanislav Brabec <sbrabec at suse.cz> + (fd.o bug#13558) + +2008-04-03 John (J5) Palmieri <jo...@re...> + + Patch from Kimmo Hämäläinen <kimmo.hamalainen at nokia.com> + + * bus/expirelist.c + (do_expiration_with_current_time): calculate correct min wait time + and next interval + (bus_expire_list_add, bus_expire_list_add_link): if the timeout is + disabled when we add an item to the expire list, enable the timeout + (do_expiration_with_current_time): only set timeout if there are + items to expire + +2008-04-01 Timo Hoenig <th...@su...> + + Patch from Frederic Crozat <fc...@ma...> + + * bus/dir-watch-inotify.c (bus_watch_directory): Only monitor + IN_CLOSE_WRITE, IN_DELETE, IN_MOVE_TO and IN_MOVE_FROM events. This + way, only atomic changes to configuration file are monitored. + * bus/dir-watch-inotify.c (_handle_inotify_watch): Fix typo in + _dbus_verbose function call + * bus/dir-watch-inotify.c (bus_drop_all_directory_watches): Use + _dbus_strerror instead of perror + +2008-03-04 Havoc Pennington <hp...@re...> + + * bus/connection.c, bus/expirelist.c: Make the BusExpireList + struct opaque, adding accessors for manipulating the list. In this + commit there should be no change in functionality or behavior. The + purpose of this change is to improve encapsulation prior to fixing + some bugs Kimmo Hämäläinen found where the timeout is not properly + updated, since we need to e.g. take some action whenever adding + and removing stuff from the expire list. + +2008-03-31 Colin Walters <wa...@ve...> + + Patch from Owen Taylor <ot...@re...> + + * tools/dbus-launch-x11.c: Check for X11 events before + selecting (FDO bug #15293) + +2008-03-31 Colin Walters <wa...@ve...> + + Patch from Owen Taylor <ot...@re...> + + * tools/dbus-launch-x11.c: Make sure we call XFlush() + on all code paths (FDO bug #15293) + +2008-03-27 Havoc Pennington <hp...@re...> + + * tools/dbus-send.c (append_dict): Do not provide a signature to + dbus_message_iter_open_container() when opening a dict entry. + +2008-03-26 Colin Walters <wa...@ve...> + + Patch from Scott James Remnant <sc...@ne...> + + * dbus/dbus-bus.c: Set default exit_on_disconnect after registration with + the bus, not before. This ensures that programs which wish to set + exit_on_disconnect to FALSE will not be terminated if the bus exits + during registration. (FDO Bug #15112) + +2008-03-04 John (J5) Palmieri <jo...@re...> + + * fix broken poll on Mac OSX - build patch by Benjamin Reed + * configure.in: check for OSX's deadlocking poll + * dbus/dbus-sysdeps-unix.c (_dbus_poll): if we have a broken poll + don't use poll + +2008-03-04 John (J5) Palmieri <jo...@re...> + + * check if the linker supports a flag instead of just checking for GNU + ld + * configure.in: move AM_PROG_LIBTOOL to the top + (ld_supports_flag): new function for checking if the linker supports + a given flag + +2008-03-04 John (J5) Palmieri <jo...@re...> + + * add a changelog for Benjamin Reed's git patch RANT: Change Logs are + handled by git and having an external changelog just screws up + merging. We should write down rules for doing git commit messages + and leave it at that. + * configure.in: Platform build fixes for Mac OS X + the Darwin linker does not understand the -z option; wrap it in + a check for $with_gnu_ld. + environ is only available at runtime, so you need to make a + reference to _NSGetEnviron instead for symbols to resolve properly. + +2008-03-04 John (J5) Palmieri <jo...@re...> + + * configure.in: add $THREAD_LIBS to DBUS_LAUNCHER_LIBS so we link + correctly + +2008-03-04 John (J5) Palmieri <jo...@re...> + + * tools/dbus-launch.c: wrap X'ism in #ifdef so we can compile + without X + +2008-02-28 John (J5) Palmieri <jo...@re...> + + * dbus/dbus-sysdeps-unix.c: define _AI_ADDRCONFIG as 0 if not + defined so that we can compile with an older glibc + +2008-02-26 John (J5) Palmieri <jo...@re...> + + * Released 1.1.20 + +2008-02-26 John (J5) Palmieri <jo...@re...> + + * CVE-2008-0595 - security policy of the type <allow send_interface= + "some.interface.WithMethods"/> work as an implicit allow for + messages sent without an interface bypassing the default deny rules + and potentially allowing restricted methods exported on the bus to be + executed by unauthorized users. This patch fixes the issue. + * bus/policy.c (bus_client_policy_check_can_send, + bus_client_policy_check_can_receive): skip messages without an + interface when evaluating an allow rule, and thus pass it to the + default deny rules + +2008-02-26 John (J5) Palmieri <jo...@re...> + + * correctly unref connections without guids during shutdown + * dbus/dbus-connection.c (close_connection_on_shutdown): new method + split out from shared_connections_shutdown + (shared_connections_shutdown): shutdown all shared connections + without guids + (_dbus_connection_ref_unlocked): handle OOM when prepending no guid + connections to the shared_connections_no_guid list + * Patch by Kimmo Hämäläinen <kimmo dot hamalainen at nokia dot com> + +2008-02-21 John (J5) Palmieri <jo...@re...> + + * fix build against the latest gcc/glibc + * dbus/dbus-sysdeps-unix.c: define _GNU_SOURCE + * bus/selinux.c: include limits.h + * Patch by Matthias Clasen <mclasen at redhat.com> + +2008-02-21 John (J5) Palmieri <jo...@re...> + + * fixes dbus-launch so the bus goes away when X does + (Red Hat Bug #430412) + * tools/dbus-launch.c (main): set xdisplay = NULL + * Patch by Matthias Clasen <mclasen at redhat.com> + +2008-01-17 John (J5) Palmieri <jo...@re...> + + * Released 1.1.4 + +2008-01-17 Timo Hoenig <th...@su...> + * fix inotify support + * bus/dir-watch-inotify.c (_handle_inotify_watch): fix reading of the + inotify events. Also, use ssize_t not size_t for 'ret'. + * bus/dir-watch-inotify.c (bus_watch_directory): watch not only for + IN_MODIFY but also for IN_CREATE and IN_DELETE + * bus/dir-watch-inotify.c (bus_drop_all_directory_watches): drop the + inotify watches more elegantly by closing inotify:_fd, set inotify_fd to + -1 after dropping the watches + +2008-01-15 John (J5) Palmieri <jo...@re...> + + * configure.in: post-release version bump + +2008-01-15 John (J5) Palmieri <jo...@re...> + + * Released 1.1.3 (1.2.0RC1) + +2008-01-15 John (J5) Palmieri <jo...@re...> + + * fix hacking to say git instead of cvs + +2008-01-15 John (J5) Palmieri <jo...@re...> + + * patch by Sébastien Couret <10function at gmail dot com> + + * dbus/dbus-marshal-recursive.c (all_reader_classes[]): wrap in + #ifndef DBUS_DISABLE_ASSERT since it is only used in asserts which + are noop + +2008-01-15 John (J5) Palmieri <jo...@re...> + + * patch by Magnus Henoch <henoch plus bfdo at dtek dot chalmers dot se> + + * dbus/dbus-auth.c (handle_server_data_external_mech): handle SASL + EXTERNAL's inital empty responce (FDO Bug #9945) + +2008-01-15 John (J5) Palmieri <jo...@re...> + + * bus/messagebus.in: add lsb headers (FDO Bug #11491) + +2008-01-15 John (J5) Palmieri <jo...@re...> + + * patch by Peter O'Gorman <pogma at thewrittenword dot com> + + * dbus/dbus-spawn.c (babysit_signal_handler): check write return value + so we don't hang (FDO Bug #11665) + +2008-01-15 John (J5) Palmieri <jo...@re...> + + * patch by Peter O'Gorman <pogma at thewrittenword dot com> + + * dbus/dbus-sysdeps.h: support for AIX poll implementation (FDO Bug + #11666) + +2008-01-15 John (J5) Palmieri <jo...@re...> + + * tests/name-test/run-test.sh: make more portable (FDO Bug #11667) + +2008-01-15 John (J5) Palmieri <jo...@re...> + + * patch by Kimmo Hämäläinen <kimmo dot hamalainen at nokia dot com> + + * dbus/dbus-connection.c (_dbus_connection_get_next_client_serial): + don't check for < 0 on an unsigned variable (FDO Bug #12924) + +2008-01-15 John (J5) Palmieri <jo...@re...> + + * patch by Kimmo Hämäläinen <kimmo dot hamalainen at nokia dot com> + + * bus/bus.c (setup_server): check failed allocation (FDO Bug #12920) + +2008-01-15 John (J5) Palmieri <jo...@re...> + + * patch by Kimmo Hämäläinen <kimmo dot hamalainen at nokia dot com> + + * dbus/dbus-spawn.c (_dbus_spawn_async_with_babysitter): the API + contract says sitter_p can be NULL, so let's check it (FDO Bug #12919) + +2008-01-15 John (J5) Palmieri <jo...@re...> + + * patch by Kimmo Hämäläinen <kimmo dot hamalainen at nokia dot com> + + * dbus/dbus-spawn.c (read_ints, read_pid): use correct ssize_t type + instead of size_t (FDO Bug #12862) + +2008-01-15 John (J5) Palmieri <jo...@re...> + + * patch by Kimmo Hämäläinen <kimmo dot hamalainen at nokia dot com> + + * dbus/dbus-errors.c (dbus_set_error): make sure to call va_end if we + hit an OOM error inside va_start (FDO Bug #12846) + +2008-01-15 John (J5) Palmieri <jo...@re...> + + * patch by Kimmo Hämäläinen <kimmo dot hamalainen at nokia dot com> + + * dbus/dbus-connection.c (dbus_connection_send_with_reply): + fix possible crash if pending_return is NULL (FDO Bug #12673) + +2008-01-15 John (J5) Palmieri <jo...@re...> + + * portions of patch submitted by Tim Mooney + <enchanter at users dot sourceforge dot net> + + * configure.in: never auto-select libxml (FDO Bug #12479) + +2008-01-15 John (J5) Palmieri <jo...@re...> + + * patches by Kimmo Hämäläinen <kimmo dot hamalainen at nokia dot com> + + * dbus/dbus-sysdeps-unix (_dbus_get_autolaunch_address): handle OOM + (FDO Bug #12945) + + * dbus/dbus-uuidgen.c (return_uuid): handle OOM (FDO Bug #12928) + + * dbus/dbus-misc.c (dbus_get_local_machine_id): handle OOM, fix return + value to return NULL not FALSE (FDO Bug #12946) + +2008-01-15 John (J5) Palmieri <jo...@re...> + + * bus/bus.c (bus_context_check_security_policy): rewrite selinux error + handling to not abort due to a NULL read and to set the error only if + it is not already set (Based off of FDO Bug #12430) + +2008-01-15 John (J5) Palmieri <jo...@re...> + + * patch by Kimmo Hämäläinen <kimmo dot hamalainen at nokia dot com> + + * dbus/dbus-internals.c (_dbus_read_uuid_file_without_creating, + _dbus_create_uuid_file_exclusively): add OOM handling (FDO Bug #12952) + +2008-01-15 John (J5) Palmieri <jo...@re...> + + * patch by Kimmo Hämäläinen <kimmo dot hamalainen at nokia dot com> + + * dbus/dbus-spawn.c (babysit, babysitter_iteration): add error + handling when polling (FDO Bug #12954) + +2008-01-15 John (J5) Palmieri <jo...@re...> + + * patch by Kimmo Hämäläinen <kimmo dot hamalainen at nokia dot com> + + * bus/config-parser.c (locate_attributes): remove dead code which + always evaluated to TRUE + + * dbus/dbus-shell.c (_dbus_shell_quote): remove unused code + +2008-01-14 John (J5) Palmieri <jo...@re...> + + * patch by Kimmo Hämäläinen <kimmo dot hamalainen at nokia dot com> + + * bus/connection.c (bus_connection_complete): plug a possible + BusClientPolicy leak (FDO Bug #13242) + +2008-01-14 John (J5) Palmieri <jo...@re...> + + * patch by Frederic Crozat <fcrozat at mandriva dot com> (FDO Bz# + 13268) + + * add inotify support + + * bus/Makefile.am: add inotify module to the build + + * bus/dir-watch-inotify.c: inotify module based off the dnotify and + kqueue modules + + * configure.in: add checks and switch for inotify + also add a printout at the end of configure if inotify and kqueue + support is being built in (dnotify already had this) + +2008-01-14 John (J5) Palmieri <jo...@re...> + + * patch by Frederic Crozat <fcrozat at mandriva dot com> + + * bus/dir-watch-dnotify.c (bus_watch_directory): watch for file + creates also + +2008-01-14 John (J5) Palmieri <jo...@re...> + + * patch by Kimmo Hämäläinen <kimmo dot hamalainen at nokia dot com> + + * dbus/dbus-transport-socket.c(do_reading): return message + loader buffer in case of OOM (FDO Bug#12666) + +2008-01-14 John (J5) Palmieri <jo...@re...> + + * configure.in: add warning to output when libxml is selected since + we don't have a libxml maintainer and expat works perfectly fine + for what we need an xml parser for + +2008-01-14 John (J5) Palmieri <jo...@re...> + + * Patch by Andrea Luzzardi <scox at sig11 dot org>: creates a + _dbus_geteuid function to fix EXTERNAL authentication in setuid + applications + + * dbus/dbus-sysdeps-unix.c (_dbus_geteuid): used to get the effective + uid of the running program + (_dbus_credentials_add_from_current_process): use geteuid instead of + getuid + (_dbus_append_user_from_current_process): use geteuid instead of + getuid + + * dbus/dbus-sysdeps-util-unix.c (_dbus_change_to_daemon_user): use + geteuid instead of getuid + (_dbus_unix_user_is_at_console): use geteuid instead of getuid + + * dbus/dbus-sysdeps-win.c (_dbus_geteuid): add a windows equivilant + that returns DBUS_UID_UNSET + +2007-12-18 Havoc Pennington <hp...@re...> + + * dbus/dbus-connection.c (_dbus_connection_block_pending_call): + fix location of curly braces + +2007-11-23 Sjoerd Simons <sj...@lu...> + + * tools/dbus-launch.c: let both a normal dbus-launch and an + autolaunched bus save their parameters in X11 if possible. This makes + the autolaunch and non-autolaunch behaviour more similar. With the + exception that on a normal launch there will always be a new session + bus and not being able to save parameters is not fatal. This also + enables to launch programs directly with autolaunch (not very usefull + though). + +2007-10-31 Havoc Pennington <hp...@re...> + + * bus/selinux.c (log_audit_callback): rewrite to use + _dbus_string_copy_to_buffer_with_nul() + + * dbus/dbus-string.c (_dbus_string_copy_to_buffer): change to NOT + nul-terminate the buffer; fail an assertion if there is not enough + space in the target buffer. This fixes two bugs where + copy_to_buffer was used to copy the binary bytes in a UUID, where + nul termination did not make sense. Bug reported by David Castelow. + (_dbus_string_copy_to_buffer_with_nul): new function that always + nul-terminates the buffer, and fails an assertion if there is not + enough space in the buffer. + +2007-10-23 Havoc Pennington <hp...@re...> + + * bus/bus.c (bus_context_new): use the new name here + + * bus/selinux.c (bus_selinux_audit_init): rename from audit_init() + to avoid possible libc conflict, and declare it in .h file to + avoid a warning + +2007-10-19 Havoc Pennington <hp...@re...> + + * bus/bus.c (bus_context_new): put audit_init() in HAVE_SELINUX + +2007-10-19 Havoc Pennington <hp...@re...> + + * bus/bus.c (bus_context_new): put the audit_init() in here + instead, which I believe ends up being the same as where it was + before, though I'm not sure I understand why it goes here. + + * dbus/dbus-sysdeps-util-unix.c (_dbus_change_to_daemon_user): + remove audit_init() from here, this file can't depend on code in + bus/ directory + +2007-10-16 Simon McVittie <sim...@co...> + + * configure.in: *Actually* fix detection of i486 atomic ops - + my previous attempt at a fix would always enable them due to wrong + quoting. Patch from Colin Walters <wa...@ve...> + +2007-10-11 Simon McVittie <sim...@co...> + + * configure.in: enable Autoconf's AC_C_INLINE to avoid compilation + failure with gcc -ansi + * dbus/dbus-macros.h, dbus/dbus-arch-deps.h.in: Use new macro + _DBUS_GNUC_EXTENSION (the same as G_GNUC_EXTENSION) to avoid -ansi + warnings about use of "long long". + * dbus/dbus-server-socket.c: remove unused variable when assertions + are disabled + * dbus/dbus-marshal-validate.c: avoid empty statements by removing + stray semicolons + * tools/dbus-launch.c: convert C++-style comment to C-style, add {} + for clarity + * .gitignore: ignore vi swapfiles + * dbus/dbus-errors.h, dbus/dbus-errors.c: Add DBUS_ERROR_INIT macro, + equivalent to calling dbus_error_init() on an uninitialized DBusError + * dbus/dbus-address.c, dbus/dbus-auth-script.c, dbus/dbus-auth-util.c, + dbus/dbus-connection.c, dbus/dbus-internals.c, dbus/dbus-keyring.c, + dbus/dbus-message-util.c, dbus/dbus-server.c, dbus/dbus-sha.c, + dbus/dbus-spawn-win.c, dbus/dbus-spawn.c, + dbus/dbus-sysdeps-util-win.c, dbus/dbus-transport-socket.c, + dbus/dbus-transport.c, dbus/dbus-userdb.c: use that macro instead of + calling dbus_error_init() where it's clearly equivalent + * configure.in, dbus/dbus-sysdeps.h, dbus/dbus-sysdeps-unix.c: Fix + detection of i486 atomic ops. Previously, the attempts to determine + support at compile-time on Darwin were causing the i486 atomic ops to + be used on *all* i386 or x86-64 GCC builds (AH_VERBATIM can't be + conditionalized like we were trying to). + +2007-10-10 Simon McVittie <sim...@co...> + + * dbus/dbus-errors.c, dbus/dbus-protocol.h: Add new error + org.freedesktop.DBus.Error.ObjectPathInUse + * dbus/dbus-object-tree.h, dbus/dbus-object-tree.c, + dbus/dbus-connection.c, dbus/dbus-connection.h: add new functions + dbus_connection_try_register_object_path and + dbus_connection_try_register_fallback, which raise ObjectPathInUse + rather than asserting, to make object path registration less painful + for bindings + * .gitignore: add various things that weren't in .cvsignore because + CVS implicitly ignored them; generally bring up to date + +2007-10-09 John (J5) Palmieri <jo...@re...> + + * tools/run-with-tmp-session-bus.sh: Fix env exports for better + portability (#9280) + * tools/dbus-send.1: Document syntax for container types in dbus-send + man file (#9553) - patch from Jack Spaar <jspaar at + users.sourceforge.net> + + [Both OK for MIT/X11 relicensing -smcv] + +2007-10-09 Simon McVittie <sim...@co...> + + * doc/dbus-specification.xml: Specifically forbid empty structs (#7969) + * doc/dbus-specification.xml: Patches from Kristoffer Lundén to clarify + description of DBUS_COOKIE_SHA1 (#10184) and allowable contents of a + variant (#10185, amended as per Havoc's comments) + + [All of the above are OK for MIT/X11 licensing] + +2007-10-03 John (J5) Palmieri <jo...@re...> + + * dbus/dbus-internals.h: fd.o bug #11678 Don't error out if compiler + does not support vararg macros. _dbus_verbose is the only function + that does this so make it a noop if vararg macros are not supported + * bus/selinux.c, dbus/dbus-sysdeps-util-unix.c: fd.o bug #12429 + Reverse check to setpcap and only init audit if we were root + (patch by Dan Walsh <dw...@re...>, + https://bugs.freedesktop.org/show_bug.cgi?id=12429). Reverse + we_were_root check to setpcap if we were root. Also only init audit + if we were root. So error dbus message will not show up when policy + reload happens. dbus -session will no longer try to send audit + message, only system will. + * configure.in: fd.o bug #11872 improve linker test for --gc-sections. + Patch by Tim Mooney <enchanter at users.sourceforge.net> + * configure.in, dbus/dbus-sysdeps.c: fd.o bug #11872 fix clearenv for + systems that do not have it. Patch from Brian Cameron <brian.cameron + at sun.com> + * tools/dbus-launch.c: fd.o bug #12547 remove superfluous if. + Also convert tabs to spaces + * configure.in, bus/Makefile.am, dbus/Makefile.am: Correctly implement + -fPIC and -fPIE. For security reasons we want possition independent + code for libraries and possition independent executable for + executables. Before we were just enabling -fPIC. Now we correctly + enable -fPIC and -PIE for libdbus and the bus respectively. Proper + LD_FLAGS are set for each also. + +2007-09-20 Ryan Lortie <de...@de...> + + Add argument path matching support. Bug #11066. + + * dbus/signals.c (struct DBusMatchRule, bus_match_rule_new, + bus_match_rule_set_arg, bus_match_rule_parse_arg_match, + match_rule_matches): Add support for parsing and matching on + arg0path='/some/path' type rules. + + * dbus/signals.h (bus_match_rule_set_arg): change to take const + DBusString instead of const char * for the string to match against. + + * dbus/dbus-bus.c: add a quick note to dbus_bus_add_match + documentation about the path matching. + + * doc/dbus-specification.xml: add a more detailed description of the + changes here. + +2007-09-19 Ryan Lortie <de...@de...> + + Add support for compacting DBusStrings to release wasted memory. + + * dbus/dbus-string.[ch] (compact, _dbus_string_compact, + _dbus_string_lock): new compact function to free up allocated memory + that is no longer used. + + * dbus/dbus-message.c (load_message): call _dbus_string_compact on the + message loader buffer. + + * dbus/dbus-transport-socket.c (do_reading, do_writing): call + _dbus_string_compact on the incoming/outgoing "encoded" buffers. + + * dbus/dbus-string-util.c (_dbus_string_test): add a few tests for + string compacting. + +2007-09-13 Ryan Lortie <de...@de...> + + * HACKING: add more explicit git branch/tag instructions + +2007-09-13 Ryan Lortie <de...@de...> + + migrate from cvs to git (cvs2svn -> git-svnimport). + + * HACKING: update release/branch/tag instructions + * */.cvsignore: rename to .gitignore + + also, clean up tags and branch names to conform to HACKING + +2007-08-17 William Jon McCann <mc...@jh...> + + * update-dbus-docs.sh: upload DTD to server + +2007-08-17 Havoc Pennington <hp...@re...> + + * tools/dbus-launch-x11.c (set_address_in_x11): fix from Michael + Lorenz to use long not int with XChangeProperty format 32 + + * dbus/dbus-sysdeps-util-unix.c + (_dbus_write_pid_to_file_and_pipe): factor this out, and use the + same code in _dbus_become_daemon (where the parent writes the pid + file and to the pid pipe) and in bus_context_new (where the daemon + writes its own pid file and to its own pid pipe) + + * bus/bus.c (bus_context_new): close the pid pipe after we print + to it. Also, don't write the pid to the pipe twice when we fork, + someone reported this bug a long time ago. + +2007-08-03 Havoc Pennington <hp...@re...> + + * configure.in: add major/minor/micro version number AC_SUBST + + * dbus/dbus-arch-deps.h.in (DBUS_MAJOR_VERSION, + DBUS_MINOR_VERSION, DBUS_MICRO_VERSION, DBUS_VERSION_STRING, + DBUS_VERSION): collection of macros to get version of library we + are compiled against. + + * dbus/dbus-misc.c (dbus_get_version): new function, to get + version of library we are linked against at runtime. + +2007-07-30 Havoc Pennington <hp...@re...> + + * bus/activation-helper.c (check_bus_name): don't use + _dbus_check_valid_bus_name() which is only around with + --enable-checks, instead use _dbus_validate_bus_name(). + Bug #11766 from Diego <di...@pe...> + +2007-07-27 Havoc Pennington <hp...@re...> + + * configure.in: post-release version bump + +2007-07-27 Havoc Pennington <hp...@re...> + + * release 1.1.2 + +2007-07-26 Havoc Pennington <hp...@re...> + + * bus/config-parser-trivial.c (check_return_values): disable a + test that hardcoded the bus user's name + + * bus/dispatch.c (bus_dispatch_test_conf): remove the "if + (!use_launcher)" around the tests, they were only failing because + we didn't pass through all the expected errors from the helper. + + * bus/activation-exit-codes.h + (BUS_SPAWN_EXIT_CODE_CHILD_SIGNALED): add a code for child segfaulting + (BUS_SPAWN_EXIT_CODE_GENERIC_FAILURE): make "1" be a generic + failure code, so if a third party launch helper were written it + could just always return 1 on failure. + +2007-07-24 Daniel P. Berrange <da...@be...> + + * bus/dbus-daemon.1: Add docs on new syntax options for the bus + address strings + + * dbus/dbus-address.c: Allow * in addresses (for binding to all + addresses). + + * dbus/dbus-sysdeps.h: + * dbus/dbus-sysdeps-unix.c: Re-write to use getaddrinfo instead + of gethostbyname to enable protocol independant name lookup, + making IPv6 work + + * dbus/dbus-server-socket.h: + * dbus/dbus-server-socket.c: Add support for 'family' in the + address string to specify ipv4 vs ipv6. Use a port string to + allow for service resolution. Allow for binding to multiple + sockets at once in case of dual IPv4 & IPv6 stacks. + + * dbus/dbus-server-unix.c: Pass in an array of file descriptors + instead of a single one. + + * dbus/dbus-transport-socket.h: + * dbus/dbus-transport-socket.c: Add support for 'family' in the + address string to specify ipv4 vs ipv6. Use a port string to + allow for service resolution. + +2007-07-24 Havoc Pennington <hp...@re...> + + * configure.in: add AM_PROG_CC_C_O to allow per-target CPPFLAGS + + * bus/dispatch.c (bus_dispatch_test_conf): Fix up setting + TEST_LAUNCH_HELPER_CONFIG to include the full path, and enable + test shell_fail_service_auto_start when use_launcher==TRUE + + * bus/activation-helper-bin.c (convert_error_to_exit_code): pass + through the INVALID_ARGS error so the test suite works + + * bus/activation.c (handle_activation_exit_error): return + DBUS_ERROR_NO_MEMORY if we get BUS_SPAWN_EXIT_CODE_NO_MEMORY + + * dbus/dbus-spawn.c (_dbus_babysitter_get_child_exit_status): + return only the exit code of the child, not the entire thingy from + waitpid(), and make the return value indicate whether the child + exited normally (with a status code) + + * bus/bus.c (process_config_first_time_only): _dbus_strdup works + on NULL so no need to check + (process_config_every_time): move servicehelper init here, so we + reload it on HUP or config file change + + * bus/Makefile.am (install-data-hook): remove comment because + Emacs make mode seems to be grumpy about it + +2007-07-24 Richard Hughes <ri...@hu...> + + * bus/Makefile.am: + * bus/test-system.c: (die), (check_memleaks), (test_pre_hook), + (test_post_hook), (main): + Add back the test-system.c file - not sure now this got ignored in the + diff. I blame git. + +2007-07-24 Richard Hughes <ri...@hu...> + + * configure.in: + Use ustar to generate the tarball; this fixes the make distcheck + problem when the data files do not fit in the archive: + tar: dbus-1.1.2/test/data/valid-service-files/org.freedesktop.DBus. + TestSuiteShellEchoServiceFail.service.in: file name is too + long (max 99); not dumped + + We have to have the 'long' names as the service helper matches by + filename rather than by the name in the service file. + +2007-07-24 Richard Hughes <ri...@hu...> + + * configure.in: + * test/Makefile.am: + * test/data/invalid-service-files-system/org.freedesktop.DBus.TestS + uiteNoExec.service.in: + * test/data/invalid-service-files-system/org.freedesktop.DBus.TestS + uiteNoService.service.in: + * test/data/invalid-service-files-system/org.freedesktop.DBus.TestS + uiteNoUser.service.in: + * test/data/valid-config-files-system/debug-allow-all-fail.conf.in: + * test/data/valid-config-files-system/debug-allow-all-pass.conf.in: + * test/data/valid-config-files/debug-allow-all-sha1.conf.in: + * test/data/valid-config-files/debug-allow-all.conf.in: + * test/data/valid-service-files-system/org.freedesktop.DBus.TestSui + teEchoService.service.in: + * test/data/valid-service-files-system/org.freedesktop.DBus.TestSui + teSegfaultService.service.in: + * test/data/valid-service-files-system/org.freedesktop.DBus.TestSui + teShellEchoServiceFail.service.in: + * test/data/valid-service-files-system/org.freedesktop.DBus.TestSui + teShellEchoServiceSuccess.service.in: + * test/data/valid-service-files/debug-echo.service.in: + * test/data/valid-service-files/debug-segfault.service.in: + * test/data/valid-service-files/debug-shell-echo-fail.service.in: + * test/data/valid-service-files/debug-shell-echo-success.service.in: + * test/data/valid-service-files/org.freedesktop.DBus.TestSuiteEchoS + ervice.service.in: + * test/data/valid-service-files/org.freedesktop.DBus.TestSuiteSegfa + ultService.service.in: + * test/data/valid-service-files/org.freedesktop.DBus.TestSuiteShell + EchoServiceFail.service.in: + * test/data/valid-service-files/org.freedesktop.DBus.TestSuiteShell + EchoServiceSuccess.service.in: + Add the data files needed by the system activation unit checks. + +2007-07-24 Richard Hughes <ri...@hu...> + + * bus/dispatch.c: (check_segfault_service_no_auto_start), + (check_launch_service_file_missing), + (check_launch_service_user_missing), + (check_launch_service_exec_missing), + (check_launch_service_service_missing), (bus_dispatch_test_conf), + (bus_dispatch_test_conf_fail), (bus_dispatch_test): + Add unit tests for system activation. Most are copied from the + session activation tests, but some didn't apply when using a laucher. + +2007-07-24 Richard Hughes <ri...@hu...> + + * bus/activation.c: (bus_activation_activate_service): + If the bus uses a service-laucher, then use the setuid laucher. + +2007-07-24 Richard Hughes <ri...@hu...> + + * configure.in: + Add the needed library exports for the new laucher. + +2007-07-24 Richard Hughes <ri...@hu...> + + * configure.in: + Check for -Wl,--gc-sections so we can really reduce the size of the + setuid binary. + +2007-07-24 Richard Hughes <ri...@hu...> + + * bus/activation.c: (handle_activation_exit_error), + (babysitter_watch_callback): + Map the child exit status integer to a proper dbus error. + +2007-07-24 Richard Hughes <ri...@hu...> + + * bus/bus.c: (process_config_first_time_only), + (process_config_every_time), (bus_context_unref), + (bus_context_get_servicehelper): + * bus/bus.h: + Add the concept of a service-helper and allow it's value to be read. + +2007-07-24 Richard Hughes <ri...@hu...> + + * bus/activation.c: (bus_activation_entry_unref), + (update_desktop_file_entry): + Add the concept of, and read the value of user from the desktop file. + The user string is not required unless we are using system activation. + +2007-07-24 Richard Hughes <ri...@hu...> + + * bus/activation.c: + * bus/desktop-file.h: + Move the defines into the header file, as we use these in the lauch + helper as well as the desktop file parsing. + +2007-07-24 Richard Hughes <ri...@hu...> + + * bus/.cvsignore: + Add the autogenerated binary files. + +2007-07-24 Richard Hughes <ri...@hu...> + + * bus/Makefile.am: + * bus/test.h: + Add the build glue for the lauch helper, and also add the launch-helper + OOM checks into make check. I've probably broken the build, give me 2. + +2007-07-24 Richard Hughes <ri...@hu...> + + * bus/test-launch-helper.c: (die), (check_memleaks), + (test_post_hook), (bus_activation_helper_oom_test), (main): + Add a test wrapper to allow OOM checks on the launch helper. + +2007-07-24 Richard Hughes <ri...@hu...> + + * bus/activation-helper-bin.c: (convert_error_to_exit_code), + (main): + * bus/activation-helper.c: (desktop_file_for_name), + (clear_environment), (check_permissions), (check_service_name), + (get_parameters_for_service), (switch_user), + (exec_for_correct_user), (check_bus_name), (get_correct_parser), + (launch_bus_name), (check_dbus_user), (run_launch_helper): + * bus/activation-helper.h: + Add the initial launch-helper. This is split into a main section and a + binary loader that allows us to lauch the main section in another test + harness to do stuff like OOM testing. No build glue yet. + +2007-07-24 Richard Hughes <ri...@hu...> + + * bus/Makefile.am: + * bus/config-parser.c: (bus_config_parser_unref), + (start_busconfig_child), (bus_config_parser_end_element), + (servicehelper_path), (bus_config_parser_content), + (bus_config_parser_finished), + (bus_config_parser_get_servicehelper), + (test_default_session_servicedirs), + (test_default_system_servicedirs), (bus_config_parser_test): + * bus/config-parser.h: + Make the config-parser code use the common config code. + Also add the session and systemdirs stuff, and make the config parser + aware of the servicehelper field. + +2007-07-24 Richard Hughes <ri...@hu...> + + * bus/system.conf.in: + Add new servicehelper fields to the default system.conf file. + +2007-07-24 Richard Hughes <ri...@hu...> + + * bus/config-parser-trivial.c: (service_dirs_find_dir), + (service_dirs_append_link_unique_or_free), (bus_config_parser_new), + (bus_config_parser_unref), (bus_config_parser_start_element), + (bus_config_parser_end_element), (bus_config_parser_content), + (bus_config_parser_finished), (bus_config_parser_get_user), + (bus_config_parser_get_type), (bus_config_parser_get_service_dirs), + (check_return_values), (do_load), (check_loader_oom_func), + (process_test_valid_subdir), (make_full_path), (check_file_valid), + (bus_config_parser_trivial_test): + * bus/config-parser-trivial.h: + Add a security sensitive stripped down config parser for the setuid + launcher. This file only reads what it needs, and doesn't try to do + anything remotely clever like including external files. + It is not intended to validate the config file; it is expected that + config-parser will do that before the setuid program tries to read it. + +2007-07-24 Richard Hughes <ri...@hu...> + + * bus/config-parser-common.c: + (bus_config_parser_element_name_to_type), + (bus_config_parser_element_type_to_name): + * bus/config-parser-common.h: + We don't want to run the whole config parser with all it's deps in the + setuid program. We need to implement a stripped down config parser just + for the launcher, and to do so I need some common functions and + defines; add them here. + +2007-07-24 Richard Hughes <ri...@hu...> + + * dbus/dbus-sysdeps-unix.c: + (_dbus_get_standard_system_servicedirs): + * dbus/dbus-sysdeps-win.c: + Provide a way to get the standard system servicedirs, just like we do + for the session service dirs. These should be seporate, as there may + be a security issue starting up some session stuff as root. + The use-case for the same binary starting up per-system _and_ + per-session is also not valid. + +2007-07-24 Richard Hughes <ri...@hu...> + + * bus/dbus-daemon.1.in: + Add standard_system_servicedirs and servicehelper into the man file + and explain what each does. + +2007-07-24 Richard Hughes <ri...@hu...> + + * doc/busconfig.dtd: + Add servicehelper into the dtd, it will soon be a valid part of the + config file. + +2007-07-24 Richard Hughes <ri...@hu...> + + * dbus/dbus-spawn.c: (read_data), + (_dbus_babysitter_get_child_exit_status): + * dbus/dbus-spawn.h: + Add a function so we can get access to the exit status of the launch + helper. + By providing the return code and not the error we can leave the + 'what does this mean?' to the bus launch code and not include it in the + dbus directory. + +2007-07-24 Richard Hughes <ri...@hu...> + + * bus/activation-exit-codes.h: + Add defines which specify the output codes of the launch helper. + We have to use exit codes as this is the only way we can return failure + type without going grotty things like redirecting possibly-nonsecure + stderr into the error. + +2007-07-24 Richard Hughes <ri...@hu...> + + * dbus/dbus-protocol.h: + Add new error names needed for the launch helper. + +2007-07-24 Richard Hughes <ri...@hu...> + + * dbus/dbus-sysdeps.c: (_dbus_clearenv): + * dbus/dbus-sysdeps.h: + Add a wrapper for clearenv. + +2007-07-24 Richard Hughes <ri...@hu...> + + * doc/system-activation.txt: + Add design document for the system activation parts. I'll shortly be + committing many patches that add system activation using a setuid + launcher into CVS, so expect things to be broken for a few hours. + 2007-07-19 Ralf Habacker <ral...@fr...> * cmake/modules/FindKDEWIN.cmake: fixed comment @@ -245,7 +1183,7 @@ 2007-06-14 Havoc Pennington <hp...@re...> * bus/dispatch.c (check_get_connection_unix_process_id): mop up - getpid() (noticed by Peter KKümmel) and adapt the test to + getpid() (noticed by Peter Kümmel) and adapt the test to expect a "pid unknown" error when running on Windows. 2007-06-14 Havoc Pennington <hp...@re...> @@ -308,7 +1246,7 @@ 2007-06-14 Simon McVittie <sim...@co...> * doc/dbus-specification.xml: say the protocol version is 1 instead of - 0 (patch from Kristoffer Lund\xE9n, fd.o#10033) and remove the FIXME + 0 (patch from Kristoffer Lundén, fd.o#10033) and remove the FIXME about removing protocol version from messages (as per Havoc's comment on that bug) @@ -1033,7 +1971,7 @@ 2006-12-12 John (J5) Palmieri <jo...@re...> * bus/signal.c: Fix match_rule_equal errata - (CVE-2006-6107 - Patch from Kimmo Hämäläinen + (CVE-2006-6107 - Patch from Kimmo Hämäläinen <kim...@no...>) 2006-11-19 Thiago Macieira <th...@kd...> Modified: trunk/HACKING =================================================================== --- trunk/HACKING 2008-04-05 14:58:11 UTC (rev 777) +++ trunk/HACKING 2008-04-23 18:11:35 UTC (rev 778) @@ -76,28 +76,31 @@ - add a ChangeLog entry containing the version number you're releasing ("Released 0.3" or something) so people can see which changes were before and after - a given release. + a given release - - The version number should have major.minor.micro even + - the version number should have major.minor.micro even if micro is 0, i.e. "1.0.0" and "1.2.0" not "1.0"/"1.2" - "make distcheck" (DO NOT just "make dist" - pass the check!) - if make distcheck fails, fix it. - - once distcheck succeeds, "cvs commit" + - once distcheck succeeds, "git-commit -a". This is the version + of the tree that corresponds exactly to the released tarball. - - if someone else made changes and the commit fails, - you have to "cvs up" and run "make distcheck" again + - tag the tree with "git-tag -s -m 'Released X.Y.Z' dbus-X.Y.Z" + where X.Y.Z is the version of the release. If you can't sign + then simply created an unannotated tag: "git-tag dbus-X.Y.Z". - - once the commit succeeds, "cvs tag DBUS_X_Y_Z" where - X_Y_Z map to version X.Y.Z - - bump the version number up in configure.in, and commit it. Make sure you do this *after* tagging the previous - release! The idea is that CVS has a newer version number + release! The idea is that git has a newer version number than anything released. + - push your changes to the central repository with "git-push" + + - push your new tag, too: "git-push origin dbus-X.Y.Z" + - scp your tarball to freedesktop.org server and copy it to /srv/dbus.freedesktop.org/www/releases/dbus. This should be possible if you're in group "dbus" @@ -118,7 +121,7 @@ After making a ".0" stable release === -After releasing, when you increment the version number in CVS, also +After releasing, when you increment the version number in git, also move the ChangeLog to ChangeLog.pre-X-Y where X-Y is what you just released, e.g. ChangeLog.pre-1-0. Then create and cvs add a new empty ChangeLog. The last entry in ChangeLog.pre-1-0 should be the one about @@ -131,16 +134,16 @@ a not-suitable-for-stable change they want to make and then branch to allow committing that change. -The branch name should be DBUS_X_Y_BRANCH which is a branch that has +The branch name should be dbus-X.Y-branch which is a branch that has releases versioned X.Y.Z -To branch, tag HEAD with DBUS_X_Y_BRANCHPOINT: - cvs tag DBUS_X_Y_BRANCHPOINT -then create the branch from that tag: - cvs rtag -b -r DBUS_X_Y_BRANCHPOINT DBUS_X_Y_BRANCH dbus +To branch: + git branch dbus-X.Y-branch +and upload the branch tag to the server: + git-push origin dbus-X.Y-branch -Note that DBUS_X_Y_BRANCHPOINT may not tag the same revision as the -DBUS_X_Y_0 release, since we may not branch immediately. +To develop in this branch: + git-checkout dbus-X.Y-branch Environment variables === Modified: trunk/NEWS =================================================================== --- trunk/NEWS 2008-04-05 14:58:11 UTC (rev 777) +++ trunk/NEWS 2008-04-23 18:11:35 UTC (rev 778) @@ -1,3 +1,99 @@ +D-Bus 1.1.20 - "Conisten Water" (27 Febuary) +== + +- This is the next generation supported STABLE release of D-Bus. For all + intents and purposes this is the 1.2.0 release WITHOUT the planned X11/MIT + license change due to a couple of license holders who have yet to respond. + For the most part this license change is being persued to simplify licensing + issues and fix a couple of licensing courner cases. When this happens D-Bus + will be released under the 1.2.0 version. + +- D-Bus 1.0.x effectively goes into security fix mode and will only be + updated for major issues. + +- Fixed CVE-2008-0595 - security policy of the type <allow send_interface= + "some.interface.WithMethods"/> work as an implicit allow for + messages sent without an interface bypassing the default deny rules and + potentially allowing restricted methods exported on the bus to be executed + by unauthorized users. + +- Fixes dbus-launch so the session bus goes away so does D-Bus + +- Builds against latest gcc/glibc changes + +- Correctly unref connections without guids during shutdown + +- About the name: Submitted by Greg K Nicholson, Conisten Water is a lake in + Cumbria, England where several water speed records have been broken. Between + 1956 and 1959 Sir Malcolm's son Donald Campbell set four successive records on the lake in Bluebird K7, a hydroplane. + (Wikipedia http://en.wikipedia.org/wiki/Coniston_Water#Waterspeed_record) + +D-Bus 1.1.4 - 1.2.0RC2 (17 January 2007) +== +- Fixes inotify support + +D-Bus 1.1.3 - 1.2.0RC1 (15 January 2007) +== + +- This release is intended to be Release Candidate 1 of major release + D-Bus 1.2.0. If nothing is found to be wrong with this release it + will become 1.2.0 within a week. If we need to make major changes + we will release an RC2 and start the process over again. + +- This is a development release, so API's may still change if problems + are found (though this is extreamly unlikely). + +- DTD for the introspection format is fixed and uploaded to the servers + +- Sources now reside in a git repository at + http://gitweb.freedesktop.org/?p=dbus/dbus.git;a=summary + +- Argument path matching of the type arg0path='/aa/bb/' is now supported + (see the specification for more information) + +- New error org.freedesktop.DBus.Error.ObjectPathInUse added + +- Autolaunched busses now save their parameters in X11 if possible making them + behave closer to busses launched through the normal mechanisms + +- inotify is now the default backend for watching configuration file changes + +- More support for the AIX platform has been added + +- Numerous bug fixes and performance enhancements + +D-Bus 1.1.2 (27 July 2007) +== + +- This release is intended to be a feature complete beta for stable + release 1.2.0, please test it. 1.2.0 will follow pretty soon if no + major problems are found. We'll do more betas if significant + changes are made. + +- This is a development release, so API's may still change if problems + are found (though we will try hard not to). + +- The system bus now supports starting services on demand. This uses a + setuid helper program because system bus daemon runs as a nobody + user, while services it launches may need to run as a different + user. + + ***Extra eyes auditing the setuid helper are encouraged and would be + timely right now, before 1.2.0*** + + A design doc is available in doc/system-activation.txt + +- The TCP address format has been enhanced, such that TCP may be + actually usable. The dbus-daemon man page describes the new + elements in the address format. 1.1.1 had added an all_interfaces + flag to the format, which has been removed in favor of a cleaner + approach. + +- Some thread-related bugs have been fixed, these are important fixes + if you are using multiple threads with libdbus, and not important + otherwise. + + D-Bus 1.1.1 (18 June 2007) == - This is a development release, unless you need specific Deleted: trunk/bus/.cvsignore =================================================================== --- trunk/bus/.cvsignore 2008-04-05 14:58:11 UTC (rev 777) +++ trunk/bus/.cvsignore 2008-04-23 18:11:35 UTC (rev 778) @@ -1,17 +0,0 @@ -.deps -.libs -Makefile -Makefile.in -*.lo -*.la -dbus-daemon -*.bb -*.bbg -*.da -*.gcov -bus-test -rc.messagebus -messagebus -session.conf -system.conf -dbus-daemon.1 Deleted: trunk/bus/CVS/Entries =================================================================== --- trunk/bus/CVS/Entries 2008-04-05 14:58:11 UTC (rev 777) +++ trunk/bus/CVS/Entries 2008-04-23 18:11:35 UTC (rev 778) @@ -1,44 +0,0 @@ -/.cvsignore/1.8/Thu Mar 17 17:48:29 2005// -/Makefile.am/1.44/Fri Jun 15 20:10:09 2007// -/dbus-daemon.1.in/1.9/Wed Jun 13 20:52:58 2007// -/messagebus.in/1.6/Thu Oct 19 15:34:47 2006// -/rc.messagebus.in/1.3/Thu Oct 19 15:34:47 2006// -/selinux.h/1.10/Sat Jul 16 17:34:08 2005// -/session.conf.in/1.14/Wed May 23 19:45:56 2007// -/system.conf.in/1.16/Thu Aug 3 20:34:36 2006// -/activation.c/1.52/Mon Jul 16 19:16:47 2007// -/activation.h/1.15/Mon Jul 16 19:16:47 2007// -/bus.c/1.82/Mon Jul 16 19:16:47 2007// -/bus.h/1.33/Mon Jul 16 19:16:47 2007// -/config-loader-expat.c/1.11/Mon Jul 16 19:16:47 2007// -/config-loader-libxml.c/1.10/Mon Jul 16 19:16:47 2007// -/config-parser.h/1.19/Mon Jul 16 19:16:47 2007// -/connection.c/1.68/Mon Jul 16 19:16:47 2007// -/connection.h/1.23/Mon Jul 16 19:16:47 2007// -/desktop-file.c/1.17/Mon Jul 16 19:16:47 2007// -/desktop-file.h/1.7/Mon Jul 16 19:16:47 2007// -/dir-watch-default.c/1.3/Mon Jul 16 19:16:47 2007// -/dir-watch-dnotify.c/1.5/Mon Jul 16 19:16:47 2007// -/dir-watch-kqueue.c/1.4/Mon Jul 16 19:16:47 2007// -/dir-watch.h/1.3/Mon Jul 16 19:16:47 2007// -/dispatch.h/1.7/Mon Jul 16 19:16:47 2007// -/driver.c/1.81/Mon Jul 16 19:16:47 2007// -/driver.h/1.11/Mon Jul 16 19:16:47 2007// -/expirelist.c/1.8/Mon Jul 16 19:16:47 2007// -/expirelist.h/1.7/Mon Jul 16 19:16:47 2007// -/main.c/1.42/Mon Jul 16 19:16:48 2007// -/policy.c/1.30/Mon Jul 16 19:16:48 2007// -... [truncated message content] |