use the correct stat structure in the fstat path