Apply fts() fix from PR#4593
Submitted by: Dmitrij Tejblum <dima@tejblum.dnttm.rssi.ru>
This commit is contained in:
parent
6936988f22
commit
42396e05cf
@ -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';
|
||||
}
|
||||
|
@ -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';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user