Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11]) by www.NetBSD.org (Postfix) with ESMTP id A204263BCA1 for ; Wed, 17 Nov 2010 22:24:44 +0000 (UTC) Received: by mail.netbsd.org (Postfix, from userid 605) id 790EB19D5DF; Wed, 17 Nov 2010 22:24:44 +0000 (UTC) Received: from cvs.netbsd.org (cvs.NetBSD.org [IPv6:2001:4f8:3:7:2e0:81ff:fe30:95bd]) by mail.netbsd.org (Postfix) with ESMTP id 5139419D5AD for ; Wed, 17 Nov 2010 22:24:41 +0000 (UTC) Received: by cvs.netbsd.org (Postfix, from userid 500) id 4579B175DD; Wed, 17 Nov 2010 22:24:41 +0000 (UTC) MIME-Version: 1.0 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Date: Wed, 17 Nov 2010 22:24:41 +0000 From: "Ignatios Souvatzis" Subject: CVS commit: pkgsrc/converters/mpack To: pkgsrc-changes@NetBSD.org Reply-To: is@netbsd.org X-Mailer: log_accum Message-Id: <20101117222441.4579B175DD@cvs.netbsd.org> Sender: pkgsrc-changes-owner@NetBSD.org List-Id: pkgsrc-changes.NetBSD.org Precedence: bulk Module Name: pkgsrc Committed By: is Date: Wed Nov 17 22:24:41 UTC 2010 Modified Files: pkgsrc/converters/mpack: Makefile distinfo Added Files: pkgsrc/converters/mpack/patches: patch-ag Log Message: Fix decoding of message/partial. Explanation: mpack-1.6 introduced more security on Unix-like systems by creating and using a helper function, os_createnewfile, that uses O_CREAT|O_EXCL. Unfortunately, it also uses it to write the total number of parts temporary file, which fails if more than one part contains the total number (as mpack creates them!) The new code compares old and new totals, if both exist, and only writes the new total, if the old didn't exist. Problem solved and one sanity check more at the same time. To generate a diff of this commit: cvs rdiff -u -r1.20 -r1.21 pkgsrc/converters/mpack/Makefile cvs rdiff -u -r1.11 -r1.12 pkgsrc/converters/mpack/distinfo cvs rdiff -u -r0 -r1.1 pkgsrc/converters/mpack/patches/patch-ag Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.