mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
fix for pkg_add to symlinked prefix directories that are more than 1 link deep.
PR: bin/28274 Submitted by: John Hein <jhein@timing.com> MFC after: 1 month
This commit is contained in:
parent
bd376a3487
commit
f0b8b1fccb
1 changed files with 1 additions and 1 deletions
|
|
@ -48,7 +48,7 @@ isdir(char *fname)
|
|||
|
||||
if (lstat(fname, &sb) != FAIL && S_ISDIR(sb.st_mode))
|
||||
return TRUE;
|
||||
else if (lstat(strconcat(fname, "/"), &sb) != FAIL && S_ISDIR(sb.st_mode))
|
||||
else if (lstat(strconcat(fname, "/."), &sb) != FAIL && S_ISDIR(sb.st_mode))
|
||||
return TRUE;
|
||||
else
|
||||
return FALSE;
|
||||
|
|
|
|||
Loading…
Reference in a new issue