Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 Apr 2007 14:30:09 +0200
From:      Stefan Ehmann <shoesoft@gmx.net>
To:        freebsd-questions@freebsd.org
Subject:   Re: syslog(3) as user sets errno
Message-ID:  <200704281430.09514.shoesoft@gmx.net>
In-Reply-To: <200704281416.34783.shoesoft@gmx.net>
References:  <200704281416.34783.shoesoft@gmx.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200704281430.09514.shoesoft>