diff options
| author | Jordan K. Hubbard <jkh@FreeBSD.org> | 2000-02-19 08:58:54 +0000 |
|---|---|---|
| committer | Jordan K. Hubbard <jkh@FreeBSD.org> | 2000-02-19 08:58:54 +0000 |
| commit | ff6f5bfb912086314c9c46e6021ea21cd3633a2a (patch) | |
| tree | 31f93faa323746d74ebbcd2bf67e880ea7ab8a10 /usr.sbin | |
| parent | 95452c412eebe1e2e25119c444a21c07a9911ae6 (diff) | |
Notes
Diffstat (limited to 'usr.sbin')
| -rw-r--r-- | usr.sbin/pkg_install/lib/file.c | 2 |
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 b25dc9ec7dc8..b39ecf3b8f97 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; } |
