Apply fts() fix from PR#4593

Submitted by:  Dmitrij Tejblum <dima@tejblum.dnttm.rssi.ru>
This commit is contained in:
Peter Wemm 1997-09-22 12:48:40 +00:00
parent 6936988f22
commit 42396e05cf
2 changed files with 2 additions and 2 deletions

View File

@ -747,7 +747,7 @@ mem1: saved_errno = errno;
* state.
*/
if (ISSET(FTS_NOCHDIR)) {
if (cp - 1 > sp->fts_path)
if (len == sp->fts_pathlen)
--cp;
*cp = '\0';
}

View File

@ -747,7 +747,7 @@ mem1: saved_errno = errno;
* state.
*/
if (ISSET(FTS_NOCHDIR)) {
if (cp - 1 > sp->fts_path)
if (len == sp->fts_pathlen)
--cp;
*cp = '\0';
}