On 10/18/07, Rolf Sommerhalder <[EMAIL PROTECTED]> wrote:
> This simple configuration file for hoststated below is syntactically
> correct (and semantically, too), however apparently only if its file
> mode bits are 600 (which makes sense).
>
> Somehow, I ended up with mode bits being set to 644, upon which
> hoststated refused to accept it but throws an "Undefined error: 0".
> It took me a while to figure out that it occurs due to mode bits being
> set somewhat too liberal because the error does not provide any hint.

in usr.sbin/hoststated/parse.y, you can add
errno = EPERM;
to the second to error returns in check_file_secrecy.

i'm not certain what the best errno is, but EPERM is at least a hint.

Reply via email to