Commit graph

2383 commits

Author SHA1 Message Date
Ralf Habacker
d521734851 Cleaned up _dbus_verbose calls: function names and code line numbers are printed by default. 2010-03-27 23:28:00 +01:00
Ralf Habacker
2575b946ff Added cmake build system notes to README and INSTALL. 2010-03-24 13:44:26 +01:00
Ralf Habacker
ca7b8112c9 Renamed libdbus-convenience to libdbus-internal for automake (to stay in sync with cmake). 2010-03-23 09:21:48 +01:00
Marcus Brinkmann
1de6b09fbd Update dll export for autoconf (to stay in sync with cmake). 2010-03-23 09:10:39 +01:00
Ralf Habacker
1d0076b500 Keep cmake build system in sync with commit d47154c28b. 2010-03-22 22:33:02 +01:00
Colin Walters
df89cfeb38 Merge branch 'dbus-1.2'
Conflicts:
	bus/dispatch.c
	configure.in
	test/name-test/test-names.c
2010-03-22 14:39:56 -04:00
Colin Walters
3861cb42f4 [64 bit printf] Update to use DBUS_PID_FORMAT, print (omitted)
There were already defines for formatting pids and uids, so use those.

In the case where we don't have a format specifier for 64 bit, print
(omitted) in dbus-monitor.
2010-03-22 14:35:28 -04:00
Colin Walters
c93d3ec2ff Add DBUS_INT64_MODIFIER define, turn on -Wformat
https://bugs.freedesktop.org/show_bug.cgi?id=19195

We were previously using -Wno-format because we didn't have
a #define for DBUS_INT64_MODIFIER, which was really lame because
it easily hid problems.

