This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug nss/22530] FAIL: nss/bug17079 due to _nss_sss_getpwuid_r


https://sourceware.org/bugzilla/show_bug.cgi?id=22530

Carlos O'Donell <carlos at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |carlos at redhat dot com

--- Comment #1 from Carlos O'Donell <carlos at redhat dot com> ---
241 enum nss_status _nss_sss_getpwuid_r(uid_t uid, struct passwd *result,
242                                     char *buffer, size_t buflen, int
*errnop)
243 {
244     struct sss_cli_req_data rd;
245     struct sss_nss_pw_rep pwrep;
246     uint8_t *repbuf;
247     size_t replen, len;
248     uint32_t num_results;
249     enum nss_status nret;
250     uint32_t user_uid;
251     int ret;
252 
253     /* Caught once glibc passing in buffer == 0x0 */
254     if (!buffer || !buflen) return ERANGE;

This is a bug in sssd. It can't return ERANGE since that's not a valid
nss_status enumeration.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]