Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 580054 Details for
Bug 688246
sys-libs/glibc-2.29-r2: endgrent() sets errno if service 'db' is in nsswitch.conf, even if successful; breaks sys-apps/s6
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
test-program.c
file_688246.txt (text/plain), 598 bytes, created by
Guillermo D. H.
on 2019-06-17 18:51:19 UTC
(
hide
)
Description:
test-program.c
Filename:
MIME Type:
Creator:
Guillermo D. H.
Created:
2019-06-17 18:51:19 UTC
Size:
598 bytes
patch
obsolete
>#include <errno.h> >#include <stdio.h> >#include <string.h> >#include <grp.h> > >int main() { > int saved_errno; > for (;;) { > errno = 0; > struct group *gr = getgrent(); > saved_errno = errno; > if (gr) { > printf("name: %s members: ", gr->gr_name); > } > else { > printf ("End of file or error "); > break; > } > for (char **p = gr->gr_mem; *p; p++) printf ("%s ", *p); > printf("\n"); > } > printf("(errno = %s)\n", strerror(saved_errno)); > printf("errno before endgrent() = %s\n", strerror(errno)); > endgrent(); > printf("errno after endgrent() = %s\n", strerror(errno)); >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 688246
: 580054