syslog(3) as user sets errno

Stefan Ehmann shoesoft at gmx.net
Sat Apr 28 12:30:11 UTC 2007


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.


More information about the freebsd-questions mailing list