[Pkg-sysvinit-devel] Bug#587665: wrong PATH in urandom, find is in /usr/bin
Petter Reinholdtsen
pere at hungry.com
Thu Jul 1 14:10:22 UTC 2010
[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
More information about the Pkg-sysvinit-devel
mailing list