You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
901 B
29 lines
901 B
Index: dbus/dbus-internals.c |
|
--- dbus/dbus-internals.c.orig 2011-06-01 16:09:03.000000000 +0200 |
|
+++ dbus/dbus-internals.c 2011-06-02 08:10:54.000000000 +0200 |
|
@@ -603,6 +603,14 @@ |
|
uuid->as_uint32s[DBUS_UUID_LENGTH_WORDS - 1] = DBUS_UINT32_TO_BE (now); |
|
|
|
_dbus_generate_random_bytes_buffer (uuid->as_bytes, DBUS_UUID_LENGTH_BYTES - 4); |
|
+ |
|
+ /* brand UUID as variant DCE 1.1 */ |
|
+ uuid->as_bytes[8] &= ~0xc0; |
|
+ uuid->as_bytes[8] |= (0x02 << 6); |
|
+ |
|
+ /* brand UUID as version 4 */ |
|
+ uuid->as_bytes[6] &= ~0xf0; |
|
+ uuid->as_bytes[6] |= (0x04 << 4); |
|
} |
|
|
|
/** |
|
Index: dbus/dbus-sysdeps-util-unix.c |
|
--- dbus/dbus-sysdeps-util-unix.c.orig 2011-06-01 11:48:39.000000000 +0200 |
|
+++ dbus/dbus-sysdeps-util-unix.c 2011-06-02 08:10:54.000000000 +0200 |
|
@@ -34,6 +34,7 @@ |
|
#include "dbus-test.h" |
|
|
|
#include <sys/types.h> |
|
+#include <sys/param.h> |
|
#include <stdlib.h> |
|
#include <string.h> |
|
#include <signal.h>
|
|
|