dbus.patch 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. Index: dbus/dbus-internals.c
  2. --- dbus/dbus-internals.c.orig 2006-11-17 20:12:18 +0100
  3. +++ dbus/dbus-internals.c 2006-11-18 12:35:56 +0100
  4. @@ -512,6 +512,14 @@
  5. uuid->as_uint32s[DBUS_UUID_LENGTH_WORDS - 1] = DBUS_UINT32_TO_BE (now);
  6. _dbus_generate_random_bytes_buffer (uuid->as_bytes, DBUS_UUID_LENGTH_BYTES - 4);
  7. +
  8. + /* brand UUID as variant DCE 1.1 */
  9. + uuid->as_bytes[8] &= ~0xc0;
  10. + uuid->as_bytes[8] |= (0x02 << 6);
  11. +
  12. + /* brand UUID as version 4 */
  13. + uuid->as_bytes[6] &= ~0xf0;
  14. + uuid->as_bytes[6] |= (0x04 << 4);
  15. }
  16. /**
  17. Index: dbus/dbus-sysdeps-util-unix.c
  18. --- dbus/dbus-sysdeps-util-unix.c.orig 2006-11-02 20:19:08 +0100
  19. +++ dbus/dbus-sysdeps-util-unix.c 2006-11-18 12:33:22 +0100
  20. @@ -31,6 +31,7 @@
  21. #include "dbus-test.h"
  22. #include <sys/types.h>
  23. +#include <sys/param.h>
  24. #include <stdlib.h>
  25. #include <string.h>
  26. #include <signal.h>
  27. @@ -526,6 +527,8 @@
  28. # else
  29. # if defined(NAME_MAX)
  30. name_max = NAME_MAX;
  31. +# elif defined(MAXPATHLEN)
  32. + name_max = MAXPATHLEN;
  33. # else
  34. # error "buffer size for readdir_r cannot be determined"
  35. # endif