Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKen Brown <kbrown@cornell.edu>2018-07-23 17:10:03 +0300
committerCorinna Vinschen <corinna@vinschen.de>2018-07-23 18:31:09 +0300
commitb610a9cf29f6fb53c3dd8595acb911960a09ce96 (patch)
tree845c6a1c68d95fb08bd3d1c2963fd93d7affad54 /winsup/utils/setfacl.c
parent46ba1675c457324b0eeef4670a09101ef3f34c50 (diff)
getfacl and setfacl: Align with Linux
Make getfacl print two colons instead of one after "other" and "mask". Change the help text for setfacl to indicate that there can be either one colon or two.
Diffstat (limited to 'winsup/utils/setfacl.c')
-rw-r--r--winsup/utils/setfacl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/winsup/utils/setfacl.c b/winsup/utils/setfacl.c
index 373265bf0..2577ab776 100644
--- a/winsup/utils/setfacl.c
+++ b/winsup/utils/setfacl.c
@@ -119,7 +119,7 @@ getaclentry (action_t action, char *c, aclent_t *ace)
}
else if (!(ace->a_type & (USER_OBJ | GROUP_OBJ)))
{
- /* Mask and other entries may contain an extra colon. */
+ /* Mask and other entries may contain one or two colons. */
if (*c == ':')
++c;
}
@@ -558,8 +558,8 @@ usage (FILE *stream)
" u[ser]:uid:perm\n"
" g[roup]::perm\n"
" g[roup]:gid:perm\n"
-" m[ask]:perm\n"
-" o[ther]:perm\n"
+" m[ask]:[:]perm\n"
+" o[ther]:[:]perm\n"
"\n"
" Default entries are like the above with the additional default identifier.\n"
" For example: \n"