platform/upstream/dbus.git
14 years agoMerge branch 'my-dbus-1.2'
Colin Walters [Mon, 1 Feb 2010 22:27:26 +0000 (17:27 -0500)]
Merge branch 'my-dbus-1.2'

14 years agoMove system-activation.txt into non-conditional EXTRA_DIST
Colin Walters [Mon, 1 Feb 2010 21:45:48 +0000 (16:45 -0500)]
Move system-activation.txt into non-conditional EXTRA_DIST

It doesn't depend on the XML doc generation.

14 years agoClean up inotify watch handling
Colin Walters [Thu, 28 Jan 2010 21:26:39 +0000 (16:26 -0500)]
Clean up inotify watch handling

Substantially based on a patch by Matthias Clasen <mclasen@redhat.com>
kqueue implementation by Joe Marcus Clarke <marcus@freebsd.org>

Previously, when we detected a configuration change (which included
the set of config directories to monitor for changes), we would
simply drop all watches, then readd them.

The problem with this is that it introduced a race condition where
we might not be watching one of the config directories for changes.

Rather than dropping and readding, change the OS-dependent monitoring
API to simply take a new set of directories to monitor.  Implicit
in this is that the OS-specific layer needs to keep track of the
previously monitored set.

14 years ago_dbus_change_to_daemon_user() is platform related and commit 0a3905d7f3b2ff43b094798...
Ralf Habacker [Fri, 29 Jan 2010 22:57:07 +0000 (23:57 +0100)]
_dbus_change_to_daemon_user() is platform related  and commit 0a3905d7f3b2ff43b09479863775939f9c8acad4 broke windows builds

14 years agoreverted 2aea64fbb69287f52bb9910e89b6732854f47be8 because it breaks msvc2008 builds
Ralf Habacker [Fri, 29 Jan 2010 22:48:34 +0000 (23:48 +0100)]
reverted 2aea64fbb69287f52bb9910e89b6732854f47be8 because it breaks msvc2008 builds

14 years agoUpdate messagebus.in init script to start earlier
Colin Walters [Thu, 28 Jan 2010 22:31:36 +0000 (17:31 -0500)]
Update messagebus.in init script to start earlier

Patch from Fedora.

14 years ago[doc] diagram.[svg,png] to EXTRA_DIST
Colin Walters [Thu, 28 Jan 2010 22:28:25 +0000 (17:28 -0500)]
[doc] diagram.[svg,png] to EXTRA_DIST

These files are part of the docs and should appear in tarballs.

14 years agoMerge branch 'my-dbus-1.2'
Colin Walters [Thu, 28 Jan 2010 22:09:15 +0000 (17:09 -0500)]
Merge branch 'my-dbus-1.2'

Conflicts:
bus/Makefile.am
dbus/dbus-sysdeps-util-unix.c
dbus/dbus-transport.c
test/test-service.c

14 years agoDon't drop pending activations when reloading configuration
Colin Walters [Thu, 28 Jan 2010 20:04:14 +0000 (15:04 -0500)]
Don't drop pending activations when reloading configuration

The reload handling for activation simply dropped all knowledge
of pending activations, which was clearly wrong.  Refactor things
so that reload only reloads directories, server address etc.

Based on a patch originally from Matthias Clasen <mclasen@redhat.com>

14 years agoSwitch to libcap-ng, avoid linking libdbus against libcap[-ng]
Colin Walters [Thu, 28 Jan 2010 00:38:44 +0000 (19:38 -0500)]
Switch to libcap-ng, avoid linking libdbus against libcap[-ng]

(Commit message written by Colin Walters <walters@verbum.org>)

A current Fedora goal is to convert projects to libcap-ng which
more easily allows dropping Linux capabilities.  For software
which also links to libdbus, it's problematic to link against
libcap as well.

Though really, libdbus should have never linked against libcap
in the first place, which is another thing this patch changes
by moving the libcap-using bits out of dbus/ and into bus/.

