FILE*->fd not handled well in ftruncate. Fix allows broken tests in aof.tcl to work.