Subject: Re: PR11150 on login_getclass()
To: None <itojun@iijlab.net>
From: enami tsugutomo <enami@sm.sony.co.jp>
List: tech-userlevel
Date: 10/11/2000 10:21:22
>         for (res = 0; classfiles[res]; ++res)
>                 if (secure_path(classfiles[res]) < 0)
> -                       return (0);
> +                       if ( errno != ENOENT )
> +                               return (0);

Since the secure_path(3) man page doesn't mention about errno, we
shouldn't rely on it.  We should do l?stat(2) by hand unless we change
the spec. of secure_path(3).

There is no guarantee that syslog(3) never modifies the errno nor sets
it to ENOENT, isn't there?

enami.