config.c: handle error case for fstat() calls