From 7af544c9f93a91365c1a65b5e233914269f981ef Mon Sep 17 00:00:00 2001 From: jkh Date: Wed, 14 Oct 1998 18:52:04 +0000 Subject: Revert 1.33; lstat() is indeed the wrong thing to do here. I'll revisit this after release. --- usr.sbin/pkg_install/lib/file.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.sbin') diff --git a/usr.sbin/pkg_install/lib/file.c b/usr.sbin/pkg_install/lib/file.c index 760f777..c12b35c 100644 --- a/usr.sbin/pkg_install/lib/file.c +++ b/usr.sbin/pkg_install/lib/file.c @@ -1,6 +1,6 @@ #ifndef lint static const char rcsid[] = - "$Id: file.c,v 1.32 1998/09/11 07:26:58 jkh Exp $"; + "$Id: file.c,v 1.33 1998/10/09 00:01:16 jkh Exp $"; #endif /* @@ -47,7 +47,7 @@ isdir(char *fname) { struct stat sb; - if (lstat(fname, &sb) != FAIL && S_ISDIR(sb.st_mode)) + if (stat(fname, &sb) != FAIL && S_ISDIR(sb.st_mode)) return TRUE; else return FALSE; -- cgit v1.1