When we fail to extract the pkg binaries (for example, / is read-only),

give a more helpful error message.

MFC after:	1 week
This commit is contained in:
Gavin Atkinson 2014-07-16 00:12:57 +00:00
parent a11d210986
commit 4622bc4e31
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=268728

View File

@ -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);