diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2009-05-29 21:22:58 +0000 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2009-05-29 21:22:58 +0000 |
commit | f91b33e7b87b0447029e9b7593b796c3b9d0d0b0 (patch) | |
tree | cb66705231e6c4480c62c3b690867c426cf2763b /nss/aliases.c | |
parent | 7c32d0121c95bbb05ab064b29bf7ec2ba5defc00 (diff) |
refactor protocol reading and writing macros to the common directory, use more logical names and in the PAM module no longer use NSS status codes (import of r887 from nss-pam-ldapd)
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@904 ef36b2f9-881f-0410-afb5-c4e39611909c
Diffstat (limited to 'nss/aliases.c')
-rw-r--r-- | nss/aliases.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/nss/aliases.c b/nss/aliases.c index 10d5576..dd27ede 100644 --- a/nss/aliases.c +++ b/nss/aliases.c @@ -33,11 +33,14 @@ static enum nss_status read_aliasent( TFILE *fp,struct aliasent *result, char *buffer,size_t buflen,int *errnop) { - int32_t tmpint32,tmp2int32; + int32_t tmpint32,tmp2int32,tmp3int32; size_t bufptr=0; - /* auto-genereted read code */ - READ_STRING_BUF(fp,result->alias_name); - READ_STRINGLIST_NUM(fp,result->alias_members,result->alias_members_len); + /* read the name of the alias */ + READ_BUF_STRING(fp,result->alias_name); + /* read the members */ + READ_BUF_STRINGLIST(fp,result->alias_members); + /* tmp3int32 holds the number of entries read */ + result->alias_members_len=tmp3int32; /* fill in remaining gaps in struct */ result->alias_local=0; /* we're done */ |