Reverted to revision 1.8 as previous fix causes fts_open with with a

path name argument with a trailing '/' to fail.

Reviewed by:	phk
This commit is contained in:
pho 1999-08-15 19:21:29 +00:00
parent c1329f8c5d
commit c7316e27a3
2 changed files with 2 additions and 2 deletions

View File

@ -748,7 +748,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

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