chiark / gitweb /
random: do not print warning if random seed doesn't exist yet
authorLennart Poettering <lennart@poettering.net>
Thu, 31 Mar 2011 02:40:02 +0000 (04:40 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 31 Mar 2011 02:40:02 +0000 (04:40 +0200)
TODO
src/random-seed.c

diff --git a/TODO b/TODO
index 803c6a8ecdded499574f678e107ab068e4709665..aa4c37f3c95de6c2e9febeb11fddc04910412974 100644 (file)
--- a/TODO
+++ b/TODO
@@ -10,8 +10,6 @@ F15:
 
 * hook emergency.target into local-fs.target in some way as OnFailure with isolate
 
 
 * hook emergency.target into local-fs.target in some way as OnFailure with isolate
 
-* teach dbus to activate all services it finds in /etc/systemd/services/org-*.service
-
 * save/restore tool for SysV as requested by FPC (PENDING)
 
 * bind mounts are ignored
 * save/restore tool for SysV as requested by FPC (PENDING)
 
 * bind mounts are ignored
@@ -21,23 +19,21 @@ F15:
 
 * NM should pull in network.target, ntpd should pull in rtc-set.target.
 
 
 * NM should pull in network.target, ntpd should pull in rtc-set.target.
 
-* document default dependencies
-
 * kernel patch wegen kmsg prio nach f15
 
 * kernel patch wegen kmsg prio nach f15
 
-* LOG_DAEMON/LOG_USER für kmsg messages schreiben
+* selinux issue http://people.gnome.org/~cosimoc/selinux.jpg
 
 
-* disable /dev/console status messages after plymouth went down
+* fix alsa mixer restore to not print error when no config is stored
 
 
-* plymouth pid file
+* ply should do mkdir before writing pid file
 
 
-* selinux issue http://people.gnome.org/~cosimoc/selinux.jpg
+Features:
 
 
-* do not print errors when random seed is not around
+* teach dbus to activate all services it finds in /etc/systemd/services/org-*.service
 
 
-* fix alsa mixer restore to not print error when no config is stored
+* document default dependencies
 
 
-Features:
+* LOG_DAEMON/LOG_USER für kmsg messages schreiben
 
 * Find a way to replace /var/run, /var/lock directories with
   symlinks during an RPM package upgrade (filesystem.rpm or systemd.rpm).
 
 * Find a way to replace /var/run, /var/lock directories with
   symlinks during an RPM package upgrade (filesystem.rpm or systemd.rpm).
@@ -118,7 +114,7 @@ Features:
 
 * Patch systemd-fsck to use -C and pass console fd to it
 
 
 * Patch systemd-fsck to use -C and pass console fd to it
 
-* support remote/ssh systemctl/systemadm, and local privileged access
+* support remote/ssh systemctl/systemadm, and local privileged access → dbus patches need to be merged
 
 * configurable jitter for timer events
 
 
 * configurable jitter for timer events
 
index 8eab2b4e1ce3d9f99f5a5c7be1bb1812e0d6ab30..054233e66035210b9d10dcfd404004932f4efaeb 100644 (file)
@@ -86,9 +86,11 @@ int main(int argc, char *argv[]) {
                         }
                 }
 
                         }
                 }
 
-                if ((r = loop_read(seed_fd, buf, buf_size, false)) <= 0)
-                        log_error("Failed to read seed file: %s", r < 0 ? strerror(errno) : "EOF");
-                else {
+                if ((r = loop_read(seed_fd, buf, buf_size, false)) <= 0) {
+
+                        if (r != 0)
+                                log_error("Failed to read seed file: %m");
+                } else {
                         lseek(seed_fd, 0, SEEK_SET);
 
                         if ((r = loop_write(random_fd, buf, (size_t) r, false)) <= 0)
                         lseek(seed_fd, 0, SEEK_SET);
 
                         if ((r = loop_write(random_fd, buf, (size_t) r, false)) <= 0)