which were not properly using the bb_path_*_file strings.
struct group *group;
int grp_fd;
- if ((grp_fd = open("/etc/group", O_RDONLY)) < 0)
+ if ((grp_fd = open(bb_path_group_file, O_RDONLY)) < 0)
return NULL;
while ((group = __getgrent(grp_fd)) != NULL)
return NULL;
}
- if ((grp_fd = open("/etc/group", O_RDONLY)) < 0)
+ if ((grp_fd = open(bb_path_group_file, O_RDONLY)) < 0)
return NULL;
while ((group = __getgrent(grp_fd)) != NULL)
return NULL;
}
- 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)
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)
{
if (grp_fd != -1)
close(grp_fd);
- grp_fd = open("/etc/group", O_RDONLY);
+ grp_fd = open(bb_path_group_file, O_RDONLY);
}
void endgrent(void)
int grp_fd;
- if ((grp_fd = open("/etc/group", O_RDONLY)) < 0)
+ if ((grp_fd = open(bb_path_group_file, O_RDONLY)) < 0)
return -1;
num_groups = 0;
if (pw_fd != -1)
close(pw_fd);
- pw_fd = open("/etc/passwd", O_RDONLY);
+ pw_fd = open(bb_path_passwd_file, O_RDONLY);
}
void endpwent(void)