summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_install/lib
diff options
context:
space:
mode:
authorjoerg <joerg@NetBSD.org>2006-11-03 09:19:15 +0000
committerjoerg <joerg@NetBSD.org>2006-11-03 09:19:15 +0000
commitbab4eecdd4b4f1ea00ea63a53e42f527d04f242e (patch)
treecfcc2e78bd8a48fc85dcefea210ffe3ec1c954d8 /usr.sbin/pkg_install/lib
parent5409c360399f23155a51f65b238e2a8db79b661e (diff)
When processing symlinks in pkg_delete and the call to readlink failed,
it often helps to know why, so use warn instead of warnx.
Diffstat (limited to 'usr.sbin/pkg_install/lib')
-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 1e4e93b0377..53c97c9220e 100644
--- a/usr.sbin/pkg_install/lib/plist.c
+++ b/usr.sbin/pkg_install/lib/plist.c
@@ -1,4 +1,4 @@
-/* $NetBSD: plist.c,v 1.50 2005/11/05 13:11:02 wiz Exp $ */
+/* $NetBSD: plist.c,v 1.51 2006/11/03 09:19:15 joerg Exp $ */
#if HAVE_CONFIG_H
#include "config.h"
@@ -11,7 +11,7 @@
#if 0
static const char *rcsid = "from FreeBSD Id: plist.c,v 1.24 1997/10/08 07:48:15 charnier Exp";
#else
-__RCSID("$NetBSD: plist.c,v 1.50 2005/11/05 13:11:02 wiz Exp $");
+__RCSID("$NetBSD: plist.c,v 1.51 2006/11/03 09:19:15 joerg Exp $");
#endif
#endif
@@ -408,7 +408,7 @@ delete_package(Boolean ign_err, Boolean nukedirs, package_t *pkg, Boolean NoDele
sizeof(buf));
if ((cc = readlink(tmp, &buf[SymlinkHeaderLen],
sizeof(buf) - SymlinkHeaderLen - 1)) < 0) {
- warnx("can't readlink `%s'", tmp);
+ warn("can't readlink `%s'", tmp);
continue;
}
buf[SymlinkHeaderLen + cc] = 0x0;