From owner-freebsd-questions Mon Nov 17 05:26:27 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id FAA10515 for questions-outgoing; Mon, 17 Nov 1997 05:26:27 -0800 (PST) (envelope-from owner-freebsd-questions) Received: from BIGFUN.vwcom.com (BIGFUN.vwcom.com [151.197.101.21]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id FAA10510 for ; Mon, 17 Nov 1997 05:26:25 -0800 (PST) (envelope-from bmc@WillsCreek.COM) Received: from WillsCreek.COM (gw.willscreek.com [151.197.101.46]) by BIGFUN.vwcom.com (8.8.6/8.8.6) with ESMTP id IAA02061 for ; Mon, 17 Nov 1997 08:21:35 -0500 (EST) Received: from current.willscreek.com (current.willscreek.com [172.16.87.1]) by WillsCreek.COM (8.8.5/8.8.5) with ESMTP id IAA23652 for ; Mon, 17 Nov 1997 08:26:22 -0500 (EST) Received: (from bmc@localhost) by current.willscreek.com (8.8.5/8.8.5) id IAA09345; Mon, 17 Nov 1997 08:26:20 -0500 (EST) Date: Mon, 17 Nov 1997 08:26:20 -0500 (EST) Message-Id: <199711171326.IAA09345@current.willscreek.com> From: Brian Clapper MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: questions@FreeBSD.ORG Subject: Re: username length In-Reply-To: <13749602@toto.iv> X-Mailer: VM 6.23 under Emacs 19.34.1 Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Studded wrote: > A while ago there was a discussion about moving the ability to > work with more than 8 character usernames in the 2.2 branch. I decided to > give it a go on my test system, and it's working fine. I thought I'd pass > this info on in case anyone else is interested in trying it. [ snip ] > So far everything seems pretty happy with the 16 character names. > The ps has a problem with lining things up, and gnuls truncates the names > to 8. Anyone have a suggestion about gnuls? I really like it, but not > seeing the whole uid/gid is getting confusing. :) I maintain the gnuls port. The offending code would seem to be around line 2121 in "ls.c": if (numeric_users) sprintf (p, "%-8u ", (unsigned int) f->stat.st_uid); else sprintf (p, "%-8.8s ", getuser (f->stat.st_uid)); You might try doing a 'make extract' and 'make patch' on the gnuls port, then modifying that section of code to look like this: if (numeric_users) sprintf (p, "%-*u ", MAXLOGNAME - 2, (unsigned int) f->stat.st_uid); else sprintf (p, "%-*.*s ", MAXLOGNAME - 2, MAXLOGNAME - 2, getuser (f->stat.st_uid)); Then rebuild the port. If it works, let me know, and I'll add it to the list of patches in the port; better yet, just send me a `diff -c' on "ls.c". I'd try it here, but it wouldn't prove anything, since I'm using stock 2.2.2-RELEASE on my systems. ----- Brian Clapper, bmc@WillsCreek.COM, http://WWW.WillsCreek.COM/ An NT server can be run by an idiot, and usually is. - Tom Holub (Posted to comp.infosystems.www.servers.unix on 03 Sep 1997)