Date: Mon, 20 Dec 1999 13:57:36 -0500 From: "Chuck O'Donnell" <cao@bus.net> To: "Forrest W. Christian" <forrestc@iMach.com> Cc: stable@FreeBSD.ORG Subject: Re: edquota problem Message-ID: <19991220135736.B20394@bus.net> In-Reply-To: <Pine.BSF.3.96.991220111500.15765A-100000@workhorse.iMach.com>; from Forrest W. Christian on Mon, Dec 20, 1999 at 11:16:12AM -0700 References: <19991220082737.A19220@bus.net> <Pine.BSF.3.96.991220111500.15765A-100000@workhorse.iMach.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19991220135736.B20394>