diff options
author | jon <jon@FreeBSD.org> | 2001-08-02 18:20:27 +0000 |
---|---|---|
committer | jon <jon@FreeBSD.org> | 2001-08-02 18:20:27 +0000 |
commit | c399f34c7d6e9521518ce5ae244f9a62661b983d (patch) | |
tree | 097a3f29da3b07449da77fcaf7cfd16837d78bc0 | |
parent | 3827edad85dbec7807dabc821e0b6935d41980fe (diff) | |
download | FreeBSD-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
-rw-r--r-- | usr.sbin/pkg_install/lib/file.c | 2 |
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; |