summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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