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:
parent
c1329f8c5d
commit
c7316e27a3
@ -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';
|
||||
}
|
||||
|
@ -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';
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user