What deos getlogin() depend on in DU 4.0D?

From: Brian O'Neill <Brian_ONeill_at_uml.edu>
Date: Thu, 21 May 1998 14:19:56 -0400

I'm working on porting an older shadow password system to Digital UNIX.
for various reasons, I can't make use of C2. The one I'm working with is
John F. Haugh II's version from 1993.

I had it almost working some time ago, but ran in to trouble with LAT
connections, which I no longer need to worry about.

However, I recently went back to work on it, and it seems that when the
programs are installed, even when I haven't ter converted the password
file over, the getlogin() function fails with an EINVAL. The man page
talks about EINVAL, but it seems only to relate to getlogin_r() and
setlogin(), since no parameters are passed to getlogin().

Does anyone know what getlogin() uses for data? They used to use utmp
info, but utmp looks valid to me (who works, and a test program parsed
it fine).

Any ideas?

-- 
======================================================================
Brian O'Neill - Director of Computing, Computer Science (978) 934-3645
University of Massachusetts Lowell         <*>    Brian_ONeill_at_uml.edu
Acting Postmaster
Received on Thu May 21 1998 - 20:21:06 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:37 NZDT