mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-26 16:18:31 +00: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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=81058
@ -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 New Issue
Block a user