From owner-freebsd-current Thu Jan 14 10:16:35 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA10746 for freebsd-current-outgoing; Thu, 14 Jan 1999 10:16:35 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from scientia.demon.co.uk (scientia.demon.co.uk [212.228.14.13]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id KAA10741 for ; Thu, 14 Jan 1999 10:16:31 -0800 (PST) (envelope-from ben@scientia.demon.co.uk) Received: from ben by scientia.demon.co.uk with local (Exim 2.10 #3) id 100rIh-0004Qo-00 for freebsd-current@freebsd.org; Thu, 14 Jan 1999 18:15:23 +0000 Date: Thu, 14 Jan 1999 18:15:23 +0000 From: Ben Smithurst To: freebsd-current@FreeBSD.ORG Subject: minor nit: user name length in sa(8) Message-ID: <19990114181523.A16865@scientia.demon.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.1i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Looks like sa(8) needs to be updated to recognize 16 character user names. (It seems odd that this hasn't been fixed yet, is there some reason other than oversight why not?) --- src/usr.sbin/sa/usrdb.c~ Thu Jan 14 17:51:10 1999 +++ src/usr.sbin/sa/usrdb.c Thu Jan 14 18:00:07 1999 @@ -35,6 +35,7 @@ #include #include +#include #include #include #include @@ -236,7 +237,7 @@ while (rv == 0) { ui = (struct userinfo *) data.data; - printf("%-8s %9qu ", + printf("%-*s %9qu ", MAXLOGNAME - 1, user_from_uid(ui->ui_uid, 0), ui->ui_calls); t = (double) (ui->ui_utime + ui->ui_stime) / -- Ben Smithurst ben@scientia.demon.co.uk send a blank message to ben+pgp@scientia.demon.co.uk for PGP key To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message