[Pkg-sysvinit-devel] Bug#587665: wrong PATH in urandom, find is in /usr/bin

Petter Reinholdtsen pere at hungry.com
Wed Jun 30 23:40:16 UTC 2010


[Michael Biebl]
> Agreed, if it can be changed to work without find (or anything from
> /usr/), this is of course the better solution.

This is the problematic line:

  SAVEDSIZE="$(find "$SAVEDFILE" -printf "%s")"


The find line prints the size of the file in bytes.

Not quite sure what the best option is, but this line seem to work
too, using ls and cut from /bin/.

  SAVEDSIZE="$(ls -s --block-size=1 "$SAVEDFILE" | cut -d' ' -f1)"

Anyone got a better idea?

Hapy hacking,
-- 
Petter Reinholdtsen





More information about the Pkg-sysvinit-devel mailing list