[Patch] getfacl -n layout not upto spec.

Bas van Gompel cygwin-patches.buzz@bavag.tmfweb.nl
Wed Sep 15 02:31:00 GMT 2004


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



More information about the Cygwin-patches mailing list