From owner-freebsd-questions@FreeBSD.ORG Sun Dec 28 03:58:25 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 40D821065670 for ; Sun, 28 Dec 2008 03:58:25 +0000 (UTC) (envelope-from kline@thought.org) Received: from aristotle.thought.org (ns1.thought.org [209.180.213.210]) by mx1.freebsd.org (Postfix) with ESMTP id F06EE8FC0C for ; Sun, 28 Dec 2008 03:58:24 +0000 (UTC) (envelope-from kline@thought.org) Received: from thought.org (tao.thought.org [10.47.0.250]) (authenticated bits=0) by aristotle.thought.org (8.14.2/8.14.2) with ESMTP id mBS3wsUM074026; Sat, 27 Dec 2008 19:58:54 -0800 (PST) (envelope-from kline@thought.org) Received: by thought.org (nbSMTP-1.00) for uid 1002 kline@thought.org; Sat, 27 Dec 2008 19:58:20 -0800 (PST) Date: Sat, 27 Dec 2008 19:58:19 -0800 From: Gary Kline To: Mitar Message-ID: <20081228035819.GD82585@thought.org> References: <200812271517.46409.fbsd.questions@rachie.is-a-geek.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i X-Organization: Thought Unlimited. Public service Unix since 1986. X-Of_Interest: With 22 years of service to the Unix community. X-Spam-Status: No, score=-4.4 required=3.6 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.2.3 X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on aristotle.thought.org Cc: Mel , freebsd-questions@freebsd.org Subject: Re: Open with O_APPEND fails X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Dec 2008 03:58:25 -0000 On Sun, Dec 28, 2008 at 04:16:41AM +0100, Mitar wrote: > Hi! > > On Sun, Dec 28, 2008 at 1:17 AM, Mel > wrote: > > 15 fd = open(fname, O_WRONLY|O_APPEND); > > Try only with O_APPEND, without O_WRONLY. > > I have just found a bug report about that: > > https://issues.apache.org/bugzilla/show_bug.cgi?id=45923 > > But the question remains: why this fails? It works on Linux, as it is > seen from bug report it works also on FreeBSD 6.x, why it does not > work anymore on FreeBSD 7.x? Is it correct that it does not work? I > have not found anywhere written that O_WRONLY should be specified with > O_APPEND. > Just a thought, but have you figured out what the value of that OR is? then check the 6.x and 7.x src. gary > > Mitar > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" -- Gary Kline kline@thought.org http://www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org The 2.17a release of Jottings: http://jottings.thought.org/index.php