https://bugzilla.redhat.com/show_bug.cgi?id=518541

14 years agoAdd Will Thompson and Simon McVittie to reviewers, add emails to all
Colin Walters [Fri, 15 Jan 2010 21:57:39 +0000 (16:57 -0500)]
Add Will Thompson and Simon McVittie to reviewers, add emails to all

The reviewer list was sorely lacking actual email addresses; fix this.
Also add Will and Simon.

14 years agoIgnore exit code zero from activated services
Colin Walters [Mon, 14 Dec 2009 23:12:24 +0000 (18:12 -0500)]
Ignore exit code zero from activated services

A variety of system components have migrated from legacy init into DBus
service activation.  Many of these system components "daemonize", which
involves forking.  The DBus activation system treated an exit as an
activation failure, assuming that the child process which grabbed the
DBus name didn't run first.

While we're in here, also differentiate in this code path between the
servicehelper (system) versus direct activation (session) paths.  In
the session activation path our error message mentioned a helper
process which was confusing, since none was involved.

Based on a patch and debugging research from Ray Strode <rstrode@redhat.com>

14 years agoPrint all-printable-ASCII byte arrays as strings
Will Thompson [Wed, 28 Oct 2009 19:40:38 +0000 (19:40 +0000)]
Print all-printable-ASCII byte arrays as strings

In practice, ay seems to be used mostly for binary data (in which case,
hex output is fine) or for Unix file paths (because they may be
non-UTF-8) and similar human-readable strings. So let's print the latter
similarly to strings.

14 years agoPrint byte arrays as nicely-formatted hex.
Will Thompson [Wed, 9 Sep 2009 19:58:53 +0000 (20:58 +0100)]
Print byte arrays as nicely-formatted hex.

14 years agoAdd an accessor for the loader's corruption reason
Will Thompson [Sat, 8 Aug 2009 13:29:12 +0000 (14:29 +0100)]
Add an accessor for the loader's corruption reason

14 years agoInclude reason when reporting corrupt messages
Will Thompson [Sat, 8 Aug 2009 12:57:11 +0000 (13:57 +0100)]
Include reason when reporting corrupt messages

It would have been much easier to diagnose fd.o#19723 if the error
message had said more than just "Message is corrupted".

14 years agoForbid zero serial numbers
Will Thompson [Sat, 8 Aug 2009 13:03:46 +0000 (14:03 +0100)]
Forbid zero serial numbers

14 years agoMake array-printing code easier to follow
Will Thompson [Wed, 9 Sep 2009 19:35:13 +0000 (20:35 +0100)]
Make array-printing code easier to follow

Previously dbus_message_iter_get_arg_type() was called twice: once in
the loop condition to update 'current_type', and once to check if the
loop will run again. This patch moves updating current_type to the end
of the loop body.

14 years agoCorrect timeout handling
James Westby [Thu, 1 Oct 2009 14:09:54 +0000 (15:09 +0100)]
Correct timeout handling

The timeout handling code subtracts the elapsed time from the timeout
each time a message is received, which drastically reduces the timeout
in circumstances such as service activation.

Correct so that the timeout is never modified, and the elapsed time
instead subtracted where necessary.

Signed-off-by: James Westby <jw+debian@jameswestby.net>
Signed-off-by: Scott James Remnant <scott@ubuntu.com>
14 years agoAllow to override test tool path for cross compilation setup.
Marcus Brinkmann [Mon, 25 Jan 2010 14:57:04 +0000 (15:57 +0100)]
Allow to override test tool path for cross compilation setup.

14 years agoBug 23502 - corrected wrong verbose-output
Hendrik Buschmeier [Thu, 28 Jan 2010 10:22:32 +0000 (11:22 +0100)]
Bug 23502 - corrected wrong verbose-output

14 years agoInvoke AC_PROG_MKDIR_P to make sure MKDIR_P is defined.
Marcus Brinkmann [Fri, 15 Jan 2010 16:57:58 +0000 (17:57 +0100)]
Invoke AC_PROG_MKDIR_P to make sure MKDIR_P is defined.

