From owner-cvs-libexec Wed Apr 26 15:33:31 1995 Return-Path: cvs-libexec-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id PAA29462 for cvs-libexec-outgoing; Wed, 26 Apr 1995 15:33:31 -0700 Received: (from ache@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id PAA29431 ; Wed, 26 Apr 1995 15:33:19 -0700 Date: Wed, 26 Apr 1995 15:33:19 -0700 From: "Andrey A. Chernov" Message-Id: <199504262233.PAA29431@freefall.cdrom.com> To: CVS-commiters, cvs-libexec Subject: cvs commit: src/libexec/telnetd sys_term.c Sender: cvs-libexec-owner@freebsd.org Precedence: bulk ache 95/04/26 15:33:18 Modified: libexec/telnetd sys_term.c Log: Fix bug: When hostname len > 8, name replaced with dot notation when -u flag not specified (default case). Use _PATH_* for utmp/wtmp. From owner-cvs-libexec Wed Apr 26 15:41:49 1995 Return-Path: cvs-libexec-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id PAA29662 for cvs-libexec-outgoing; Wed, 26 Apr 1995 15:41:49 -0700 Received: from precipice.shockwave.com (precipice.shockwave.com [171.69.108.33]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id PAA29656 ; Wed, 26 Apr 1995 15:41:43 -0700 Received: from localhost (localhost [127.0.0.1]) by precipice.shockwave.com (8.6.11/8.6.9) with SMTP id PAA06247; Wed, 26 Apr 1995 15:41:11 -0700 Message-Id: <199504262241.PAA06247@precipice.shockwave.com> To: "Andrey A. Chernov" cc: CVS-commiters@freefall.cdrom.com, cvs-libexec@freefall.cdrom.com Subject: Re: cvs commit: src/libexec/telnetd sys_term.c In-reply-to: Your message of "Wed, 26 Apr 1995 15:33:19 PDT." <199504262233.PAA29431@freefall.cdrom.com> Date: Wed, 26 Apr 1995 15:41:11 -0700 From: Paul Traina Sender: cvs-libexec-owner@freebsd.org Precedence: bulk Don't you mean 16? #define UT_NAMESIZE 8 #define UT_LINESIZE 8 #define UT_HOSTSIZE 16 struct lastlog { time_t ll_time; char ll_line[UT_LINESIZE]; char ll_host[UT_HOSTSIZE]; }; struct utmp { char ut_line[UT_LINESIZE]; char ut_name[UT_NAMESIZE]; char ut_host[UT_HOSTSIZE]; long ut_time; From: "Andrey A. Chernov" Subject: cvs commit: src/libexec/telnetd sys_term.c ache 95/04/26 15:33:18 Modified: libexec/telnetd sys_term.c Log: Fix bug: When hostname len > 8, name replaced with dot notation when -u flag not specified (default case). Use _PATH_* for utmp/wtmp. From owner-cvs-libexec Wed Apr 26 18:15:37 1995 Return-Path: cvs-libexec-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id SAA04498 for cvs-libexec-outgoing; Wed, 26 Apr 1995 18:15:37 -0700 Received: from sequent.kiae.su (sequent.kiae.su [144.206.136.6]) by freefall.cdrom.com (8.6.10/8.6.6) with SMTP id SAA04473 ; Wed, 26 Apr 1995 18:15:22 -0700 Received: by sequent.kiae.su id AA17169 (5.65.kiae-2 ); Thu, 27 Apr 1995 05:11:41 +0400 Received: by sequent.KIAE.su (UUMAIL/2.0); Thu, 27 Apr 95 05:11:41 +0400 Received: (from ache@localhost) by astral.msk.su (8.6.8/8.6.6) id FAA06691; Thu, 27 Apr 1995 05:07:10 +0400 To: Paul Traina Cc: CVS-commiters@freefall.cdrom.com, cvs-libexec@freefall.cdrom.com References: <199504262241.PAA06247@precipice.shockwave.com> In-Reply-To: <199504262241.PAA06247@precipice.shockwave.com>; from Paul Traina at Wed, 26 Apr 1995 15:41:11 -0700 Message-Id: Organization: Olahm Ha-Yetzirah Date: Thu, 27 Apr 1995 05:07:09 +0400 X-Mailer: Mail/@ [v2.32 FreeBSD] From: "Andrey A. Chernov, Black Mage" X-Class: Fast Subject: Re: cvs commit: src/libexec/telnetd sys_term.c Lines: 13 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Length: 475 Sender: cvs-libexec-owner@freebsd.org Precedence: bulk In message <199504262241.PAA06247@precipice.shockwave.com> Paul Traina writes: >Don't you mean 16? Yes, of course, sorry. There was sizeof(ut_host) instead of MAXHOSTNAMELEN. -- Andrey A. Chernov : And I rest so composedly, /Now, in my bed, ache@astral.msk.su : That any beholder /Might fancy me dead - FidoNet: 2:5020/230.3 : Might start at beholding me, /Thinking me dead. RELCOM Team,FreeBSD Team : E.A.Poe From "For Annie" 1849