Import /etc/shadow support from Musl for Linux

Fixes #992
This commit is contained in:
Justine Tunney 2023-12-07 16:26:04 -08:00
parent 06ace4e7b4
commit f8ea02d4d1
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
9 changed files with 224 additions and 7 deletions

View file

@ -115,7 +115,7 @@ atou(char **s)
return x;
}
static int
int
__getpwent_a(FILE *f, struct passwd *pw, char **line, size_t *size,
struct passwd **res)
{
@ -161,7 +161,7 @@ __getpwent_a(FILE *f, struct passwd *pw, char **line, size_t *size,
return rv;
}
static int
int
__getpw_a(const char *name, uid_t uid, struct passwd *pw, char **buf,
size_t *size, struct passwd **res)
{