Date: Tue, 21 Dec 1999 00:22:40 +0100 From: Udo Erdelhoff <ue@nathan.ruhr.de> To: stable@FreeBSD.ORG Cc: "Forrest W. Christian" <forrestc@iMach.com> Subject: Re: edquota problem Message-ID: <19991221002240.A1273@nathan.ruhr.de> In-Reply-To: <Pine.BSF.3.96.991220140952.16460B-100000@workhorse.iMach.com>; from Forrest W. Christian on Mon, Dec 20, 1999 at 02:17:07PM -0700 References: <99Dec21.070526est.40331@border.alcanet.com.au> <Pine.BSF.3.96.991220140952.16460B-100000@workhorse.iMach.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Dec 20, 1999 at 02:17:07PM -0700, Forrest W. Christian wrote: > 0plus-num What happend to the rule that a username must not begin with a digit? Sometimes, I do miss the good old days :) >>IMHO, checking the parameter against the password file first > This seems the MOST reasonable way to do this. What about systems with a lot of users and/or centralized databases (NIS and friends)? I'm afraid that this change may cause unneccessary delays. I'd prefer to do a "is this an uid range"-check first and the "could this be a username"-check second. In other words, along these lines: if (((cp = strchr(*argv, '-')) != NULL) && (strspn(*argv, "0123456789") == (size_t)(cp - *argv)) && (strspn(++cp, "0123456789") == strlen(*argv) - (size_t)(cp - *argv)) && (getpwnam (*argv) == NULL)) { /* uid range entered, use it */ } else { /* Not an uid range */ } Comments? /s/Udo -- "After the night I've had, on top of the year that I've had, what I really want is a nice vile kill. But since that's currently off the menu, I'll have to settle for a few stiff drinks." To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19991221002240.A1273>