[systemd-devel] [PATCH] random-seed: Fix error message typo
Umut Tezduyar
umut at tezduyar.com
Fri Oct 19 04:05:08 PDT 2012
The file node is /dev/urandom, not /dev/random.
---
src/random-seed/random-seed.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/random-seed/random-seed.c b/src/random-seed/random-seed.c
index c2729fe..1257c52 100644
--- a/src/random-seed/random-seed.c
+++ b/src/random-seed/random-seed.c
@@ -101,7 +101,7 @@ int main(int argc, char *argv[]) {
lseek(seed_fd, 0, SEEK_SET);
if ((r = loop_write(random_fd, buf, (size_t) r,
false)) <= 0)
- log_error("Failed to write seed to
/dev/random: %s", r < 0 ? strerror(errno) : "short write");
+ log_error("Failed to write seed to
/dev/urandom: %s", r < 0 ? strerror(errno) : "short write");
}
} else if (streq(argv[1], "save")) {
--
1.7.2.5
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20121019/5b91b301/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-random-seed-Fix-error-message-typo.patch
Type: application/octet-stream
Size: 1065 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20121019/5b91b301/attachment.obj>
More information about the systemd-devel
mailing list