diff options
author | Robert Watson <rwatson@FreeBSD.org> | 2003-07-24 23:33:25 +0000 |
---|---|---|
committer | Robert Watson <rwatson@FreeBSD.org> | 2003-07-24 23:33:25 +0000 |
commit | 82fefada64bdd9a213e01c79c4ee648927050f5b (patch) | |
tree | 5cc69fa06943e74bfc0719eda6c36608d5aa91e7 /lib | |
parent | 0ff67a254e2a21eb63662e3f6e40adb85374fca7 (diff) | |
download | src-82fefada64bdd9a213e01c79c4ee648927050f5b.tar.gz src-82fefada64bdd9a213e01c79c4ee648927050f5b.zip |
Print group name in getfacl output when calculating an effective
permission set based on a more restrictive mask.
Submitted by: Glen Gibb <grg@ridley.unimelb.edu.au>
Notes
Notes:
svn path=/head/; revision=117982
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/posix1e/acl_to_text.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libc/posix1e/acl_to_text.c b/lib/libc/posix1e/acl_to_text.c index ea0770def453..f2905c3a05c5 100644 --- a/lib/libc/posix1e/acl_to_text.c +++ b/lib/libc/posix1e/acl_to_text.c @@ -177,9 +177,10 @@ acl_to_text(acl_t acl, ssize_t *len_p) effective_perm_buf); if (error) goto error_label; - len = asprintf(&tmpbuf, "%sgroup::%s\t\t# " + len = asprintf(&tmpbuf, "%sgroup:%s:%s\t\t# " "effective: %s\n", - buf, perm_buf, effective_perm_buf); + buf, name_buf, perm_buf, + effective_perm_buf); } else { len = asprintf(&tmpbuf, "%sgroup:%s:%s\n", buf, name_buf, perm_buf); |