summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pkg_install/lib
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1998-09-01 06:58:11 +0000
committerjkh <jkh@FreeBSD.org>1998-09-01 06:58:11 +0000
commit7144badade00b1a8182e70b46e7553726d1651dd (patch)
tree89f777840893ac642386652905076e1074e31f46 /usr.sbin/pkg_install/lib
parent9f6b1115ba97d42b3ab08a1326367c6765948342 (diff)
downloadFreeBSD-src-7144badade00b1a8182e70b46e7553726d1651dd.zip
FreeBSD-src-7144badade00b1a8182e70b46e7553726d1651dd.tar.gz
Silence potentially bogus warning.
Diffstat (limited to 'usr.sbin/pkg_install/lib')
-rw-r--r--usr.sbin/pkg_install/lib/plist.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/pkg_install/lib/plist.c b/usr.sbin/pkg_install/lib/plist.c
index 5e4a2e7..7bcd1c8 100644
--- a/usr.sbin/pkg_install/lib/plist.c
+++ b/usr.sbin/pkg_install/lib/plist.c
@@ -1,6 +1,6 @@
#ifndef lint
static const char rcsid[] =
- "$Id: plist.c,v 1.24 1997/10/08 07:48:15 charnier Exp $";
+ "$Id: plist.c,v 1.25 1998/07/18 22:19:11 hoek Exp $";
#endif
/*
@@ -431,7 +431,7 @@ delete_package(Boolean ign_err, Boolean nukedirs, Package *pkg)
case PLIST_DIR_RM:
sprintf(tmp, "%s/%s", Where, p->name);
- if (!isdir(tmp)) {
+ if (!isdir(tmp) && fexists(tmp)) {
warnx("cannot delete specified directory `%s' - it is a file!\n"
"this packing list is incorrect - ignoring delete request", tmp);
}
OpenPOWER on IntegriCloud