From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Schwab Subject: Re: Are ut_user and ut_host in struct utmp NUL-terminated? Date: Mon, 13 Aug 2018 14:44:25 +0200 Message-ID: References: <11742781-3872-5bbf-55d6-8ce597f21e53@redhat.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org In-Reply-To: <11742781-3872-5bbf-55d6-8ce597f21e53@redhat.com> (Florian Weimer's message of "Mon, 13 Aug 2018 14:10:52 +0200") To: Florian Weimer Cc: GNU C Library , "linux-man@vger.kernel.org" List-Id: linux-man@vger.kernel.org On Aug 13 2018, Florian Weimer wrote: > Can ut_user be exactly UT_NAMESIZE bytes long? Or is it necessary to set > aside a byte with the NUL terminator? login from util-linux doesn't null terminate. Andreas. -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."