summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pkg
diff options
context:
space:
mode:
authorgavin <gavin@FreeBSD.org>2014-08-13 12:44:44 +0000
committergavin <gavin@FreeBSD.org>2014-08-13 12:44:44 +0000
commit9a525ec03f0c241694615c1da7b8edcbf91e438d (patch)
treee72d1d8dcf0581197d63dbad45817fe7f63cf452 /usr.sbin/pkg
parent5940066af73d60a8fcea21e602305bda169f8393 (diff)
downloadFreeBSD-src-9a525ec03f0c241694615c1da7b8edcbf91e438d.zip
FreeBSD-src-9a525ec03f0c241694615c1da7b8edcbf91e438d.tar.gz
Merge r268728 from head:
When we fail to extract the pkg binaries (for example, / is read-only), give a more helpful error message.
Diffstat (limited to 'usr.sbin/pkg')
-rw-r--r--usr.sbin/pkg/pkg.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/pkg/pkg.c b/usr.sbin/pkg/pkg.c
index fa3d91e..182c739 100644
--- a/usr.sbin/pkg/pkg.c
+++ b/usr.sbin/pkg/pkg.c
@@ -126,7 +126,8 @@ extract_pkg_static(int fd, char *p, int sz)
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);
OpenPOWER on IntegriCloud