This is the mail archive of the
cygwin-cvs@cygwin.com
mailing list for the Cygwin project.
[newlib-cygwin] setfacl --mask/--no-mask really don't need an argument
- From: Corinna Vinschen <corinna at sourceware dot org>
- To: cygwin-cvs at sourceware dot org
- Date: 20 Dec 2015 12:15:30 -0000
- Subject: [newlib-cygwin] setfacl --mask/--no-mask really don't need an argument
https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=f5ad6fbb66f4abdf57b75f22017d3d70c56f27f8
commit f5ad6fbb66f4abdf57b75f22017d3d70c56f27f8
Author: Houder <houder@xs4all.nl>
Date: Sun Dec 20 13:14:34 2015 +0100
setfacl --mask/--no-mask really don't need an argument
* setfacl.cc (longopts): Drop accidentally requiring an argument to
the --mask and --no-mask options.
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diff:
---
winsup/utils/ChangeLog | 5 +++++
winsup/utils/setfacl.c | 4 ++--
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/winsup/utils/ChangeLog b/winsup/utils/ChangeLog
index fa910e8..be96209 100644
--- a/winsup/utils/ChangeLog
+++ b/winsup/utils/ChangeLog
@@ -1,3 +1,8 @@
+2015-12-20 Houder <houder@xs4all.nl>
+
+ * setfacl.cc (longopts): Drop accidentally requiring an argument to
+ the --mask and --no-mask options.
+
2015-12-19 Houder <houder@xs4all.nl>
* setfacl.cc (opts): Add colon to x option.
diff --git a/winsup/utils/setfacl.c b/winsup/utils/setfacl.c
index a88fbcb..9d4b75d 100644
--- a/winsup/utils/setfacl.c
+++ b/winsup/utils/setfacl.c
@@ -626,8 +626,8 @@ struct option longopts[] = {
{"file", required_argument, NULL, 'f'},
{"remove-default", no_argument, NULL, 'k'},
{"modify", required_argument, NULL, 'm'},
- {"no-mask", required_argument, NULL, 'n'},
- {"mask", required_argument, NULL, '\n'},
+ {"no-mask", no_argument, NULL, 'n'},
+ {"mask", no_argument, NULL, '\n'},
{"replace", no_argument, NULL, 'r'},
{"substitute", required_argument, NULL, 's'},
{"help", no_argument, NULL, 'h'},