diff options
author | gavin <gavin@FreeBSD.org> | 2014-08-13 12:44:44 +0000 |
---|---|---|
committer | gavin <gavin@FreeBSD.org> | 2014-08-13 12:44:44 +0000 |
commit | 9a525ec03f0c241694615c1da7b8edcbf91e438d (patch) | |
tree | e72d1d8dcf0581197d63dbad45817fe7f63cf452 /usr.sbin/pkg/pkg.c | |
parent | 5940066af73d60a8fcea21e602305bda169f8393 (diff) | |
download | FreeBSD-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/pkg.c')
-rw-r--r-- | usr.sbin/pkg/pkg.c | 3 |
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); |