Date: Wed, 16 Jul 2014 00:12:57 +0000 (UTC) From: Gavin Atkinson <gavin@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r268728 - head/usr.sbin/pkg Message-ID: <201407160012.s6G0Cvwj099220@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201407160012.s6G0Cvwj099220>