History log of /external/dbus/dbus/dbus-nonce.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
45d53565bc13678d6aa5edec1d4efb5bf8a64e0b 03-Sep-2010 Colin Walters <walters@verbum.org> Make dbus-uuidgen atomic

A Red Hat QA engineer hit in practice a race condition in dbus-uuidgen
where it could leave an empty file.

dbus-uuidgen (_dbus_create_uuid_file_exclusively) formerly created an
empty file in the path to the uuid, then filled it in. At some point,
the internal libdbus _dbus_string_save_to_file became atomic on Unix
at least (doing the save to temp file, fsync(), rename() dance).

So _dbus_create_uuid_file_exclusively doesn't need to create the file
beforehand anymore. However, it *does* need the file to be
world-readable, unlike all other consumers of
_dbus_string_save_to_file. So add a "world_readable" argument.
/external/dbus/dbus/dbus-nonce.c
6e214b5b3c283798b5743b4ebf7c9ec466fe3667 16-Mar-2010 Marcus Brinkmann <marcus.brinkmann@ruhr-uni-bochum.de> Prepare for WinCE port: Convert windows code to native API, avoid errno.
/external/dbus/dbus/dbus-nonce.c
dbecdeabb20e0ce11121819c63373f0afba57c58 19-Mar-2010 Marcus Brinkmann <marcus.brinkmann@ruhr-uni-bochum.de> Consistently include <config.h> in all C source files and never in header files.
/external/dbus/dbus/dbus-nonce.c
459c19b9dd157cd360c3082d015a4c5ae4689cf8 22-Oct-2009 Tor Lillqvist <tml@iki.fi> 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.
/external/dbus/dbus/dbus-nonce.c
99371721af2ddead242d6ba0101019794b270a8d 21-Oct-2009 Tor Lillqvist <tml@iki.fi> 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.
/external/dbus/dbus/dbus-nonce.c
0617102b4b156e40591e7af2a936a1988ef4b4d7 21-Oct-2009 Frank Osterfeld <frank@kdab.net> Fixes to the nonce code

Cherry-picked from commit f9bc0f4bd036f6ede5d9850fb0f8587178c85f44 in
the dbus4win repository, slightly massaged to apply by tml@iki.fi.
/external/dbus/dbus/dbus-nonce.c
c8f73b36a5b44eb97165b93d6b9d92e7fee0eae1 21-Oct-2009 Frank Osterfeld <frank@kdab.net> Add api dox for nonce-tcp

Cherry-picked from commit e7a070db22ed4a84dc04a062255356c9f6c4c9c5 in
the dbus4win repository, trailing whitespace issues corrected by
tml@iki.fi.
/external/dbus/dbus/dbus-nonce.c
fbd21dd0977b9edd6114d56190fe0bb5ffa3a82f 21-Oct-2009 Frank Osterfeld <frank@kdab.net> 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.
/external/dbus/dbus/dbus-nonce.c
b0091cf47e1172b1d5c1b0c060efe8b60c3b11e1 21-Oct-2009 Frank Osterfeld <frank@kdab.net> 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.
/external/dbus/dbus/dbus-nonce.c
25ceeeb6799849e2d1c67b421be2110aee2804ff 21-Oct-2009 Frank Osterfeld <frank@kdab.net> 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.
/external/dbus/dbus/dbus-nonce.c
5e2a99c12c7e3531d908ed4fca82caca9cb02825 21-Oct-2009 Frank Osterfeld <frank@kdab.net> 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.
/external/dbus/dbus/dbus-nonce.c