From owner-freebsd-ports@FreeBSD.ORG Fri Apr 25 22:16:13 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 5248A67F for ; Fri, 25 Apr 2014 22:16:13 +0000 (UTC) Received: from mail-ob0-x234.google.com (mail-ob0-x234.google.com [IPv6:2607:f8b0:4003:c01::234]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 16F991E49 for ; Fri, 25 Apr 2014 22:16:13 +0000 (UTC) Received: by mail-ob0-f180.google.com with SMTP id wm4so4911557obc.39 for ; Fri, 25 Apr 2014 15:16:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:content-type; bh=X/5o3Lw53Ur273QQBaiuyAyepBFf4qlw9EPhHWnxejE=; b=vZZyGIOYBt9lrurvwz4j/RCHZv6laYaxS5ZJc/TizzSxuivk3o9QA9Rhc6+G23q4RR mYRScP58nuCtLhMavcrMx2ECqbJ9D/gn5tpHhwftpFFKv7zdVPUuWRqidBjUfhMZ5WkU A78FD9DZwK5hpSVVTv6d9eY8sGoTZKQJzSGrTVwWfj/op3PC2Hpq3eONzubS035MQ5yC ZeobeKHb3B21DUJJBbY/W1yCpqlbQevvR9ebanjbRnJWv9P/AHh7j7pAFnBgBGbG9C9q ZDKGg0B/Rv7eK77TUCOOkLerGG/0EhUHU2QNz4y4g8RBfVTzhEKyuu+bDP+OOpa2Jn+0 Y5aA== MIME-Version: 1.0 X-Received: by 10.60.176.9 with SMTP id ce9mr4583419oec.55.1398464171860; Fri, 25 Apr 2014 15:16:11 -0700 (PDT) Sender: robbak@gmail.com Received: by 10.76.174.9 with HTTP; Fri, 25 Apr 2014 15:16:11 -0700 (PDT) In-Reply-To: <85y4ytpdgx.fsf@iznogoud.viz> References: <338BD4B8-F25A-4CC5-A5FA-451C48BB5A5C@lassitu.de> <535A4E09.5000006@passap.ru> <535A8394.4060507@passap.ru> <85y4ytpdgx.fsf@iznogoud.viz> Date: Sat, 26 Apr 2014 08:16:11 +1000 X-Google-Sender-Auth: q_hF9Q-EWcfFGrg6tmrfIHciB1U Message-ID: Subject: Re: foomatic-rip and foo2zjs From: Robert Backhaus To: Boris Samorodov , Stefan Bethke , Robert Backhaus , Freebsd_mailinglist_PORTS Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.17 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 22:16:13 -0000 Yes, sorry. I got this wrong. The fix upstream has been to stop using mkstemp, and switch to using sprintf directly. http://bzr.linuxfoundation.org/loggerhead/openprinting/cups-filters/revision/7196 On 26 April 2014 02:41, Wolfgang Jenkner wrote: > 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 > _______________________________________________ > freebsd-ports@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-ports > To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org" >