Trying to closedir the wrong pointer in "readdir sets errno" test.
This caused test to dump core, leading to 'bogus' value of test
result, which breaks the build.
err = errno;
fprintf(f,"%d", err);
fclose(f);
- closedir(de);
+ closedir(dp);
rmdir("testdir");
return 0;
}],fptools_cv_readdir_eof_errno=`cat conftestval`, fptools_cv_readdir_eof_errno=bogus, fptools_cv_readdir_eof_errno=0)])