From owner-freebsd-questions@FreeBSD.ORG Sat Apr 28 12:30:11 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2F2DC16A401 for ; Sat, 28 Apr 2007 12:30:11 +0000 (UTC) (envelope-from shoesoft@gmx.net) Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mx1.freebsd.org (Postfix) with SMTP id 7C8D313C45E for ; Sat, 28 Apr 2007 12:30:10 +0000 (UTC) (envelope-from shoesoft@gmx.net) Received: (qmail invoked by alias); 28 Apr 2007 12:30:09 -0000 Received: from h081217094222.dyn.cm.kabsi.at (EHLO taxman.pepperland) [81.217.94.222] by mail.gmx.net (mp027) with SMTP; 28 Apr 2007 14:30:09 +0200 X-Authenticated: #16703784 X-Provags-ID: V01U2FsdGVkX1+PfE5HJLOP2D/khIP2so9hFWYb/n7cjlNAqr7TFY io3kotORiAKFWs From: Stefan Ehmann To: freebsd-questions@freebsd.org Date: Sat, 28 Apr 2007 14:30:09 +0200 User-Agent: KMail/1.9.6 References: <200704281416.34783.shoesoft@gmx.net> In-Reply-To: <200704281416.34783.shoesoft@gmx.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200704281430.09514.shoesoft@gmx.net> X-Y-GMX-Trusted: 0 Subject: Re: syslog(3) as user sets errno 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: Sat, 28 Apr 2007 12:30:11 -0000 On Saturday 28 April 2007 14:16:34 Stefan Ehmann wrote: > If a non-privilged program calls syslog(3), after the call, errno is set to > 13 (permission denied). Seems like I jumped the gun. opengroup.org says "The value of errno should only be examined when it is indicated to be valid by a function's return value." So it seems perfectly valid that errno is set. Sorry for the noise.