From 7144badade00b1a8182e70b46e7553726d1651dd Mon Sep 17 00:00:00 2001 From: jkh Date: Tue, 1 Sep 1998 06:58:11 +0000 Subject: Silence potentially bogus warning. --- usr.sbin/pkg_install/lib/plist.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.sbin/pkg_install/lib') 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); } -- cgit v1.1