1. 04 Jan, 2012 1 commit
    • Simon McVittie's avatar
      Revert all changes since a36d4918 · 5df8c3db
      Simon McVittie authored
      Someone seems to have merged part of master into 1.4. Again. Let's go
      back to the "last known good" point (the branch-point of some 1.4
      branches I had locally), then we can cherry-pick the changes that
      should have gone in.
  2. 08 Jul, 2011 1 commit
  3. 03 Jul, 2011 1 commit
  4. 22 Jun, 2011 2 commits
  5. 14 Mar, 2011 1 commit
  6. 18 Feb, 2011 1 commit
  7. 19 Mar, 2010 1 commit
  8. 28 Feb, 2010 2 commits
  9. 19 Feb, 2010 1 commit
  10. 18 Feb, 2010 1 commit
  11. 12 Feb, 2010 1 commit
  12. 23 Dec, 2009 1 commit
  13. 14 Jul, 2009 1 commit
  14. 10 Jul, 2009 1 commit
  15. 06 May, 2009 2 commits
  16. 21 Apr, 2009 2 commits
  17. 12 Jul, 2008 1 commit
  18. 31 Oct, 2007 1 commit
    • Havoc Pennington's avatar
      Fix a problem where a nul byte was wrongly introduced into UUIDs, due to... · bef4260a
      Havoc Pennington authored
      Fix a problem where a nul byte was wrongly introduced into UUIDs, due to _dbus_string_copy_to_buffer weird behavior.
      2007-10-31  Havoc Pennington  <hp@redhat.com>
      	* bus/selinux.c (log_audit_callback): rewrite to use
      	* 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.
  19. 20 Sep, 2007 1 commit
    • Allison Lortie's avatar
      Add support for compacting DBusStrings to release wasted memory. · 8c6b0ab3
      Allison Lortie authored
      2007-09-19  Ryan Lortie  <desrt@desrt.ca>
              * 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.
  20. 14 Jul, 2007 1 commit
  21. 10 Jun, 2007 1 commit
    • Havoc Pennington's avatar
      2007-06-09 Havoc Pennington <hp@redhat.com> · a789b7b3
      Havoc Pennington authored
      	* 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
  22. 12 Dec, 2006 2 commits
  23. 21 Oct, 2006 1 commit
    • Havoc Pennington's avatar
      2006-10-21 Havoc Pennington <hp@redhat.com> · e19ebac5
      Havoc Pennington authored
      	* Clean up Doxygen group markers for public API so Doxygen finds
      	everything (not comprehensively fixed for private API).
      	Means all remaining Doxygen warnings are just about missing docs
      	and thus pretty simple to resolve.
  24. 20 Oct, 2006 1 commit
  25. 01 Oct, 2006 1 commit
    • 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/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
      	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: 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_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/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
  26. 08 Aug, 2006 2 commits
    • John Palmieri's avatar
      * dbus/dbus-sysdeps.h: · d3874114
      John Palmieri authored
      * dbus/dbus-sysdeps.c:
      * dbus/dbus-string.c:
        s/_dbus_printf_length/_dbus_printf_string_upper_bound to comform with
        GLib's function which does the same thing
      * configure.in:
      * bus/Makefile.am:
      * bus/dir-watch-default.c:
      * bus/dir-watch-dnotify.c:
      * bus/dir-watch-kqueue.c:
        Add kqueue directory watching for freebsd and split the directory
        watching code into seperate files per method/arch
        (patches from Timothy Redaelli <drizzt at gufi dotorg>)
    • John Palmieri's avatar
      * dbus/dbus-sysdeps.h: · 7bb2361e
      John Palmieri authored
      * dbus/dbus-sysdeps.c:
        add _dbus_printf_length (patch from Peter Kümmel
        <syntheticpp at gmx dot net>)
  27. 03 Aug, 2006 1 commit
  28. 16 Feb, 2006 1 commit
    • Robert McQueen's avatar
      2006-02-16 Robert McQueen <robot101@debian.org> · 0d0642b3
      Robert McQueen authored
      	* dbus/dbus-message.c (dbus_message_iter_get_fixed_array):
      	Patch from Rob Taylor <rob.taylor@collabora.co.uk> to correct a bogus
      	assertion that the next element to read from the iter is fixed in
      	size. This is not the case when you are at the end of the iter,
      	because the next element type is INVALID.
      	* dbus/dbus-string.c (_dbus_string_init_const_len): Correct a
      	a bogus assert which means that you may not initialise a 0-length
      	string unless you provide a non-NULL pointer. This prevented
      	you from marshalling messages containing zero-length arrays in
      	some cases.
      	* glib/dbus-gvalue.c (demarshal_collection_array): Another patch
      	from Rob to correct bogus asserts when trying to demarshal an
      	array and get_fixed_array got you 0 elements. Append nothing to
      	the GArray in this case.
      	* test/glib/test-dbus-glib.c: Add a test case for round-tripping
      	an empty array via the glib bindings. Without all of the above
      	patches, this new test fails.
  29. 10 Apr, 2005 1 commit
  30. 25 Feb, 2005 1 commit
    • Havoc Pennington's avatar
      2005-02-25 Havoc Pennington <hp@redhat.com> · 7ce7502e
      Havoc Pennington authored
      	* doc/dbus-specification.xml: document the GUID thing
      	* dbus/dbus-server.c (_dbus_server_init_base): initialize a
      	globally unique ID for the server, and put a "guid=hexencoded"
      	field in the address
      	* dbus/dbus-bus.c: fix missing #include of dbus-threads-internal.h
      	* dbus/dbus-message.c: ditto
      	* dbus/dbus-dataslot.c: ditto
      	* dbus/dbus-list.c: ditto
      	* dbus/dbus-internals.h: wait, just include
      	dbus-threads-internal.h here
      	* dbus/dbus-string.c (_dbus_string_copy_to_buffer): move back for
      	use in main library
      	* dbus/dbus-sysdeps.c (_dbus_generate_random_bytes_buffer): new function
  31. 11 Feb, 2005 1 commit
    • Havoc Pennington's avatar
      2005-02-10 Havoc Pennington <hp@redhat.com> · aa4f8237
      Havoc Pennington authored
      	* test/glib/test-dbus-glib.c (main): fix so this test doesn't fail
      	(call dbus_g_proxy_add_signal)
      	* dbus/dbus-server-unix.c (_dbus_server_new_for_tcp_socket):
      	escape the hostname
      	(_dbus_server_new_for_domain_socket): escape the path
      	* dbus/dbus-address.c (dbus_address_escape_value): new
      	(dbus_address_unescape_value): new
      	(dbus_parse_address): unescape values
      	* dbus/dbus-string.c (_dbus_string_append_byte_as_hex): new function
      	* doc/dbus-specification.xml: explain how to escape values in
  32. 28 Jan, 2005 1 commit
    • Havoc Pennington's avatar
      2005-01-27 Havoc Pennington <hp@redhat.com> · 3ed9db54
      Havoc Pennington authored
      	* dbus/dbus-arch-deps.h.in: add 16/32-bit types
      	* configure.in: find the right type for 16 and 32 bit ints as well
      	as 64
      	* dbus/dbus-protocol.h (DBUS_TYPE_INT16, DBUS_TYPE_UINT16): add
      	the 16-bit types so people don't have to stuff them in 32-bit or
      	byte arrays.
  33. 17 Jan, 2005 1 commit
    • 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
  34. 16 Jan, 2005 1 commit
    • Havoc Pennington's avatar
      2005-01-16 Havoc Pennington <hp@redhat.com> · 31988af4
      Havoc Pennington authored
              * Add and fix docs according to Doxygen warnings throughout
      	* dbus/dbus-marshal-recursive.c
      	(_dbus_type_reader_array_is_empty): change this to just call
      	array_reader_get_array_len() and make it static
      	* dbus/dbus-message.c (dbus_message_iter_get_element_type): rename
      	from get_array_type
      	(dbus_message_iter_init_append): rename from append_iter_init
      	* dbus/dbus-marshal-recursive.c
      	(_dbus_type_reader_get_element_type): rename from