[hackers] [sbase] chmod, chown: remove redundant flag || Connor Lane Smith

From: <hg_AT_suckless.org>
Date: Fri, 25 May 2012 22:52:06 +0200 (CEST)

changeset: 138:dfc51b3c5b38
tag: tip
user: Connor Lane Smith <cls_AT_lubutu.com>
date: Fri May 25 21:52:01 2012 +0100
files: chmod.1 chmod.c chown.1 chown.c
description:
chmod, chown: remove redundant flag


diff -r 0d3170184f48 -r dfc51b3c5b38 chmod.1
--- a/chmod.1 Fri May 25 21:51:24 2012 +0100
+++ b/chmod.1 Fri May 25 21:52:01 2012 +0100
_AT_@ -3,12 +3,12 @@
 chmod \- change file mode
 .SH SYNOPSIS
 .B chmod
-.RB [ \-Rr ]
+.RB [ \-r ]
 .I octal
 .RI [ file ...]
 .P
 .B chmod
-.RB [ \-Rr ]
+.RB [ \-r ]
 .RB [ ugoa ]*[ +-= ][ rwxs ]*
 .RI [ file ...]
 .SH DESCRIPTION
_AT_@ -65,7 +65,7 @@
 .PD
 .SH OPTIONS
 .TP
-.B \-R, \-r
+.B \-r
 change directory mode recursively.
 .SH SEE ALSO
 .IR chmod (2)
diff -r 0d3170184f48 -r dfc51b3c5b38 chmod.c
--- a/chmod.c Fri May 25 21:51:24 2012 +0100
+++ b/chmod.c Fri May 25 21:52:01 2012 +0100
_AT_@ -18,9 +18,8 @@
 {
         char c;
 
- while((c = getopt(argc, argv, "Rr")) != -1)
+ while((c = getopt(argc, argv, "r")) != -1)
                 switch(c) {
- case 'R':
                 case 'r':
                         rflag = true;
                         break;
_AT_@ -28,7 +27,7 @@
                         exit(EXIT_FAILURE);
                 }
         if(optind == argc)
- eprintf("usage: %s [-Rr] mode [file...]\n", argv[0]);
+ eprintf("usage: %s [-r] mode [file...]\n", argv[0]);
 
         parsemode(argv[optind++]);
         for(; optind < argc; optind++)
diff -r 0d3170184f48 -r dfc51b3c5b38 chown.1
--- a/chown.1 Fri May 25 21:51:24 2012 +0100
+++ b/chown.1 Fri May 25 21:52:01 2012 +0100
_AT_@ -3,7 +3,7 @@
 chown \- change file ownership
 .SH SYNOPSIS
 .B chown
-.RB [ \-Rr ]
+.RB [ \-r ]
 .RI [ owner ][: group ]
 .RI [ file ...]
 .SH DESCRIPTION
_AT_@ -11,7 +11,7 @@
 changes the user or group ownership for the given files.
 .SH OPTIONS
 .TP
-.B \-R, \-r
+.B \-r
 change directory ownership recursively.
 .SH SEE ALSO
 .IR chown (2)
diff -r 0d3170184f48 -r dfc51b3c5b38 chown.c
--- a/chown.c Fri May 25 21:51:24 2012 +0100
+++ b/chown.c Fri May 25 21:52:01 2012 +0100
_AT_@ -19,9 +19,8 @@
 {
         char c, *owner, *group;
 
- while((c = getopt(argc, argv, "Rr")) != -1)
+ while((c = getopt(argc, argv, "r")) != -1)
                 switch(c) {
- case 'R':
                 case 'r':
                         rflag = true;
                         break;
_AT_@ -29,7 +28,7 @@
                         exit(EXIT_FAILURE);
                 }
         if(optind == argc)
- eprintf("usage: %s [-Rr] [owner][:group] [file...]\n", argv[0]);
+ eprintf("usage: %s [-r] [owner][:group] [file...]\n", argv[0]);
         owner = argv[optind++];
         if((group = strchr(owner, ':')))
                 *group++ = '\0';
Received on Fri May 25 2012 - 22:52:06 CEST

This archive was generated by hypermail 2.3.0 : Fri May 25 2012 - 23:00:11 CEST