Date: Mon, 1 Jun 1998 01:47:05 -0700 (PDT) From: Atsushi Murai <amurai@FreeBSD.ORG> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-lib@FreeBSD.ORG, cvs-usrbin@FreeBSD.ORG Subject: cvs commit: src/lib/libutil libutil.h logwtmp.c src/usr.bin/login login.c Message-ID: <199806010847.BAA12337@freefall.freebsd.org>
index | next in thread | raw e-mail
amurai 1998/06/01 01:47:05 PDT
Modified files:
lib/libutil libutil.h logwtmp.c
usr.bin/login login.c
Log:
Trim a domain part for wtmp as same as showed by "netstat -r".
Here is a some example for avoiding a confusion.
It asssumes a logged host domain is "spec.co.jp". All
example is longer than UT_HOSTNAMELEN value.
1) turbo.tama.spec.co.jp: 192.19.0.2 -> trubo.tama
2) turbo.tama.foo.co.jp : 192.19.0.2 -> 192.19.0.2
3) specgw.spec.co.jp : 202.32.13.1 -> specgw
Submitted by: Atsushi Murai <amurai@spec.co.jp>
Revision Changes Path
1.15 +2 -2 src/lib/libutil/libutil.h
1.6 +40 -1 src/lib/libutil/logwtmp.c
1.35 +5 -1 src/usr.bin/login/login.c
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199806010847.BAA12337>
