Patch from Nick Fedchik to fixup paths in busybox/libpwdgrp
which were not properly using the bb_path_*_file strings.
This commit is contained in:
@@ -30,7 +30,7 @@ struct passwd *getpwuid(uid_t uid)
|
||||
int passwd_fd;
|
||||
struct passwd *passwd;
|
||||
|
||||
if ((passwd_fd = open("/etc/passwd", O_RDONLY)) < 0)
|
||||
if ((passwd_fd = open(bb_path_passwd_file, O_RDONLY)) < 0)
|
||||
return NULL;
|
||||
|
||||
while ((passwd = __getpwent(passwd_fd)) != NULL)
|
||||
|
||||
Reference in New Issue
Block a user