From 2b3ddfcd268e19b5c1bc342d140c83cbde93a680 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Sun, 15 Dec 2002 10:09:35 +0000 Subject: * setfacl.c (main): Place a single : after other and mask. * getfacl.c (getaclentry): Allow both : and :: for other and mask. (main): Remove extraneous break. --- winsup/utils/setfacl.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'winsup/utils/setfacl.c') diff --git a/winsup/utils/setfacl.c b/winsup/utils/setfacl.c index c497bf9..4dffcd7 100644 --- a/winsup/utils/setfacl.c +++ b/winsup/utils/setfacl.c @@ -165,8 +165,9 @@ getaclentry (action_t action, char *c, aclent_t *ace) if (c2) c = c2 + 1; } - else if (*c++ != ':') - return FALSE; + /* FIXME: currently allow both :: and : */ + else if (*c == ':') + c++; if (action == Delete) { if ((ace->a_type & (CLASS_OBJ | OTHER_OBJ)) @@ -509,7 +510,6 @@ main (int argc, char **argv) usage (stderr); return 1; } - break; if (! getaclentries (Set, optarg, acls, &aclidx)) { fprintf (stderr, "%s: illegal acl entries\n", prog_name); -- cgit v1.1