mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
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
878c351a1c
commit
91289ebc39
2 changed files with 2 additions and 2 deletions
|
|
@ -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…
Reference in a new issue