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

From: Alexey Shuvaev <shuvaev_at_physik.uni-wuerzburg.de>
Date: Mon, 18 Jan 2010 22:40:04 +0100
On Wed, Jan 13, 2010 at 08:42:54PM +0100, Ed Schouten wrote:
> Hello everyone,
> 
> I just made various commits to FreeBSD HEAD to remove our old user
> accounting database interface (see utmp(5)) and replace it by the POSIX
> standardized utmpx interface (see getutxent(3)). This means we just got
> rid of some annoyances that are as old as the FreeBSD project itself:
> 
> - Hostnames were originally restricted to 16 bytes, which is way too
>   short for your average hostname generated by your ISP, but also for
>   IPv6 addresses, which are at most 32 + 7 = 39 characters.
> 
> - No support for login sessions not related to TTYs, like ppp(8),
>   ftpd(8) sessions.
> 
> [snip]
> 
> Be sure to give it a try and report any issues. Thanks!
> 
Great work, thanks!

The system is a little bit old already:
~> uname -a
FreeBSD wep4035 9.0-CURRENT FreeBSD 9.0-CURRENT #0 r202285: Thu Jan 14 19:04:21 CET 2010     root_at_wep4035:/usr/obj/usr/src/sys/GENERIC  amd64

but nevetheless, looks like ftpd does not logout (or whatever):
~> ac -p
        ftp                               3305.13
        root                                14.92
        lexx                                63.20
        total                             3383.25

Standard ftpd from base:
 2011  ??  Is     0:00.03 /usr/libexec/ftpd -D -Am

Two shots of w(1), during ftp session from localhost:
[snip]
ftp        -        wep4059.physik.uni-wuerz 11:32AM 10:51 -
ftp        -        wep4059.physik.uni-wuerz 11:40AM 10:43 -
ftp        -        wep4018.physik.uni-wuerz  1:04PM  9:20 -
ftp        -        wep4059.physik.uni-wuerz  1:19PM  9:05 -
ftp        -        wep4016.physik.uni-wuerz  4:36PM  5:48 -
lexx       v2       -                         7:49PM  2:34 xinit
lexx       pts/0    :0.0                      7:50PM     - ftp ftp_at_localhost
ftp        -        localhost                 7:51PM  2:33 -
ftp        -        localhost                 7:52PM  2:31 -
ftp        -        localhost                10:24PM     - -
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ftp        -        wep4019.physik.uni-wuerz  7:01PM  3:22 -
lexx       pts/1    :0.0                      8:03PM    34 ssh wep4059
lexx       pts/2    :0.0                      8:19PM     - w


and after closing it:
[snip]
ftp        -        wep4059.physik.uni-wuerz 11:32AM 10:52 -
ftp        -        wep4059.physik.uni-wuerz 11:40AM 10:44 -
ftp        -        wep4018.physik.uni-wuerz  1:04PM  9:21 -
ftp        -        wep4059.physik.uni-wuerz  1:19PM  9:06 -
ftp        -        wep4016.physik.uni-wuerz  4:36PM  5:49 -
lexx       v2       -                         7:49PM  2:35 xinit
lexx       pts/0    :0.0                      7:50PM     - tcsh
ftp        -        localhost                 7:51PM  2:34 -
ftp        -        localhost                 7:52PM  2:32 -
ftp        -        localhost                10:24PM     1 -
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ftp        -        wep4019.physik.uni-wuerz  7:01PM  3:23 -
lexx       pts/1    :0.0                      8:03PM    35 ssh wep4059
lexx       pts/2    :0.0                      8:19PM     - w
lexx       pts/3    :0.0                     10:25PM     - vi after
ftp        -        wep4059.physik.uni-wuerz 10:25PM     - -

Sorry if it is already fixed,
Alexey.
Received on Mon Jan 18 2010 - 21:02:43 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:00 UTC