1. 20 Dec, 2009 1 commit
  2. 18 Dec, 2009 2 commits
  3. 01 Dec, 2009 6 commits
  4. 03 Oct, 2007 1 commit
    • John Palmieri's avatar
      Correctly implement -fPIC and -fPIE · 8a92100b
      John Palmieri authored
      * 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
      * propper LD_FLAGS are set for each also
      8a92100b
  5. 15 Jun, 2007 1 commit
    • Havoc Pennington's avatar
      2007-06-15 Havoc Pennington <hp@redhat.com> · b62633b9
      Havoc Pennington authored
      	* 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
      b62633b9
  6. 09 Jun, 2007 1 commit
    • Havoc Pennington's avatar
      2007-06-09 Havoc Pennington <hp@redhat.com> · 23832672
      Havoc Pennington authored
      	* 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
      23832672
  7. 15 Nov, 2006 1 commit
    • Havoc Pennington's avatar
      2006-11-14 Havoc Pennington <hp@redhat.com> · d3204dc4
      Havoc Pennington authored
      	* dbus/dbus-misc.c, dbus/dbus-misc.h: Move
      	dbus_get_local_machine_id() to its own file, no substantive
      	changes. There are a couple other things we might want to add that
      	are "misc" so moving out of dbus-connection.[hc] which is big
      	enough already.
      d3204dc4
  8. 27 Oct, 2006 1 commit
    • Havoc Pennington's avatar
      2006-10-26 Havoc Pennington <hp@redhat.com> · 5886f532
      Havoc Pennington authored
              * dbus/dbus-threads.[hc]: Documentation improvements. Clarify how
      	condition variables relate to recursive mutexes.
      
              * dbus/dbus-sysdeps-pthread.c, dbus/dbus-sysdeps-win-thread.c,
      	dbus/dbus-threads.c: Split the platforms-specific thread
      	implementations into their own files.
      
      	* dbus/dbus-sysdeps-pthread.c
      	(_dbus_pthread_condvar_wait_timeout): invert the return value, it
      	was backward. Not that anything uses it.
      5886f532
  9. 26 Oct, 2006 1 commit
  10. 25 Oct, 2006 1 commit
  11. 01 Oct, 2006 2 commits
    • Havoc Pennington's avatar
      2006-10-01 Havoc Pennington <hp@redhat.com> · a2129f7c
      Havoc Pennington authored
      	* dbus/dbus-connection.c (_dbus_connection_close_if_only_one_ref):
      	Add a hack to make DBusNewConnectionFunction work right.
      
      	* dbus/dbus-server-socket.c (handle_new_client_fd_and_unlock): use
      	the hack here. Also, fix the todo about refcount leak.
      
      	* dbus/dbus-server-debug-pipe.c (_dbus_transport_debug_pipe_new):
      	and use the hack here
      
              * dbus/dbus-connection.c: Kill the "shared" flag vs. the
      	"shareable" flag; this was completely broken, since it meant
      	dbus_connection_open() returned a connection of unknown
      	shared-ness. Now, we always hold a ref on anything opened
      	as shareable.
      
      	Move the call to notify dbus-bus.c into
      	connection_forget_shared_unlocked, so libdbus consistently forgets
      	all its knowledge of a connection at once. This exposed numerous
      	places where things were totally broken if we dropped a ref inside
      	get_dispatch_status_unlocked where
      	connection_forget_shared_unlocked was previously, so move
      	connection_forget_shared_unlocked into
      	_dbus_connection_update_dispatch_status_and_unlock. Also move the
      	exit_on_disconnect here.
      
      	(shared_connections_shutdown): this assumed weak refs to the
      	shared connections; since we have strong refs now, the assertion
      	was failing and stuff was left in the hash. Fix it to close
      	still-open shared connections.
      
      	* bus/dispatch.c: fixup to use dbus_connection_open_private on the
      	debug pipe connections
      
      	* dbus/dbus-connection.c (dbus_connection_dispatch): only notify
      	dbus-bus.c if the closed connection is in fact shared
      	(_dbus_connection_close_possibly_shared): rename from
      	_dbus_connection_close_internal
      	(dbus_connection_close, dbus_connection_open,
      	dbus_connection_open_private): Improve docs to explain the deal
      	with when you should close or unref or both
      
      	* dbus/dbus-bus.c
      	(_dbus_bus_notify_shared_connection_disconnected_unlocked): rename
      	from _dbus_bus_check_connection_and_unref_unlocked and modify to
      	loop over all connections
      
      	* test/test-utils.c (test_connection_shutdown): don't try to close
      	shared connections.
      
      	* test/name-test/test-threads-init.c (main): fix warnings in here
      
      	* dbus/dbus-sysdeps.c (_dbus_abort): support DBUS_BLOCK_ON_ABORT
      	env variable to cause blocking waiting for gdb; drop
      	DBUS_PRINT_BACKTRACE and just call _dbus_print_backtrace()
      	unconditionally.
      
      	* configure.in: add -export-dynamic to libtool flags if assertions enabled
      	so _dbus_print_backtrace works.
      
      	* dbus/dbus-sysdeps-unix.c (_dbus_print_backtrace): use fprintf
      	instead of _dbus_verbose to print the backtrace, and diagnose lack
      	of -rdynamic/-export-dynamic
      a2129f7c
    • Havoc Pennington's avatar
      2006-09-30 Havoc Pennington <hp@redhat.com> · d8155bf5
      Havoc Pennington authored
      	* configure.in (LT_CURRENT, LT_AGE): increment current and age to
      	reflect addition of interfaces.
      
      	* doc/dbus-specification.xml: describe a new
      	org.freedesktop.DBus.Peer.GetMachineId method
      
      	* dbus/dbus-string.c (_dbus_string_skip_white_reverse): new function
      	(_dbus_string_skip_white, _dbus_string_skip_blank): use new
      	DBUS_IS_ASCII_BLANK, DBUS_IS_ASCII_WHITE macros and fix assertion
      	at end of skip_white
      	(_dbus_string_chop_white): new function
      
      	* bus/connection.c (bus_connections_setup_connection): call
      	dbus_connection_set_route_peer_messages.
      
      	* dbus/dbus-connection.c
      	(_dbus_connection_peer_filter_unlocked_no_update): modify to
      	support a GetMachineId method.
      
      	Also, support a new flag to let the bus pass peer methods through
      	to apps on the bus, which can be set with
      	dbus_connection_set_route_peer_messages.
      
      	Finally, handle and return an error for anything unknown on the
      	Peer interface, which will allow us to extend the Peer interface
      	in the future without fear that we're now intercepting something
      	apps were wanting to see.
      
      	* tools/dbus-uuidgen.c: a thin wrapper around the functions in
      	dbus/dbus-uuidgen.c
      
      	* dbus/dbus-uuidgen.c: implement the bulk of the dbus-uuidgen
      	binary here, since most of the code is already in libdbus
      
      	* dbus/dbus-sysdeps.c (_dbus_read_local_machine_uuid): read the
      	uuid from the system config file
      
      	* dbus/dbus-internals.c (_dbus_generate_uuid, _dbus_uuid_encode)
      	(_dbus_read_uuid_file_without_creating)
      	(_dbus_create_uuid_file_exclusively, _dbus_read_uuid_file): new
      	uuid-related functions, partly factored out from dbus-server.c
      
      	* dbus/dbus-sysdeps.c (_dbus_error_from_errno): convert EEXIST to
      	DBUS_ERROR_FILE_EXISTS instead of EEXIST
      
      	* dbus/dbus-protocol.h (DBUS_ERROR_FILE_EXISTS): add file exists error
      
      	* tools/dbus-cleanup-sockets.1: explain what the point of this
      	thing is a bit more
      
      	* autogen.sh (run_configure): add --config-cache to default
      	configure args
      
      	* dbus/dbus-internals.h (_DBUS_ASSERT_ERROR_IS_SET): disable the
      	error set/clear assertions when DBUS_DISABLE_CHECKS is defined
      
      	* tools/dbus-launch.c (main): if xdisplay hasn't been opened,
      	don't try to save address, fixes crash in make check
      d8155bf5
  12. 16 Sep, 2006 2 commits
    • Havoc Pennington's avatar
      voc Pennington <hp@redhat.com> · 8027efc9
      Havoc Pennington authored
      	* dbus/dbus-server.c (dbus_server_listen): change how this works
      	to be able to delegate to a set of handlers that can succeed,
      	fail, or choose not to handle. Allows us to have
      	dbus_server_listen_platform_specific.
      
      	* dbus/dbus-server-socket.c (_dbus_server_new_for_tcp_socket):
      	factor out the tcp socket stuff to be used on windows, leaving
      	unix domain socket only in dbus-socket-unix.c
      
      	* dbus/dbus-transport-socket.c
      	(_dbus_transport_new_for_tcp_socket): factor out the tcp socket
      	stuff to be used on windows, leaving unix domain socket only
      	in dbus-transport-unix.c
      
      	* dbus/dbus-connection.c (dbus_connection_get_unix_user): insert
      	temporary hack to be sure this fails on windows
      	(dbus_connection_get_unix_process_id): ditto
      8027efc9
    • Havoc Pennington's avatar
      2006-09-16 Havoc Pennington <hp@redhat.com> · 08079a5b
      Havoc Pennington authored
      	* dbus/dbus-sysdeps-unix.h: small change to Peter's patch to make
      	dbus-sysdeps-unix-util.c build, add unix-specific sysdeps header.
      
      	* dbus/dbus-sysdeps.h, dbus-sysdeps-unix.c: patch from Peter
      	Kümmel bug #8249 to make the sysdeps.h read/write/open/close
      	functions specifically for sockets only, and move generic
      	read/write/open/close into unix-specific code.
      08079a5b
  13. 10 Sep, 2006 1 commit
    • Havoc Pennington's avatar
      2006-09-10 Havoc Pennington <hp@redhat.com> · 8e659dac
      Havoc Pennington authored
             patch mostly by Peter Kümmel, bug #8211
      
      	* dbus/dbus-sysdeps-unix.c: new file, which splits out
      	unix-specific stuff in dbus-sysdeps.c
      
      	* dbus/dbus-sysdeps.c: don't include any UNIX-only headers,
      	and move unix-specific stuff to dbus-sysdeps-unix.c
      
      	* configure.in: check HAVE_ERRNO_H
      8e659dac
  14. 30 Aug, 2006 1 commit
  15. 25 Aug, 2006 1 commit
  16. 03 Aug, 2006 1 commit
  17. 14 Jul, 2006 1 commit
  18. 12 Jul, 2006 1 commit
  19. 04 Jun, 2006 1 commit
  20. 25 Feb, 2006 1 commit
  21. 23 Sep, 2005 1 commit
  22. 06 Sep, 2005 1 commit
    • John Palmieri's avatar
      * Released 0.50 · bc564a69
      John Palmieri authored
      * Patch from Steve Grubb:
      - bus/activation.c (bus_activation_service_reload_test): clean up
      some indentation
      - dbus/dbus-keyring.c (_dbus_keyring_reload): fix conditional
      - dbus/dbus-message-factory.c (generate_special): fix a couple of
      buffer overflows in the test suite.  This is non critical because
      it can not be exploited and this code is only run when doing a
      make check.
      
      * Patch from Yaakov Selkowitz: Build fixes for Cygwin
      - configure.in: Don't check and link against kdecore, only qt headers
      - dbus/Makefile.am: Add -no-undefined to libdbus_1_la_LDFLAGS
      - gcj/org/freedesktop/dbus/Makefile.am:
      add libdbus_gcj_1_la_LDFLAGS = -no-undefined
      - glib/Makefile.am: Add -no-undefined to libdbus_glib_1_la_LDFLAGS
      and $(DBUS_GLIB_LIBS) to dbus_binding_tool_LDADD
      - qt/Makefile.am: Add -no-undefined to libdbus_qt_1_la_LDFLAGS
      - tools/Makefile.am: Add platform extentions to binaries
      (i.e. .exe on windows)
      
      * configure.in:
      - Make it so if no suitable version of python is found we only
      disable building python instead of exiting the configure script
      - Require version 2.4 of glib for glib bindings
      - Up version to 0.50
      
      * python/__init__.py: Sync version with libdbus to (0,50,0)
      bc564a69
  23. 14 Jul, 2005 1 commit
    • John Palmieri's avatar
      Checking in Rodrigo's patch along with my fixes to the patch · 075945f6
      John Palmieri authored
      2005-07-14  John (J5) Palmieri  <johnp@redhat.com>
      
      	* bus/activation.c: clean up all tabs to be 8 spaces
      	(bus_activation_activate_service): make sure we clean up
      	if activation fails
      
      	* bus/dispatch.c: clean up all tabs to be 8 spaces
      	(check_shell_fail_service_auto_start): New function
      	tests to make sure we get fail properly when trying to auto start a service
      	with a faulty command line
      	(check_shell_service_success_auto_start): New function tests to make sure
      	auto started services get the arguments on the command line
      
      	* test/test-shell-service.c: Added service for testing auto-starting with
      	command line arguments
      
      	* test/data/valid-service-files/debug-shell-echo-fail.service.in,
      	test/data/valid-service-files/debug-shell-echo-success.service.in:
      	Added service files for testing auto-starting with command line arguments
      
      	* */.cvsignore: added a bunch of generated files to various .cvsignore files
      
      2005-07-14  Rodrigo Moya  <rodrigo@novell.com>
      
      	* dbus/dbus-shell.[ch]: copy/pasted code from GLib.
      
      	* dbus/Makefile.am: added new files to build.
      
      	* bus/activation.c (bus_activation_activate_service): support
      	activation commands with parameters.
      
      	* test/shell-test.c: added test program for the shell parsing
      	code.
      075945f6
  24. 16 Jun, 2005 1 commit
  25. 07 Mar, 2005 1 commit
    • John Palmieri's avatar
      * NEWS: Update for 0.31 · 076664a5
      John Palmieri authored
      * configure.in: Release 0.31
        add LT_CURRENT, LT_REVISION, LT_AGE for easy soname bumping
      
      * qt/Makefile.am: fixed build
      
      * dbus/Makefile.am: soname bump for libdbus
      
      * glib/Makefile.am: soname bump for libdbus-glib
      076664a5
  26. 24 Feb, 2005 2 commits
    • Havoc Pennington's avatar
      2005-02-24 Havoc Pennington <hp@redhat.com> · cc73b3da
      Havoc Pennington authored
      	* dbus/dbus-server.c, dbus/dbus-server-unix.c: change semantics so
      	you must disconnect before unref, since locking and other things
      	are screwed up otherwise. Fix assorted other locking stuff.
      
      	* dbus/dbus-signature.c (dbus_signature_iter_get_element_type):
      	fix compilation
      
      	* dbus/dbus-threads-internal.h: move the mutex/condvar wrappers
      	into a private header and don't export from the library
      
      	* throughout - call _dbus_thread_stuff vs. dbus_thread_stuff
      cc73b3da
    • Colin Walters's avatar
      2005-02-24 Colin Walters <walters@verbum.org> · 54a2e9f7
      Colin Walters authored
      	* dbus/dbus-signature.c: New file; implements various functions
      	related to type signatures.  Includes an interator for parsing,
      	validation functions.
      	(dbus_type_is_basic): Moved here from
      	dbus-marshal-basic.c:_dbus_type_is_basic.
      	(dbus_type_is_container): Moved here from
      	dbus-marshal-basic.c:_dbus_type_is_container.
      
      	All callers of _dbus_type_is_container and _dbus_type_is_basic
      	updated, and include dbus-signature.h.
      
      	* dbus/dbus-signature.h: New file; prototypes for the above.
      
      	* dbus/Makefile.am (DBUS_LIB_SOURCES): Add dbus-signature.c,
      	dbus-signature.h.
      
      	* dbus/dbus-marshal-basic.c (map_type_char_to_type): New utility
      	function factored out of _dbus_first_type_in_signature.
      	(_dbus_first_type_in_signature_c_str): New function; returns first
      	type code for a type signature character.
      
      	* dbus/dbus-marshal-basic.h: Prototype _dbus_first_type_in_signature_c_str,
      	handle function moves.
      
      	* dbus/dbus-marshal-recursive.h: Export _dbus_type_signature_next.
      
      	* dbus/dbus-marshal-recursive.c (_dbus_type_signature_next): New
      	function; skips to next complete type in type signature.
      	Implemented using previous skip_one_complete_type.  Now
      	skip_one_complete_type just delegates to
      	_dbus_type_signature_next.
      
      	* dbus/dbus-marshal-basic.c (_dbus_type_is_basic): Moved
      	to dbus-signature.c
      	(_dbus_type_is_container): Ditto.
      
      	* doc/dbus-specification.xml: Update introspection sample to
      	use real type signatures.
      
      	* dbus/dbus-test.h: Prototype signature test.
      
      	* dbus/dbus-test.c (dbus_internal_do_not_use_run_tests): Run
      	signature tests.
      
      	* dbus/dbus-protocol.h (DBUS_ERROR_INVALID_SIGNATURE): New error.
      54a2e9f7
  27. 27 Jan, 2005 2 commits
  28. 23 Jan, 2005 1 commit
  29. 17 Jan, 2005 2 commits
    • Havoc Pennington's avatar
      2005-01-16 Havoc Pennington <hp@redhat.com> · 7bf62e31
      Havoc Pennington authored
              This is about it on what can be disabled/deleted from libdbus
      	easily, back below 150K anyhow. Deeper cuts are more work than
      	just turning the code off as I've done here.
      
      	* dbus/dbus-marshal-basic.c (_dbus_pack_int32): we don't need the
      	signed int convenience funcs
      
      	* dbus/dbus-internals.c (_dbus_verbose_real): omit when not in
      	verbose mode
      
      	* dbus/dbus-string-util.c, dbus/dbus-string.c: more breaking
      	things out of libdbus
      
      	* dbus/dbus-sysdeps.c, dbus/dbus-sysdeps-util.c: same
      
      	* dbus/dbus-hash.c: purge the TWO_STRINGS crap (well, make it
      	tests-enabled-only, though it should probably be deleted)
      
      	* dbus/dbus-message-util.c: same stuff
      
      	* dbus/dbus-auth-util.c: same stuff
      7bf62e31
    • Havoc Pennington's avatar
      2005-01-16 Havoc Pennington <hp@redhat.com> · 4c1a2a76
      Havoc Pennington authored
      	* dbus/dbus-userdb-util.c: split out part of dbus-userdb.c
      
      	* dbus/dbus-sysdeps.c (_dbus_uid_from_string): move here to pave
      	way for stripping down dbus-userdb.c stuff included in libdbus.
      	Rename _dbus_parse_uid for consistency.
      4c1a2a76