[Michael Biebl]
> TBH, I'm not actually sure what all the code in /etc/init.d/urandom
> is supposed to do and why SAVEDSIZE is necessary at all.

It is to handle those increasing the pool size in the kernel and make
the change last across boots.

> that said, given your code above, I get differing results for this
> simple example:
> 
> $ echo foo > /tmp/bar
> $ find /tmp/bar -printf %s
> 4
> $ ls -s --block-size=1 /tmp/bar | cut -d' ' -f1
> 4096

How strange.  When I test it, I get this result:

% (f=/var/lib/urandom/random-seed; find $f -printf "%s\n"; ls -s --block-size=1 
$f|cut -d" " -f1)
4096
4096
%

Perhaps ls round up to the nearest block?  Any other ideas on how to
fix this with the tools available on /?

Happy hacking,
-- 
Petter Reinholdtsen



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to