HEADS UP: <utmp.h> gone. All welcome <utmpx.h>.

Ed Schouten ed at 80386.nl
Tue Feb 9 07:37:16 UTC 2010


* Vincent Poy <vincepoy at gmail.com> wrote:
> With utmp, it will always show the pty for ssh/rlogin/telnet sessions and
> ftp when it's a ftp session as:
> 
> user1       ftp      10.12.21.156           Fri Aug 20 13:17 - 13:17 (00:00)
> 
> user1       ttyp0  10.12.21.156           Fri Aug 20 13:16 - 13:17 (00:00)
> 
> while the new format is:
>  user1                10.12.21.156            Wed Feb  3 14:22 - 14:22
> (00:00)
>  user1      pts/12  10.12.21.156            Tue Feb  2 20:47 - 20:48
> (00:00)

Fixed. It should now use ftp again.

> So it's really only user based ftp sessions aren't showing up with the ftp
> part in the utmpx output.

This is because utmpx doesn't work nicely in combination with chroot().
On the long term we could look at fixing it, but for now I'm not going
to spend any time fixing that.

-- 
 Ed Schouten <ed at 80386.nl>
 WWW: http://80386.nl/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20100209/06fc7b2b/attachment.pgp


More information about the freebsd-current mailing list