aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_install
diff options
context:
space:
mode:
authorTim Vanderhoek <hoek@FreeBSD.org>1998-07-18 22:19:11 +0000
committerTim Vanderhoek <hoek@FreeBSD.org>1998-07-18 22:19:11 +0000
commit922fcd0032cacb7a32db94fc9b53b17d4e3edf7f (patch)
treeb851f4aca0e306cce9373800cfdbd308a6d59c5f /usr.sbin/pkg_install
parent51c4f6fbb56a0d9ef5c8b76d79f4398134fe0ea0 (diff)
downloadsrc-922fcd0032cacb7a32db94fc9b53b17d4e3edf7f.tar.gz
src-922fcd0032cacb7a32db94fc9b53b17d4e3edf7f.zip
Clarify "Cannot delete file as directory" errmessage.
PR: bin/1985
Notes
Notes: svn path=/head/; revision=37744
Diffstat (limited to 'usr.sbin/pkg_install')
-rw-r--r--usr.sbin/pkg_install/lib/plist.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/pkg_install/lib/plist.c b/usr.sbin/pkg_install/lib/plist.c
index 2caf31a3562d..5e4a2e7c509d 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.23 1997/09/02 08:48:47 jkh Exp $";
+ "$Id: plist.c,v 1.24 1997/10/08 07:48:15 charnier Exp $";
#endif
/*
@@ -389,7 +389,7 @@ delete_package(Boolean ign_err, Boolean nukedirs, Package *pkg)
last_file = p->name;
sprintf(tmp, "%s/%s", Where, p->name);
if (isdir(tmp)) {
- warnx("attempting to delete directory `%s' as a file\n"
+ warnx("cannot delete specified file `%s' - it is a directory!\n"
"this packing list is incorrect - ignoring delete request", tmp);
}
else {
@@ -432,7 +432,7 @@ delete_package(Boolean ign_err, Boolean nukedirs, Package *pkg)
case PLIST_DIR_RM:
sprintf(tmp, "%s/%s", Where, p->name);
if (!isdir(tmp)) {
- warnx("attempting to delete file `%s' as a directory\n"
+ warnx("cannot delete specified directory `%s' - it is a file!\n"
"this packing list is incorrect - ignoring delete request", tmp);
}
else {