From owner-freebsd-stable Mon Dec 20 5:27:55 1999 Delivered-To: freebsd-stable@freebsd.org Received: from milf18.bus.net (milf18.bus.net [207.41.25.18]) by hub.freebsd.org (Postfix) with ESMTP id AC7BD15030 for ; Mon, 20 Dec 1999 05:27:51 -0800 (PST) (envelope-from cao@milf18.bus.net) Received: (from cao@localhost) by milf18.bus.net (8.8.8/8.8.8) id IAA19270; Mon, 20 Dec 1999 08:27:37 -0500 (EST) (envelope-from cao) Date: Mon, 20 Dec 1999 08:27:37 -0500 From: "Chuck O'Donnell" To: "Forrest W. Christian" Cc: stable@FreeBSD.ORG Subject: Re: edquota problem Message-ID: <19991220082737.A19220@bus.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii User-Agent: Mutt/0.96.3i In-Reply-To: ; from Forrest W. Christian on Sun, Dec 19, 1999 at 10:06:19PM -0700 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sun, Dec 19, 1999 at 10:06:19PM -0700, Forrest W. Christian wrote: > I'm not sure exactly what list this should really be on. Please enlighten > me for next time. > > I just got nailed by an "implementation detail" in edquota. > > Specifically the code which determines whether the parameter is a username > or a range of uids only checks for a) whether the first character of the > parameter is a number and b) whether there is a dash in the parameter. > > Of course, I have a system with a user with the username of 2-xhibit (no I > can't get the user to change), which makes edquota think that that > username parameter is actually a uid range which it interprets as meaning > the range of 2-0, which it errors out on. > > IMHO, I think that either fixing this to actually check to see if the > parameter is ONLY numbers and a single hyphen would be a good idea. Of > course, this then doesn't permit usernames of like 10-4 or something like > that. > > The other option would be to check the parameter FIRST against the > password file and if the parameter is a valid username, then use it as a > username instead of a range. > > Alternatively, providing a switch to force one way or the other would be > ok also. > > I would patch the code and submit a fix if I knew what people thought the > best way to fix this is, or if even people think that it should be changed > at all. did you try `edquota -- 2-xhibit' ? chuck > > - Forrest W. Christian (forrestc@imach.com) KD7EHZ > ---------------------------------------------------------------------- > iMach, Ltd., P.O. Box 5749, Helena, MT 59604 http://www.imach.com > Solutions for your high-tech problems. (406)-442-6648 > ---------------------------------------------------------------------- > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-stable" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message