svn commit: r268728 - head/usr.sbin/pkg
Gavin Atkinson
gavin at FreeBSD.org
Wed Jul 16 00:12:57 UTC 2014
Author: gavin
Date: Wed Jul 16 00:12:57 2014
New Revision: 268728
URL: http://svnweb.freebsd.org/changeset/base/268728
Log:
When we fail to extract the pkg binaries (for example, / is read-only),
give a more helpful error message.
MFC after: 1 week
Modified:
head/usr.sbin/pkg/pkg.c
Modified: head/usr.sbin/pkg/pkg.c
==============================================================================
--- head/usr.sbin/pkg/pkg.c Tue Jul 15 23:35:06 2014 (r268727)
+++ head/usr.sbin/pkg/pkg.c Wed Jul 16 00:12:57 2014 (r268728)
@@ -126,7 +126,8 @@ extract_pkg_static(int fd, char *p, int
if (r == ARCHIVE_OK)
ret = 0;
else
- warnx("fail to extract pkg-static");
+ warnx("failed to extract pkg-static: %s",
+ archive_error_string(a));
cleanup:
archive_read_free(a);
More information about the svn-src-head
mailing list