summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pkg_install/lib
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1998-10-14 18:52:04 +0000
committerjkh <jkh@FreeBSD.org>1998-10-14 18:52:04 +0000
commit7af544c9f93a91365c1a65b5e233914269f981ef (patch)
tree7bcfacff3735f3a71fa5cf0384225329e8f6fa72 /usr.sbin/pkg_install/lib
parent79798ff9ebdc7520990f5c5fe00827cba748e820 (diff)
downloadFreeBSD-src-7af544c9f93a91365c1a65b5e233914269f981ef.zip
FreeBSD-src-7af544c9f93a91365c1a65b5e233914269f981ef.tar.gz
Revert 1.33; lstat() is indeed the wrong thing to do here. I'll
revisit this after release.
Diffstat (limited to 'usr.sbin/pkg_install/lib')
-rw-r--r--usr.sbin/pkg_install/lib/file.c4
1 files changed, 2 insertions, 2 deletions
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;
OpenPOWER on IntegriCloud