diff options
| author | Satoshi Asami <asami@FreeBSD.org> | 1995-06-24 10:12:59 +0000 |
|---|---|---|
| committer | Satoshi Asami <asami@FreeBSD.org> | 1995-06-24 10:12:59 +0000 |
| commit | 575e2e187e9df8b22809c3a520a16774c7355d8a (patch) | |
| tree | 7df8f25f1a8b408effa29bb209626fab8ac797f0 /usr.sbin/pkg_install/lib | |
| parent | f606c848fa4c2b07aff750b92c803d61f11d5e07 (diff) | |
Notes
Diffstat (limited to 'usr.sbin/pkg_install/lib')
| -rw-r--r-- | usr.sbin/pkg_install/lib/file.c | 5 |
1 files changed, 3 insertions, 2 deletions
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; } |
