summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pkg_install
diff options
context:
space:
mode:
authorjon <jon@FreeBSD.org>2001-08-02 18:20:27 +0000
committerjon <jon@FreeBSD.org>2001-08-02 18:20:27 +0000
commitc399f34c7d6e9521518ce5ae244f9a62661b983d (patch)
tree097a3f29da3b07449da77fcaf7cfd16837d78bc0 /usr.sbin/pkg_install
parent3827edad85dbec7807dabc821e0b6935d41980fe (diff)
downloadFreeBSD-src-c399f34c7d6e9521518ce5ae244f9a62661b983d.zip
FreeBSD-src-c399f34c7d6e9521518ce5ae244f9a62661b983d.tar.gz
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
Diffstat (limited to 'usr.sbin/pkg_install')
-rw-r--r--usr.sbin/pkg_install/lib/file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/pkg_install/lib/file.c b/usr.sbin/pkg_install/lib/file.c
index 216d10f..5828100 100644
--- a/usr.sbin/pkg_install/lib/file.c
+++ b/usr.sbin/pkg_install/lib/file.c
@@ -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;
OpenPOWER on IntegriCloud