From f0b8b1fccb894eaaa0e3dcde32ee07427dcd0c6c Mon Sep 17 00:00:00 2001 From: Jonathan Chen Date: Thu, 2 Aug 2001 18:20:27 +0000 Subject: [PATCH] fix for pkg_add to symlinked prefix directories that are more than 1 link deep. PR: bin/28274 Submitted by: John Hein MFC after: 1 month --- usr.sbin/pkg_install/lib/file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.sbin/pkg_install/lib/file.c b/usr.sbin/pkg_install/lib/file.c index 216d10fd31d0..5828100a69d8 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;