On Fri, 25 Jun 1999, Jan Harkes wrote:
> On Fri, Jun 25, 1999 at 05:39:11PM +0000, Claudio Di-Martino wrote:
> >
> > strcpy(w.ut_line, CONSOLE);
> > while (!found && (u = getutline(&w))) {
> > pw = getpwnam(u->ut_name);
> > if (pw) found = (user == pw->pw_uid);
> > }
> >
> > basically the utline found by getutline returns LOGIN as the ut_name.
> > LOGIN isn't found in /etc/passwd so it gets stuck in the loop...
>
> But getutline should at `some' point return a NULL pointer (when it has
> read through all lines in the utmp file. Could this be a corrupt utmp
> file? You can make AuthorizedUser return without calling ConsoleUser by
> giving the following commandline option to venus when it is started.
The utmp file doesn't seem to be corrupted.
> venus -primaryuser <your_uid>
This indeed prevents venus from looping, but still there must be a bug in
the getutline that gets linked on my system...
> Jan
Ciao!!!
Claudio Di Martino [EMAIL PROTECTED]