14 years agoOnly list those symbols that can be exported (new toolchain barfs on undefined symbol...
Marcus Brinkmann [Fri, 15 Jan 2010 16:54:40 +0000 (17:54 +0100)]
Only list those symbols that can be exported (new toolchain barfs on undefined symbols in export list).

14 years agoInclude errno.h.
Marcus Brinkmann [Fri, 15 Jan 2010 16:53:43 +0000 (17:53 +0100)]
Include errno.h.

14 years agoFix buffer underrun and clarify condition.
Marcus Brinkmann [Wed, 20 Jan 2010 12:24:35 +0000 (13:24 +0100)]
Fix buffer underrun and clarify condition.

14 years agoAdd Will Thompson and Simon McVittie to reviewers, add emails to all
Colin Walters [Fri, 15 Jan 2010 21:57:39 +0000 (16:57 -0500)]
Add Will Thompson and Simon McVittie to reviewers, add emails to all

The reviewer list was sorely lacking actual email addresses; fix this.
Also add Will and Simon.

14 years agofixes bug where sometimes objects were not unregistered from dbus
Romain Pokrzywka [Thu, 14 Jan 2010 07:59:22 +0000 (08:59 +0100)]
fixes bug where sometimes objects were not unregistered from dbus
although their app had exited. As it turns out it was a missing
implementation of the method _dbus_fd_set_close_on_exec() for windows.
It's been tested with msvc2005, msvc2008, and mingw, and solves
all the unregistering issues on many kde apps.

14 years agoRename DBusConnection *disconnected param to connection
Will Thompson [Thu, 3 Sep 2009 14:33:32 +0000 (15:33 +0100)]
Rename DBusConnection *disconnected param to connection

14 years agoGroup match rules by their interface.
Will Thompson [Thu, 30 Jul 2009 09:49:33 +0000 (10:49 +0100)]
Group match rules by their interface.

In my informal studies of "normal" sets of match rules, only checking
match rules with the appropriate interface for the message reduces the
number that need to be checked by almost 100x on average (ranging from
halving for messages from the bus daemon, to a >200x reduction in many
cases). This reduces the overhead added to dispatching each message by
having lots of irrelevant match rules.

14 years agoExtract rule_list_remove_by_connection
Will Thompson [Wed, 29 Jul 2009 19:03:40 +0000 (20:03 +0100)]
Extract rule_list_remove_by_connection

14 years agoExtract freeing a DBusList<BusMatchRule>
Will Thompson [Wed, 29 Jul 2009 17:52:28 +0000 (18:52 +0100)]
Extract freeing a DBusList<BusMatchRule>

14 years agoDon't bother re-matching features we've checked.
Will Thompson [Wed, 29 Jul 2009 16:53:37 +0000 (17:53 +0100)]
Don't bother re-matching features we've checked.

This is currently not a big deal, but will make more of a difference
once the set of match rules is partitioned by more features than just
the message type.

14 years agoIndex match rules by message type
Will Thompson [Wed, 29 Jul 2009 16:48:21 +0000 (17:48 +0100)]
Index match rules by message type

This avoids scanning all the signal matches while dispatching method
calls and returns, which are rarely matched against.

14 years agoAdd a constant for the number of message types
Will Thompson [Wed, 29 Jul 2009 16:47:04 +0000 (17:47 +0100)]
Add a constant for the number of message types

14 years agoadded tranport address format to dbus specification
Ralf Habacker [Wed, 23 Dec 2009 22:28:48 +0000 (23:28 +0100)]
added tranport address format to dbus specification

14 years agoadded initial tcp transport section
Ralf Habacker [Wed, 23 Dec 2009 10:09:42 +0000 (11:09 +0100)]
added initial tcp transport section

14 years agononce tcp support requires _dbus_string_equal_len also when build without tests
Ralf Habacker [Wed, 23 Dec 2009 09:40:48 +0000 (10:40 +0100)]
nonce tcp support requires _dbus_string_equal_len also when build without tests

14 years agofixed install root when using msvc ide
Ralf Habacker [Tue, 22 Dec 2009 09:07:37 +0000 (10:07 +0100)]
fixed install root when using msvc ide

14 years agolet dbus_verbose print file name, line number and function name if available; this...
Ralf Habacker [Sat, 19 Dec 2009 19:51:54 +0000 (20:51 +0100)]
let dbus_verbose print file name, line number and function name if available; this eases debugging.

14 years agoBug 25697 - Fix memory leak in policy reload
Matthias Clasen [Fri, 18 Dec 2009 19:29:40 +0000 (14:29 -0500)]
Bug 25697 - Fix memory leak in policy reload

Signed-off-by: Colin Walters <walters@verbum.org>
14 years agoremoved local definition of _DBUS_GNUC_PRINTF, it is already in dbus-macro.h
Ralf Habacker [Fri, 18 Dec 2009 16:40:44 +0000 (17:40 +0100)]
removed local definition of _DBUS_GNUC_PRINTF, it is already in dbus-macro.h

14 years agoDBusPipe related unix compile fix
Ralf Habacker [Fri, 18 Dec 2009 16:35:43 +0000 (17:35 +0100)]
DBusPipe related unix compile fix

14 years agoadded pipe related files real
Ralf Habacker [Fri, 18 Dec 2009 15:54:44 +0000 (16:54 +0100)]
added pipe related files real

14 years agoMerge branch 'master' of ssh://git.freedesktop.org/git/dbus/dbus
Ralf Habacker [Fri, 18 Dec 2009 15:46:11 +0000 (16:46 +0100)]
Merge branch 'master' of ssh://git.freedesktop.org/git/dbus/dbus

14 years agowindows does not support fork, skip it
Ralf Habacker [Fri, 18 Dec 2009 15:45:50 +0000 (16:45 +0100)]
windows does not support fork, skip it

14 years agomoved out DBusPipe implementation into separate files
Ralf Habacker [Fri, 18 Dec 2009 12:32:37 +0000 (13:32 +0100)]
moved out DBusPipe implementation into separate files

14 years agomoved out DBusPipe implementation from into separate files
Ralf Habacker [Fri, 18 Dec 2009 12:32:37 +0000 (13:32 +0100)]
moved out DBusPipe implementation from into separate files

14 years agoIgnore exit code zero from activated services
Colin Walters [Mon, 14 Dec 2009 23:12:24 +0000 (18:12 -0500)]
Ignore exit code zero from activated services

A variety of system components have migrated from legacy init into DBus
service activation.  Many of these system components "daemonize", which
involves forking.  The DBus activation system treated an exit as an
activation failure, assuming that the child process which grabbed the
DBus name didn't run first.

While we're in here, also differentiate in this code path between the
servicehelper (system) versus direct activation (session) paths.  In
the session activation path our error message mentioned a helper
process which was confusing, since none was involved.

Based on a patch and debugging research from Ray Strode <rstrode@redhat.com>

14 years agoadded new variable DBUS_BUILD_TIMESTAMP
Ralf Habacker [Mon, 14 Dec 2009 22:31:38 +0000 (23:31 +0100)]
added new variable DBUS_BUILD_TIMESTAMP

14 years agofixed memory leak
Ralf Habacker [Mon, 7 Dec 2009 09:16:10 +0000 (10:16 +0100)]
fixed memory leak

14 years agomost patches are obsolate
Ralf Habacker [Mon, 7 Dec 2009 00:07:08 +0000 (01:07 +0100)]
most patches are obsolate

14 years agofixed cmake version macro and string handling
Ralf Habacker [Sun, 6 Dec 2009 23:49:42 +0000 (00:49 +0100)]
fixed cmake version macro and string handling

14 years agoadded cmake option for using nonce-tcp protocol as default; set tcp as default protoc...
Ralf Habacker [Tue, 1 Dec 2009 10:59:53 +0000 (11:59 +0100)]
added cmake option for using nonce-tcp protocol as default; set tcp as default protocol to be compatible with earlier dbus releases

14 years agofixed crashes accessing not initiated noncefile member struct
Ralf Habacker [Tue, 1 Dec 2009 10:41:45 +0000 (11:41 +0100)]
fixed crashes accessing not initiated noncefile member struct

14 years agocleanup nonce socket only when really used
Ralf Habacker [Tue, 1 Dec 2009 10:18:39 +0000 (11:18 +0100)]
cleanup nonce socket only when really used

14 years agouses tcp based test connections for now
Ralf Habacker [Tue, 1 Dec 2009 10:17:17 +0000 (11:17 +0100)]
uses tcp based test connections for now

14 years agodbus-daemon needs more exports
Ralf Habacker [Tue, 1 Dec 2009 10:16:29 +0000 (11:16 +0100)]
dbus-daemon needs more exports

14 years agoreadded test files required for windows
Ralf Habacker [Tue, 1 Dec 2009 09:53:53 +0000 (10:53 +0100)]
readded test files required for windows

14 years agoremoved unsupported symbols for msvc
Ralf Habacker [Tue, 1 Dec 2009 09:51:17 +0000 (10:51 +0100)]
removed unsupported symbols for msvc

14 years agoDrop unused complex function
Tor Lillqvist [Tue, 27 Oct 2009 12:18:17 +0000 (14:18 +0200)]
Drop unused complex function

Drop _dbus_user_at_console() from dbus-sysdeps-util-win.c. It is
called only from dbus-userdb-util.c which isn't compiled on Windows.

14 years agoSet the DBusError
Tor Lillqvist [Tue, 27 Oct 2009 12:13:37 +0000 (14:13 +0200)]
Set the DBusError

Put the correct error code and a relevant message into the DBusError
in _dbus_unix_user_is_at_console().

14 years agoDon't fake network errno values on Windows
Tor Lillqvist [Thu, 22 Oct 2009 10:24:22 +0000 (13:24 +0300)]
Don't fake network errno values on Windows

Don't pretend there exists errno values for some network errors in the
Microsoft C library. Just use the WinSock error values.

14 years agoHandle also WinSock errors in _dbus_error_from_errno
Tor Lillqvist [Thu, 22 Oct 2009 10:19:23 +0000 (13:19 +0300)]
Handle also WinSock errors in _dbus_error_from_errno

Handle those WinSock errors that match the errno values handled. Don't
bother handling those errors that are mapped to DBUS_ERROR_FAILED in
the switch as that is the default return value anyway.

14 years agoWindows fixes
Frank Osterfeld [Thu, 22 Oct 2009 10:03:11 +0000 (13:03 +0300)]
Windows fixes

Replace dbus_daemon_init() by dbus_publish_session_bus_address(),
publishing the full address. Omit username from mutexes (not necessary
as mutex names are local to session). Don't exit if publishing the
address failed (allow multiple session bus instances per
session). Based on 00ee92ae314 by Tor Lillqvist.

Cherry-picked from commit 23945513e9a4da61d286ebfbce3897aa061ddbfe in
the dbus4win repository by tml@iki.fi. Remove claim of that commit not
being merged from README.dbus4win.

14 years agoAvoid warnings on Windows
Tor Lillqvist [Thu, 22 Oct 2009 00:22:54 +0000 (03:22 +0300)]
Avoid warnings on Windows

Remove unused functions, or put in #if 0 if potentially useful. Make
internal functions used just in one file static. Use -Werror after all
also on Windows. Construct the installation root from the location of
the dbus DLL, not from the location of the program .exe of the
process.

14 years agoused dbus/dbus-1.def for cmake too
Ralf Habacker [Tue, 1 Dec 2009 09:20:55 +0000 (10:20 +0100)]
used dbus/dbus-1.def for cmake too

14 years agoadded missing symbols for bus-test
Ralf Habacker [Tue, 1 Dec 2009 09:20:38 +0000 (10:20 +0100)]
added missing symbols for bus-test

14 years agoupdated version
Ralf Habacker [Tue, 1 Dec 2009 09:18:46 +0000 (10:18 +0100)]
updated version

14 years agoDrop terminating slash in _dbus_get_tmpdir
Tor Lillqvist [Thu, 22 Oct 2009 01:14:04 +0000 (04:14 +0300)]
Drop terminating slash in _dbus_get_tmpdir

The callers will append strings starting with a slash anyway.

14 years agoUse nonce-tcp default session bus on Windows
Tor Lillqvist [Thu, 22 Oct 2009 00:51:18 +0000 (03:51 +0300)]
Use nonce-tcp default session bus on Windows

14 years agoCheck for dirent.h
Tor Lillqvist [Wed, 21 Oct 2009 23:56:18 +0000 (02:56 +0300)]
Check for dirent.h

14 years agoDBUS_VERSION is always three numbers
Tor Lillqvist [Wed, 21 Oct 2009 23:25:19 +0000 (02:25 +0300)]
DBUS_VERSION is always three numbers

No *-rc* possible. So drop strange crap manipulating it for
BUILD_FILEVERSION. Drop duplicate AC_SUBST.

14 years agoActually do install the .def file on Windows
Tor Lillqvist [Wed, 21 Oct 2009 23:03:07 +0000 (02:03 +0300)]
Actually do install the .def file on Windows

14 years agoUse dbus-1.def on Windows
Tor Lillqvist [Wed, 21 Oct 2009 19:04:52 +0000 (22:04 +0300)]
Use dbus-1.def on Windows

14 years agoDrop internal symbols, add missing symbols
Tor Lillqvist [Wed, 21 Oct 2009 19:03:17 +0000 (22:03 +0300)]
Drop internal symbols, add missing symbols

14 years agoAdd a dbus/dbus-1.def file
Tor Lillqvist [Wed, 21 Oct 2009 18:56:27 +0000 (21:56 +0300)]
Add a dbus/dbus-1.def file

From cmake/dbus/dbus-1.def.cmake

14 years agoDon't use DBUS_DIR_SEPARATOR
Tor Lillqvist [Wed, 21 Oct 2009 18:52:59 +0000 (21:52 +0300)]
Don't use DBUS_DIR_SEPARATOR

I didn't cherry-pick the commit from dbus4win that introduced
DBUS_DIR_SEPARATOR, as I think it just uglifies the code with little
gain. (Forward) slashes work fine on Windows.

14 years agoDon't use -fPIC and -fPIE on Windows
Tor Lillqvist [Wed, 21 Oct 2009 18:49:50 +0000 (21:49 +0300)]
Don't use -fPIC and -fPIE on Windows

The MinGW compiler recognizes them but emits a warning "-fPIC ignored
for target (all code is position independent)"

14 years agoAdd file describing the merge of the dbus4win code
Tor Lillqvist [Wed, 21 Oct 2009 18:14:22 +0000 (21:14 +0300)]
Add file describing the merge of the dbus4win code

14 years agoTell where the file comes from and that it might not be reliable
Tor Lillqvist [Wed, 21 Oct 2009 18:11:10 +0000 (21:11 +0300)]
Tell where the file comes from and that it might not be reliable

14 years agoRename README.win to README.windbus to match its origin
Tor Lillqvist [Wed, 21 Oct 2009 18:07:31 +0000 (21:07 +0300)]
Rename README.win to README.windbus to match its origin

Also add it to EXTRA_DIST.

14 years agoLook for config files also in the normal Unix-style location (cherry picked from...
Tor Lillqvist [Wed, 21 Oct 2009 12:49:03 +0000 (15:49 +0300)]
Look for config files also in the normal Unix-style location (cherry picked from commit 445d1f780fb916f9087c0d95e7594ee5a425d43f)

14 years agoUse multi-byte string functions on Windows
Tor Lillqvist [Wed, 21 Oct 2009 12:31:34 +0000 (15:31 +0300)]
Use multi-byte string functions on Windows

Don't walk through char arrays that contain strings in the system
codepage char by char looking for '\\'. There are double-byte
characters in East Asian codepages where the second byte is a '\\'.
(cherry picked from commit 61316262da466993abbcba010c6bac90bb0b1d43)

14 years agoDon't bother with -Werror on Windows for now
Tor Lillqvist [Wed, 21 Oct 2009 17:48:35 +0000 (20:48 +0300)]
Don't bother with -Werror on Windows for now

We have so many warnings

14 years agowith msvc, replace va_copy by assigning the va_lists (cherry picked from commit 42d61...
Frank Osterfeld [Fri, 24 Jul 2009 09:39:54 +0000 (10:39 +0100)]
with msvc, replace va_copy by assigning the va_lists (cherry picked from commit 42d613fc9284afaa9543549be26f32e503a58348)

14 years agoFixes to the nonce code
Frank Osterfeld [Wed, 21 Oct 2009 17:45:24 +0000 (20:45 +0300)]
Fixes to the nonce code

Cherry-picked from commit f9bc0f4bd036f6ede5d9850fb0f8587178c85f44 in
the dbus4win repository, slightly massaged to apply by tml@iki.fi.

14 years agoFix IPv6 setup (the default on Vista)
Frank Osterfeld [Wed, 21 Oct 2009 17:39:51 +0000 (20:39 +0300)]
Fix IPv6 setup (the default on Vista)

Ensure that the right struct is passed.

Cherry-picked from commit 172d60d100d04e301e51ff475ada02007f1709dc in
the dbus4win repository by tml@iki.fi.

14 years agoAdd api dox for nonce-tcp
Frank Osterfeld [Wed, 21 Oct 2009 17:25:36 +0000 (20:25 +0300)]
Add api dox for nonce-tcp

Cherry-picked from commit e7a070db22ed4a84dc04a062255356c9f6c4c9c5 in
the dbus4win repository, trailing whitespace issues corrected by
tml@iki.fi.

14 years agoFixes to the nonce code
Frank Osterfeld [Wed, 21 Oct 2009 17:21:37 +0000 (20:21 +0300)]
Fixes to the nonce code

On Unix, we create a 700 subdir in /tmp only readable by the user, on
Windows we use the user-specific tmpdir and create the noncefile
directly.

Add NonceFile to abstract this behaviour and to delete the noncefile
and possibly tmpdir on shutdown.

Cherry-picked from commit 885f16b90c4f769ae29f432d0ed2a63bb2e4dab8 in
the dbus4win repository. Fixed to apply and correct whitespace issues
by tml@iki.fi.

14 years agoAdd nonce-tcp section to the specification (draft) (cherry picked from commit 7015b2d...
Frank Osterfeld [Tue, 9 Jun 2009 09:56:38 +0000 (11:56 +0200)]
Add nonce-tcp section to the specification (draft) (cherry picked from commit 7015b2db6c8744c88da9cb0fab8d5e0fcfc0220b)

14 years agoImprove error handling in nonce code
Frank Osterfeld [Wed, 21 Oct 2009 17:08:12 +0000 (20:08 +0300)]
Improve error handling in nonce code

Replace errno (from assuan code) by DBusError. Errors are not passed
through dbus_accept_with_nonce atm, as the original _dbus_accept() has
no error arg either.

Cherry-picked from commit 8082e92bb3a6304362e730f8b6e324860e1bb26c in
the dbus4win repository, edited to apply and fix whitespace issues by
tml@iki.fi.

14 years agoCleanup of nonce code
Frank Osterfeld [Wed, 21 Oct 2009 17:04:01 +0000 (20:04 +0300)]
Cleanup of nonce code

Remove the write_file function and use the existing
_dbus_string_save_to_file, improve error handling

Cherry picked from commit 0f7b026d01be7e0fd444cdb56e5f9b7a5137a062 in
the dbus4win repository. Edited to apply and fix whitespace issues by
tml@iki.fi.

14 years agoThe current state of the nonce-tcp implementation
Frank Osterfeld [Wed, 21 Oct 2009 16:52:49 +0000 (19:52 +0300)]
The current state of the nonce-tcp implementation

Merged and cleaned up patch from my [Frank Osterfeld's] local work
branch.

Cherry-picked from commit e2801eca57b2d9e09afd662ed5ef6fc83be73afc and
edited by tml@iki.fi to make it apply, and fixing whitespace issues.

14 years agobus/Makefile.am: make dbus-daemon and friends bin_PROGRAMS on Windows
Nguyễn Thái Ngọc Duy [Thu, 11 Jun 2009 11:06:19 +0000 (21:06 +1000)]
bus/Makefile.am: make dbus-daemon and friends bin_PROGRAMS on Windows

On Linux, dbus-daemon and dbus-daemon-launch-helper are treated specially
because they need permission adjustment.

On Windows, all executables are stubs, created by libtool. The real
executables are in .libs. We need to use libtool to install them
properly. So let's make them bin_PROGRAMS on Windows.
(cherry picked from commit 7fb35992d67433ac3ba82e9e2e786e123323456d)

14 years ago-util.c doesn't belong into the lib (cherry picked from commit 6191f6dda62e43765d5f48...
Frank Osterfeld [Thu, 11 Jun 2009 08:53:24 +0000 (10:53 +0200)]
-util.c doesn't belong into the lib (cherry picked from commit 6191f6dda62e43765d5f48d677f7a2349e616a63)

14 years agoMove some functions from dbus-sysdeps-util-win.c to dbus-sysdeps-win.c
Nguyễn Thái Ngọc Duy [Tue, 9 Jun 2009 11:48:53 +0000 (21:48 +1000)]
Move some functions from dbus-sysdeps-util-win.c to dbus-sysdeps-win.c

These are used by dbus-sysdeps-win.c and it is not linked together
with dbus-sysdeps-util-win.c
(cherry picked from commit 24b612adbf8045b8b00af15f8d44eb38f964641f)

14 years agouse WINDRES instead of RC to compile rc file
Nguyễn Thái Ngọc Duy [Tue, 9 Jun 2009 11:46:11 +0000 (21:46 +1000)]
use WINDRES instead of RC to compile rc file

This is the way used by GTK+ and other packages. I don't know much about "RC" though.
(cherry picked from commit d5b993ebc1411b15e4563d05fbd92cf8b29cbb4c)

14 years agoremove dbus-uuidgen from Windows build (cherry picked from commit 73873e002ac9ba61593...
Nguyễn Thái Ngọc Duy [Tue, 9 Jun 2009 11:52:05 +0000 (21:52 +1000)]
remove dbus-uuidgen from Windows build (cherry picked from commit 73873e002ac9ba6159388b2c7b4190c30961ec68)

14 years agoconfigure.in: do not define DBUS_UNIX unconditionally (cherry picked from commit...
Nguyễn Thái Ngọc Duy [Tue, 9 Jun 2009 11:45:10 +0000 (21:45 +1000)]
configure.in: do not define DBUS_UNIX unconditionally (cherry picked from commit 5c072b8c4d912dfe34b72c2b7bbcb4ea359c98d7)

14 years agobus/Makefile.am: conditional compilation for W32, use EXEEXT in install hooks (cherry...
Marc Mutz [Tue, 21 Apr 2009 14:24:51 +0000 (16:24 +0200)]
bus/Makefile.am: conditional compilation for W32, use EXEEXT in install hooks (cherry picked from commit 551a9c446b782167aa8b0a74a41a1b7ffb42c6eb)