This is the mail archive of the libc-alpha@cygnus.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

ut_id questions


There seems to absolutely no convention for what values to put in
ut_id in the presence of /dev/pts.

In a quick survey, ssh uses the last two characters of ut_line;
bsd-style login uses everything after the fourth character (which
happens to be the /); telnetd uses everything after the third character
(thus beginning with the /).  PAM uses the last four characters.

Are any of these 'right'?

Also, utmp(5) claims that the ut_id should be 'p' followed by the
number - which seems like a really bad idea, since ttyp0 and pts/0
would then have the same ut_id.

Dan

/--------------------------------\  /--------------------------------\
|       Daniel Jacobowitz        |__|     CMU, CS class of 2002      |
|   Debian GNU/Linux Developer    __   Part-Time Systems Programmer  |
|         dan@debian.org         |  |        drow@cs.cmu.edu         |
\--------------------------------/  \--------------------------------/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]