[OpenAFS] Solaris 10 (x86): pam_afs_session

Simon Wilkinson sxw@inf.ed.ac.uk
Sun, 24 Feb 2008 09:33:23 +0000 (GMT)


On Fri, 22 Feb 2008, Douglas E. Engert wrote:

> Looks like it always returns 0!
> OpenAFS 1.4.6 src/aklog/aklog.c has:
>
> int
> main(int argc, char *argv[])
> {
>     aklog(argc, argv);
>     exit(0);
> }

But, the aklog function itself makes liberal use of exit() in error 
situations. aklog (the binary) certainly returns non-zero when the user 
doesn't have tokens.

S.