This is the mail archive of the
cygwin-patches@cygwin.com
mailing list for the Cygwin project.
[Patch] getfacl -n layout not upto spec.
- From: Bas van Gompel <cygwin-patches dot buzz at bavag dot tmfweb dot nl>
- To: cygwin-patches at cygwin dot com
- Date: Wed, 15 Sep 2004 04:31:32 +0200 (MET DST)
- Subject: [Patch] getfacl -n layout not upto spec.
- Organisation: Ehm...
- Reply-to: cygwin-patches mailing-list <cygwin-patches at cygwin dot com>
Hi,
I noticed, getfacl -n ... returns badly formatted
output like:
...
group:544
rwx
..
instead of:
...
group:544:rwx
...
This (trivial, I think) patch fixes that.
--- src/winsup/utils/getfacl.c 11 Sep 2003 07:55:51 -0000 1.11
+++ src/winsup/utils/getfacl.c 14 Sep 2004 21:21:45 -0000
@@ -229,7 +229,7 @@ main (int argc, char **argv)
break;
case USER:
if (nopt)
- printf ("user:%lu\n", (unsigned long)acls[i].a_id);
+ printf ("user:%lu:", (unsigned long)acls[i].a_id);
else
printf ("user:%s:", username (acls[i].a_id));
break;
@@ -238,7 +238,7 @@ main (int argc, char **argv)
break;
case GROUP:
if (nopt)
- printf ("group:%lu\n", (unsigned long)acls[i].a_id);
+ printf ("group:%lu:", (unsigned long)acls[i].a_id);
else
printf ("group:%s:", groupname (acls[i].a_id));
break;
L8r,
Buzz.
--
) | | ---/ ---/ Yes, this | This message consists of true | I do not
-- | | / / really is | and false bits entirely. | mail for
) | | / / a 72 by 4 +-------------------------------+ any1 but
-- \--| /--- /--- .sigfile. | |perl -pe "s.u(z)\1.as." | me. 4^re