From owner-freebsd-stable Sun Dec 19 21:13:37 1999 Delivered-To: freebsd-stable@freebsd.org Received: from workhorse.iMach.com (workhorse.iMach.com [206.127.77.89]) by hub.freebsd.org (Postfix) with ESMTP id C183C151A2 for ; Sun, 19 Dec 1999 21:13:35 -0800 (PST) (envelope-from forrestc@workhorse.iMach.com) Received: from localhost (forrestc@localhost) by workhorse.iMach.com (8.8.8/8.8.8) with SMTP id WAA10817 for ; Sun, 19 Dec 1999 22:06:19 -0700 (MST) Date: Sun, 19 Dec 1999 22:06:19 -0700 (MST) From: "Forrest W. Christian" To: stable@freebsd.org Subject: edquota problem Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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. - 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