summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pkg_install/lib
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/pkg_install/lib')
-rw-r--r--usr.sbin/pkg_install/lib/file.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.sbin/pkg_install/lib/file.c b/usr.sbin/pkg_install/lib/file.c
index b25dc9e..b39ecf3 100644
--- a/usr.sbin/pkg_install/lib/file.c
+++ b/usr.sbin/pkg_install/lib/file.c
@@ -49,6 +49,8 @@ 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))
+ return TRUE;
else
return FALSE;
}
OpenPOWER on IntegriCloud