Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 6 Mar 2000 13:52:53 -0600
From:      Arindum Mukerji <rmukerji@execpc.com>
To:        Dave Boers <djb@wit389306.student.utwente.nl>
Cc:        freebsd-current@freebsd.org
Subject:   Re: Small bug in chown and chgrp ?
Message-ID:  <20000306135253.A21186@earth.execpc.com>
In-Reply-To: <20000306203608.B26973@relativity.student.utwente.nl>
References:  <20000306203608.B26973@relativity.student.utwente.nl>

next in thread | previous in thread | raw e-mail | index | archive | help
* 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000306135253.A21186>