>From /etc/rc:

random_seed() {
        dd if=/var/db/host.random of=/dev/random bs=65536 count=1 status=none
        chmod 600 /var/db/host.random
        dd if=/dev/random of=/var/db/host.random bs=65536 count=1 status=none
        dd if=/dev/random of=/etc/random.seed bs=512 count=1 status=none
        chmod 600 /etc/random.seed
}

chmod operates on /var/db/host.random before it's created/updated, but on
/etc/random.seed afterwards. One could argue that chmod before dd is
correct (but also then needs touch) but it seems unlikely that that was
meant and that the first chmod should be moved down one line.

Of course the overall effect is the same but it certainly looks odd.

Matthew


Reply via email to