Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 725413 Details for
Bug 803050
sys-libs/pam 1.5.2(?), sys-apps/systemd-249.1: nss incompatibilities
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
Test code demonstrating getspnam_r problem
test.c (text/x-csrc), 555 bytes, created by
Marcin Deranek
on 2021-07-21 08:22:16 UTC
(
hide
)
Description:
Test code demonstrating getspnam_r problem
Filename:
MIME Type:
Creator:
Marcin Deranek
Created:
2021-07-21 08:22:16 UTC
Size:
555 bytes
patch
obsolete
>#include <stdio.h> >#include <stdlib.h> >#include <shadow.h> >#include <errno.h> > >#define PWD_INITIAL_LENGTH 0x400 > >int main() { > int status; > void *buffer = NULL; > size_t length = PWD_INITIAL_LENGTH; > void *new_buffer; > struct spwd *result = NULL; > > new_buffer = realloc(buffer, sizeof(struct spwd) + length); > buffer = new_buffer; > errno = 0; > status = getspnam_r(getenv("USER"), buffer, > sizeof(struct spwd) + (char *) buffer, > length, &result); > printf("Errno: %d Status: %d Result: %d\n", errno, status, result == buffer); >}
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 803050
: 725413 |
725416
|
725500