From owner-freebsd-current Mon Mar 6 11:52:59 2000 Delivered-To: freebsd-current@freebsd.org Received: from mailgw00.execpc.com (mailgw00.execpc.com [169.207.1.78]) by hub.freebsd.org (Postfix) with ESMTP id 5A1C537BC3C for ; Mon, 6 Mar 2000 11:52:55 -0800 (PST) (envelope-from rmukerji@execpc.com) Received: from earth.execpc.com (rmukerji@earth.execpc.com [169.207.16.1]) by mailgw00.execpc.com (8.9.1) id NAA02254; Mon, 6 Mar 2000 13:52:54 -0600 Received: (from rmukerji@localhost) by earth.execpc.com (8.9.0) id NAA28940; Mon, 6 Mar 2000 13:52:54 -0600 (CST) Date: Mon, 6 Mar 2000 13:52:53 -0600 From: Arindum Mukerji To: Dave Boers Cc: freebsd-current@freebsd.org Subject: Re: Small bug in chown and chgrp ? Message-ID: <20000306135253.A21186@earth.execpc.com> References: <20000306203608.B26973@relativity.student.utwente.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre3us In-Reply-To: <20000306203608.B26973@relativity.student.utwente.nl> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG * Dave Boers (djb@relativity.student.utwente.nl) [000306 13:36]: > chown: illegal option -- v > usage: chown [-R [-H | -L | -P]] [-f] [-h] [-v] owner[:group] file ... > chown [-R [-H | -L | -P]] [-f] [-h] [-v] :group file ... > chgrp [-R [-H | -L | -P]] [-f] [-h] [-v] group file ... > A simple patch: --- chown.c.1.14 Sat Nov 27 13:25:07 1999 +++ chown.c Mon Mar 6 13:42:41 2000 @@ -86,7 +86,7 @@ ischown = myname[2] == 'o'; Hflag = Lflag = Pflag = hflag = 0; - while ((ch = getopt(argc, argv, "HLPRfh")) != -1) + while ((ch = getopt(argc, argv, "HLPRfhv")) != -1) switch (ch) { case 'H': Hflag = 1; @@ -108,6 +108,9 @@ break; case 'h': hflag = 1; + break; + case 'v': + vflag = 1; break; case '?': default: Regards, -- Arindum To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message