Patch to fix errors in find/testsuite/find.gnu/posix-h.exp caused by not executing the -H flag correctly. gentoo bug #253119 Undoes http://git.savannah.gnu.org/cgit/findutils.git/commit/?id=acb82fe44369c108b43ec3e805aa94bf28352d0a Submitted upstream: http://savannah.gnu.org/bugs/index.php?25359 Patch by Nick Fortino --- findutils-4.5.3-orig/find/ftsfind.c +++ findutils-4.5.3/find/ftsfind.c @@ -472,8 +472,8 @@ || ent->fts_info == FTS_NS /* e.g. symlink loop */) { assert (!state.have_stat); - assert (state.type != 0); - mode = state.type; + assert (!state.have_type); + state.type = mode = 0; } else { @@ -615,8 +615,8 @@ while ( (ent=fts_read(p)) != NULL ) { state.have_stat = false; - state.have_type = !!ent->fts_statp->st_mode; - state.type = state.have_type ? ent->fts_statp->st_mode : 0; + state.have_type = false; + state.type = 0; consider_visiting(p, ent); } fts_close(p);