mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2025-01-23 17:31:43 +01:00
Apply fts() fix from PR#4593
Submitted by: Dmitrij Tejblum <dima@tejblum.dnttm.rssi.ru>
This commit is contained in:
parent
6936988f22
commit
42396e05cf
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=29718
@ -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