For now, just define it if we're on glibc; this is obviously
not strictly correct but it's safe, because the formatting
is only used in DBUS_VERBOSE mode, and in tools/dbus-monitor.
Ideally we get the the glib code relicensed.
2010-03-22 13:58:56 -04:00
Colin Walters
03bb3ce656 Add DBUS_GNUC_PRINTF checks to new formatting functions
Otherwise we don't get GCC warnings.
2010-03-22 13:58:43 -04:00
Ralf Habacker
a96fc838b9 Removed unused cmake packages. 2010-03-22 17:28:57 +01:00
Ralf Habacker
a8dad42954 Added signal.h and locale.h detection for cmake build system. 2010-03-22 17:28:56 +01:00
Marcus Brinkmann
01d9d169f3 Make more signal and locale interface use conditional. 2010-03-22 17:28:55 +01:00
Ralf Habacker
e183399391 Additional fixes for 2154acb349 2010-03-22 10:58:53 +01:00
unknown
2154acb349 Make the windows binaries and build match the linux one with cmake buildsystem.
This is performed by including the files from the client lib in the internal one
and by removing the linking to dbus-1 for targets using the internal library.
2010-03-22 10:41:06 +01:00
Ralf Habacker
1fb6d3faf6 Removed def file support for cmake build system. 2010-03-22 10:41:06 +01:00
Colin Walters
c4371e4bc8 [bus] While creating a syslog, correctly get pointer data from DBusString 2010-03-21 07:01:55 -04:00
Ralf Habacker
d999abdaa8 CMake dbus libraries usage cleanup.
Renamed DBUS_LIBRARIES to DBUS_INTERNAL_LIBRARIES and moved to top level CMakeLists.txt.
Removed obsolate references of dbus-internal library.
Added DBUS_LIBRARIES definition which contains only the dbus library.
2010-03-20 22:33:58 +01:00
Ralf Habacker
235e8dfe2e Fixed gcc on windows limitation
A pointer to a function or variable marked as dllimport
cannot be used as a constant address.
2010-03-20 21:53:57 +01:00
Ralf Habacker
f76399115e win32 fix: Only diplay memory allocation testing error note once. 2010-03-19 21:42:54 +01:00
Ralf Habacker
96958b238f fixed def file usage for cmake mingw builds 2010-03-19 21:33:57 +01:00
Marcus Brinkmann
b9330ba780 Do not use DBUS_WIN in a public header file, use _WIN32. 2010-03-19 20:12:00 +01:00
Marcus Brinkmann
a127633f13 Define dbus_1_EXPORTS when appropriate. 2010-03-19 20:11:55 +01:00
Marcus Brinkmann
dbecdeabb2 Consistently include <config.h> in all C source files and never in header files. 2010-03-19 20:11:48 +01:00
Will Thompson
6663cb5dcf Dispatch post-activation messages to anyone interested
Previously, if a method call activated a service, it would only be
delivered to that service, and not to other services with match rules
which should match. This patch replaces the improperly-duplicated
dispatch code in activation.c with a call back into the normal dispatch
code, fixing this bug (fd.o#26427).

(Additionally, were one to service-activate a service that doesn't
understand file descriptors with a message containing a file descriptor,
the previous code would send it anyway, and the service's dbus library
would blow up. This is also fixed here, since the normal dispatch code
checks this correctly.)
2010-03-19 17:48:00 +00:00
Will Thompson
3a2753e667 Move dispatching to destination to bus_dispatch_matches() 2010-03-19 17:48:00 +00:00
Will Thompson
af95ba7c8e Dispatch post-activation messages to anyone interested
Previously, if a method call activated a service, it would only be
delivered to that service, and not to other services with match rules
which should match. This patch replaces the improperly-duplicated
dispatch code in activation.c with a call back into the normal dispatch
code, fixing this bug (fd.o#26427).
2010-03-19 17:47:40 +00:00
Will Thompson
aa275ff175 Move dispatching to destination to bus_dispatch_matches() 2010-03-19 17:47:40 +00:00
Colin Walters
bda156f52e Post-release version bump 2010-03-17 12:43:40 -04:00
Colin Walters
b6001f8c30 Release 1.2.22 2010-03-16 22:30:50 -04:00
Colin Walters
d47154c28b Delete name-test/test-names
This test, while extensive, has the serious flaw of effectively
spinning on _dbus_connection_do_iteration_unlocked.  Any tests
like this should be using the internal DBus mainloop, which
I don't have time to port it to before doing a release.
2010-03-16 22:25:40 -04:00
Romain Pokrzywka
ff4aad0e88 export _dbus_credentials_to_string_append for the tests 2010-03-16 22:16:11 -04:00
Romain Pokrzywka
aed92380e5 Update the windows implementation of logging functions
Following commit: 04cf316600 for Unix.
2010-03-16 22:15:35 -04:00
Marcus Brinkmann
09ba65069d Fix the make dist target. 2010-03-16 23:09:48 +01:00
Marcus Brinkmann
378ef9ea37 Prepend HOMEDRIVE to HOMEPATH so cross-volume accesses work. 2010-03-16 23:09:48 +01:00
Marcus Brinkmann
378e090e71 Check return value of MoveFileEx correctly. 2010-03-16 23:09:48 +01:00
Marcus Brinkmann
a41d292607 Close process handle leak. 2010-03-16 23:09:48 +01:00
Marcus Brinkmann
7838cf15fa Use INVALID_HANDLE_VALUE, not NULL. 2010-03-16 23:09:48 +01:00
Marcus Brinkmann
5e06adfaa3 Fix possible alignment issue. 2010-03-16 23:09:48 +01:00
Colin Walters
18bcf800b6 Merge branch 'dbus-1.2' 2010-03-16 16:44:48 -04:00
Colin Walters
edecaa4abc Don't send an reply for driver messages if one isn't requested
Basically honor the no_reply flag; a binding is likely to want to
set this so it doesn't have to process extra traffic for match
rules.
2010-03-16 16:44:30 -04:00
Colin Walters
ebfa7c02fd Merge branch 'dbus-1.2'
Conflicts:
	bus/bus.c
	configure.in
2010-03-16 16:11:14 -04:00
Colin Walters
ce34415302 Make SELinux initialization failure fatal
https://bugzilla.redhat.com/show_bug.cgi?id=572769

Previously we'd just continue if AVC initialization failed, but
that didn't really work because then we'd later crash in
avc_has_perm.

Simply treat initialization failures as fatal, and hopefully we
can get data from the system log.
2010-03-16 15:57:27 -04:00
Colin Walters
f00c816c27 Add a prefix to our syslog messages
Previously we were simply logging as "dbus", and it was unclear
whether it was the system bus, or a session bus.  And if the latter,
which user?

This patch adds a prefix to the log message with the bus type
and the userid.
2010-03-16 15:57:27 -04:00
Colin Walters
e48b092849 Add _dbus_credentials_to_string_append
Convert the credentials to a string; useful for logging.
2010-03-16 15:57:27 -04:00
Colin Walters
00e031a543 Add DBUS_SYSTEM_LOG_FATAL severity
This severity is useful for when we encounter a fatal problem; we
get a log message out, then exit.
2010-03-16 15:57:24 -04:00
Colin Walters
04cf316600 Refactor _dbus_log_info, _dbus_log_security into _dbus_log_system
In preparation for a future patch which introduces a fatal logging level,
don't duplicate the API here.
2010-03-16 15:57:05 -04:00
Kimmo Hämäläinen
e28c0ece17 [dbus-spawn] Use correct sign values for variables
read() returns a signed value, whereas the byte count is unsigned.

Signed-off-by: Colin Walters <walters@verbum.org>
2010-03-16 13:55:13 -04:00
Kimmo Hämäläinen
922c6f3285 [dbus] Add missing va_end in dbus-errors.c 2010-03-16 13:50:30 -04:00
Colin Walters
322c116a53 [main] Handle OOM in reload watch
http://bugs.freedesktop.org/show_bug.cgi?id=12953

Wait for memory if we can't init the string.

Based on an original patch by Kimmo Hämäläinen <kimmo.hamalainen@nokia.com>
2010-03-16 13:11:44 -04:00
Simon McVittie
efc63e58da [doc/dbus-specification.xml] Explicitly specify lower-case hex must be used
https://bugs.freedesktop.org/show_bug.cgi?id=9486

When describing DBUS_COOKIE_SHA1, specify that lower-case hex encoding
must be used.
2010-03-16 12:40:08 -04:00