diff --git a/usr.sbin/pkg_install/lib/file.c b/usr.sbin/pkg_install/lib/file.c index 29d969c59de1..1d578d69d0ef 100644 --- a/usr.sbin/pkg_install/lib/file.c +++ b/usr.sbin/pkg_install/lib/file.c @@ -1,5 +1,5 @@ #ifndef lint -static const char *rcsid = "$Id: file.c,v 1.9 1995/05/10 23:00:16 jkh Exp $"; +static const char *rcsid = "$Id: file.c,v 1.10 1995/05/30 03:50:05 rgrimes Exp $"; #endif /* @@ -30,7 +30,8 @@ static const char *rcsid = "$Id: file.c,v 1.9 1995/05/10 23:00:16 jkh Exp $"; Boolean fexists(char *fname) { - if (!access(fname, F_OK)) + struct stat dummy; + if (!lstat(fname, &dummy)) return TRUE; return FALSE; }