summaryrefslogtreecommitdiff
path: root/package/corosync/patches
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2011-06-12 16:03:38 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2011-06-12 16:03:38 +0200
commit47223981bccbf79d81a0b17657539432dacf36e2 (patch)
tree16d8bfea48e7299041b0af03e6a0f5414604e6c7 /package/corosync/patches
parent36f4b43cf5ecb25a02830eed9548acc22a5697a8 (diff)
add pacemaker and update drbd
Diffstat (limited to 'package/corosync/patches')
-rw-r--r--package/corosync/patches/patch-tools_corosync-keygen_c26
1 files changed, 26 insertions, 0 deletions
diff --git a/package/corosync/patches/patch-tools_corosync-keygen_c b/package/corosync/patches/patch-tools_corosync-keygen_c
new file mode 100644
index 000000000..6e147930c
--- /dev/null
+++ b/package/corosync/patches/patch-tools_corosync-keygen_c
@@ -0,0 +1,26 @@
+--- corosync-1.3.1.orig/tools/corosync-keygen.c 2011-04-25 04:37:50.000000000 +0200
++++ corosync-1.3.1/tools/corosync-keygen.c 2011-05-26 07:27:22.000000000 +0200
+@@ -65,11 +65,11 @@ int main (void) {
+ }
+ }
+
+- printf ("Gathering %lu bits for key from /dev/random.\n", (unsigned long)(sizeof (key) * 8));
++ printf ("Gathering %lu bits for key from /dev/urandom.\n", (unsigned long)(sizeof (key) * 8));
+ printf ("Press keys on your keyboard to generate entropy.\n");
+- random_fd = open ("/dev/random", O_RDONLY);
++ random_fd = open ("/dev/urandom", O_RDONLY);
+ if (random_fd == -1) {
+- perror ("Is /dev/random present? Opening /dev/random");
++ perror ("Is /dev/urandom present? Opening /dev/urandom");
+ exit (errno);
+ }
+
+@@ -81,7 +81,7 @@ int main (void) {
+ retry_read:
+ res = read (random_fd, &key[bytes_read], sizeof (key) - bytes_read);
+ if (res == -1) {
+- perror ("Could not read /dev/random");
++ perror ("Could not read /dev/urandom");
+ exit (errno);
+ }
+ bytes_read += res;