config: Avoid fstat in configuration read

Instead of using fstat(), just read until we've reached EOF.

This allows us to read input from a non-standard file.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
1 file changed