From owner-svn-ports-head@freebsd.org Mon Feb 27 14:32:38 2017 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 37C85CEFA1B; Mon, 27 Feb 2017 14:32:38 +0000 (UTC) (envelope-from bapt@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 076D6F81; Mon, 27 Feb 2017 14:32:37 +0000 (UTC) (envelope-from bapt@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v1REWbXW015312; Mon, 27 Feb 2017 14:32:37 GMT (envelope-from bapt@FreeBSD.org) Received: (from bapt@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v1REWbmg015310; Mon, 27 Feb 2017 14:32:37 GMT (envelope-from bapt@FreeBSD.org) Message-Id: <201702271432.v1REWbmg015310@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: bapt set sender to bapt@FreeBSD.org using -f From: Baptiste Daroussin Date: Mon, 27 Feb 2017 14:32:37 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r434959 - in head/ports-mgmt/pkg: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Feb 2017 14:32:38 -0000 Author: bapt Date: Mon Feb 27 14:32:36 2017 New Revision: 434959 URL: https://svnweb.freebsd.org/changeset/ports/434959 Log: Fix signing_command something saving a truncated signature in the file as a result pkg will reject any repository signed Added: head/ports-mgmt/pkg/files/patch-signing_command (contents, props changed) Modified: head/ports-mgmt/pkg/Makefile Modified: head/ports-mgmt/pkg/Makefile ============================================================================== --- head/ports-mgmt/pkg/Makefile Mon Feb 27 14:30:10 2017 (r434958) +++ head/ports-mgmt/pkg/Makefile Mon Feb 27 14:32:36 2017 (r434959) @@ -2,7 +2,7 @@ PORTNAME= pkg DISTVERSION= 1.10.0 -PORTREVISION= 1 +PORTREVISION= 2 _PKG_VERSION= ${DISTVERSION} CATEGORIES= ports-mgmt MASTER_SITES= \ Added: head/ports-mgmt/pkg/files/patch-signing_command ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/ports-mgmt/pkg/files/patch-signing_command Mon Feb 27 14:32:36 2017 (r434959) @@ -0,0 +1,20 @@ +commit df567e873326532a96de420e6953d7111f446cff +Author: Baptiste Daroussin +Date: Mon Feb 27 14:31:48 2017 +0100 + + Use binary copy instead of printf to fix issues with pkg repo + signing_command when the signature contains \0 + +diff --git libpkg/pkg_repo_create.c libpkg/pkg_repo_create.c +index ac69e06c..1dab735c 100644 +--- libpkg/pkg_repo_create.c ++++ libpkg/pkg_repo_create.c +@@ -822,7 +822,7 @@ pkg_repo_sign(char *path, char **argv, int argc, UT_string **sig, UT_string **ce + break; + } + if (buf != NULL) +- utstring_printf(buf, "%s", line); ++ utstring_bincpy(buf, line, linelen); + } + + if (pclose(fp) != 0) {