Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-9]: src/etc/rc.d Pull up following revision(s) (requested by rias...



details:   https://anonhg.NetBSD.org/src/rev/201ba8e788ff
branches:  netbsd-9
changeset: 932218:201ba8e788ff
user:      martin <martin%NetBSD.org@localhost>
date:      Sat May 02 16:24:11 2020 +0000

description:
Pull up following revision(s) (requested by riastradh in ticket #882):

        etc/rc.d/random_seed: revision 1.9

Don't delete the random seed before issuing `rndctl -S'.
`rndctl -S' can replace the file just fine, and deleting it ahead of
time adds a window during which we can lose the seed altogether if
the system is interrupted by a crash or power outage.

XXX pullup

diffstat:

 etc/rc.d/random_seed |  4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diffs (20 lines):

diff -r eb2b95bdf9fb -r 201ba8e788ff etc/rc.d/random_seed
--- a/etc/rc.d/random_seed      Fri May 01 11:55:45 2020 +0000
+++ b/etc/rc.d/random_seed      Sat May 02 16:24:11 2020 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# $NetBSD: random_seed,v 1.7.26.1 2020/03/01 11:53:09 martin Exp $
+# $NetBSD: random_seed,v 1.7.26.2 2020/05/02 16:24:11 martin Exp $
 #
 
 # PROVIDE: random_seed
@@ -93,8 +93,6 @@
        oum="$(umask)"
        umask 077
 
-       rm -Pf "${random_file}"
-
        if ! fs_safe "$(dirname "${random_file}")"; then
                umask "${oum}"
                return 1



Home | Main Index | Thread Index | Old Index