Index: bin/getfacl/getfacl.c =================================================================== RCS file: /home/ncvs/src/bin/getfacl/getfacl.c,v retrieving revision 1.9 diff -u -r1.9 getfacl.c --- bin/getfacl/getfacl.c 2002/12/30 15:36:29 1.9 +++ bin/getfacl/getfacl.c 2003/03/25 03:29:34 @@ -40,6 +40,8 @@ #include #include +#include +#include #include #include #include @@ -150,6 +152,8 @@ print_acl(char *path, acl_type_t type, int hflag) { struct stat sb; + struct passwd *user; + struct group *grp; acl_t acl; char *acl_text; int error; @@ -168,7 +172,11 @@ else more_than_one++; - printf("#file:%s\n#owner:%d\n#group:%d\n", path, sb.st_uid, sb.st_gid); + user = getpwuid(sb.st_uid); + grp = getgrgid(sb.st_gid); + + printf("#file:%s\n#owner:%s\n#group:%s\n", path, user->pw_name, + grp->gr_name); if (hflag) acl = acl_get_link_np(path, type);