From owner-freebsd-stable Mon Dec 20 10:57:48 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 263D714C49 for ; Mon, 20 Dec 1999 10:57:44 -0800 (PST) (envelope-from cao@milf18.bus.net) Received: (from cao@localhost) by milf18.bus.net (8.8.8/8.8.8) id NAA20571; Mon, 20 Dec 1999 13:57:36 -0500 (EST) (envelope-from cao) Date: Mon, 20 Dec 1999 13:57:36 -0500 From: "Chuck O'Donnell" To: "Forrest W. Christian" Cc: stable@FreeBSD.ORG Subject: Re: edquota problem Message-ID: <19991220135736.B20394@bus.net> References: <19991220082737.A19220@bus.net> 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 Mon, Dec 20, 1999 at 11:16:12AM -0700 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, Dec 20, 1999 at 11:16:12AM -0700, Forrest W. Christian wrote: > On Mon, 20 Dec 1999, Chuck O'Donnell wrote: > > > did you try `edquota -- 2-xhibit' ? > > No, but now I did and it doesn't help. > > Specifically, I used: > > edquota -- -p usrtmplt 2-xhibit > edquota -p usrtmplt -- 2-xhibit > > I think this problem really only shows up when you are using a prototype > user ala -p. I gotcha. At first look I thought it was a getopt(3) problem, but that can't be anyway since the username doesn't start with a `-'. I looked at edquota.c and you're right, if the username supplied to edquota starts with a digit and contains a `-', it is interpreted as a range. I'm not sure what the best answer is for the long term. Would a perl one-liner help the immediate need? e.g., edquota -p usrtmpl `perl -e '$u=getpwnam($ARGV[0]);print "$u-$u"' 2-xhibit` good luck, 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