diff options
author | trasz <trasz@FreeBSD.org> | 2010-07-06 17:20:08 +0000 |
---|---|---|
committer | trasz <trasz@FreeBSD.org> | 2010-07-06 17:20:08 +0000 |
commit | 01650ad878472e2c42f627f44fca98f5a039d9fa (patch) | |
tree | 4da36126fa75f050bc281ed8379746b6f0264624 /lib/libc/posix1e/acl_from_text.c | |
parent | 24fa71e44c132c2f9db2cb1f8c8926f6fcee9335 (diff) | |
download | FreeBSD-src-01650ad878472e2c42f627f44fca98f5a039d9fa.zip FreeBSD-src-01650ad878472e2c42f627f44fca98f5a039d9fa.tar.gz |
Fix acl_from_text(3) - and, therefore, setfacl(1) - for user and group
names names starting with a digit.
MFC after: 1 month
Diffstat (limited to 'lib/libc/posix1e/acl_from_text.c')
-rw-r--r-- | lib/libc/posix1e/acl_from_text.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/libc/posix1e/acl_from_text.c b/lib/libc/posix1e/acl_from_text.c index b6f6f60..7f15463 100644 --- a/lib/libc/posix1e/acl_from_text.c +++ b/lib/libc/posix1e/acl_from_text.c @@ -44,7 +44,6 @@ __FBSDID("$FreeBSD$"); #include "acl_support.h" -static int _posix1e_acl_name_to_id(acl_tag_t tag, char *name, uid_t *id); static acl_tag_t acl_string_to_tag(char *tag, char *qualifier); int _nfs4_acl_entry_from_text(acl_t aclp, char *entry); @@ -148,8 +147,7 @@ _posix1e_acl_entry_from_text(acl_t aclp, char *entry) case ACL_USER: case ACL_GROUP: - error = _posix1e_acl_name_to_id(t, qualifier, - &id); + error = _acl_name_to_id(t, qualifier, &id); if (error == -1) return (-1); break; @@ -272,8 +270,8 @@ error_label: * XXX USES *PW* AND *GR* WHICH ARE STATEFUL AND THEREFORE THIS ROUTINE * MAY HAVE SIDE-EFFECTS */ -static int -_posix1e_acl_name_to_id(acl_tag_t tag, char *name, uid_t *id) +int +_acl_name_to_id(acl_tag_t tag, char *name, uid_t *id) { struct group *g; struct passwd *p; |