From: Corinna Vinschen Date: Sat, 28 Feb 2015 13:13:19 +0000 (+0000) Subject: * getfacl.c (usage): Change --all to --access, --dir to --default. X-Git-Tag: cygwin-1_7_35-release~11 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=3da543e5bd2436d9d9c3946da9e8e58c5be88ecc;p=newlib-cygwin.git * getfacl.c (usage): Change --all to --access, --dir to --default. Align text to output of Linux tool. (longopts): Add --access and --default options. --- diff --git a/winsup/utils/ChangeLog b/winsup/utils/ChangeLog index 08ef371a0..ef6d32e7d 100644 --- a/winsup/utils/ChangeLog +++ b/winsup/utils/ChangeLog @@ -1,3 +1,9 @@ +2015-02-28 Corinna Vinschen + + * getfacl.c (usage): Change --all to --access, --dir to --default. + Align text to output of Linux tool. + (longopts): Add --access and --default options. + 2015-02-25 Corinna Vinschen * mkgroup.c (MAX_SID_LEN): Remove. Instead, use SECURITY_MAX_SID_SIZE diff --git a/winsup/utils/getfacl.c b/winsup/utils/getfacl.c index ed1adfce7..0bc484877 100644 --- a/winsup/utils/getfacl.c +++ b/winsup/utils/getfacl.c @@ -1,6 +1,6 @@ /* getfacl.c - Copyright 2000, 2001, 2002, 2003, 2004, 2009, 2011, 2014 Red Hat Inc. + Copyright 2000, 2001, 2002, 2003, 2004, 2009, 2011, 2014, 2015 Red Hat Inc. Written by Corinna Vinschen @@ -69,11 +69,9 @@ usage (FILE * stream) "\n" "Display file and directory access control lists (ACLs).\n" "\n" - " -a, --all display the filename, the owner, the group, and\n" - " the ACL of the file\n" - " -d, --dir display the filename, the owner, the group, and\n" - " the default ACL of the directory, if it exists\n" - " -h, --help output usage information and exit\n" + " -a, --access display the file access control list\n" + " -d, --default display the default access control list\n" + " -h, --help print help explaining the command line options\n" " -n, --noname display user and group IDs instead of names\n" " -V, --version output version information and exit\n" "\n" @@ -113,7 +111,9 @@ usage (FILE * stream) } struct option longopts[] = { + {"access", no_argument, NULL, 'a'}, {"all", no_argument, NULL, 'a'}, + {"default", no_argument, NULL, 'd'}, {"dir", no_argument, NULL, 'd'}, {"help", no_argument, NULL, 'h'}, {"noname", no_argument, NULL, 'n'},