From owner-freebsd-ports@FreeBSD.ORG Fri Apr 25 16:43:05 2014 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 0B54FB5E for ; Fri, 25 Apr 2014 16:43:05 +0000 (UTC) Received: from b2bfep13.mx.upcmail.net (b2bfep13.mx.upcmail.net [62.179.121.58]) by mx1.freebsd.org (Postfix) with ESMTP id 6411F19D8 for ; Fri, 25 Apr 2014 16:43:03 +0000 (UTC) Received: from edge12.upcmail.net ([192.168.13.82]) by b2bfep13-int.chello.at (InterMail vM.8.01.05.11 201-2260-151-128-20120928) with ESMTP id <20140425164256.EDMW25964.b2bfep13-int.chello.at@edge12.upcmail.net> for ; Fri, 25 Apr 2014 18:42:56 +0200 Received: from iznogoud.viz ([91.119.56.164]) by edge12.upcmail.net with edge id uGiv1n0023YbPKv0CGivUB; Fri, 25 Apr 2014 18:42:56 +0200 X-SourceIP: 91.119.56.164 Received: from wolfgang by iznogoud.viz with local (Exim 4.82 (FreeBSD)) (envelope-from ) id 1WdjDC-0000Hw-Lj; Fri, 25 Apr 2014 18:42:54 +0200 From: Wolfgang Jenkner To: Boris Samorodov Subject: Re: foomatic-rip and foo2zjs Date: Fri, 25 Apr 2014 18:41:02 +0200 References: <338BD4B8-F25A-4CC5-A5FA-451C48BB5A5C@lassitu.de> <535A4E09.5000006@passap.ru> <535A8394.4060507@passap.ru> Mail-Followup-To: Boris Samorodov , Stefan Bethke , Robert Backhaus , Freebsd_mailinglist_PORTS Message-ID: <85y4ytpdgx.fsf@iznogoud.viz> User-Agent: Gnus/5.13001 (Ma Gnus v0.10) Emacs/24.4.50 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain Cc: Freebsd_mailinglist_PORTS , Stefan Bethke , Robert Backhaus X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Apr 2014 16:43:05 -0000 On Fri, Apr 25 2014, Boris Samorodov wrote: >> Am 25.04.2014 um 15:20 schrieb Robert Backhaus : >> >>> int fd = mkstemp (LOG_FILE "-XXXXXX.log"); - checked, edited, built - Yup, that's it. Here's the patch: I think the problem is simply that mkstemp(3) requires an argument with /trailing/ Xs, in accordance with POSIX[1]. So the upstream usage of it seems to be wrong. [1] http://pubs.opengroup.org/onlinepubs/009695399/functions/mkstemp.html