svn commit: r269937 - stable/10/usr.sbin/pkg

Gavin Atkinson gavin at FreeBSD.org
Wed Aug 13 12:44:44 UTC 2014


Author: gavin
Date: Wed Aug 13 12:44:44 2014
New Revision: 269937
URL: http://svnweb.freebsd.org/changeset/base/269937

Log:
  Merge r268728 from head:
  
    When we fail to extract the pkg binaries (for example, / is read-only),
    give a more helpful error message.

Modified:
  stable/10/usr.sbin/pkg/pkg.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/usr.sbin/pkg/pkg.c
==============================================================================
--- stable/10/usr.sbin/pkg/pkg.c	Wed Aug 13 12:42:15 2014	(r269936)
+++ stable/10/usr.sbin/pkg/pkg.c	Wed Aug 13 12:44:44 2014	(r269937)
@@ -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-stable-10 mailing list