FILE* fg;
struct group * grp = NULL;
- fg = fopen(group_db_file, "rt");
+ fg = fopen(group_db_file, "r");
if (!fg)
return NULL;
while (NULL != (grp = fgetgrent(fg))) {
FILE* fg;
struct group * grp = NULL;
- fg = fopen(group_db_file, "rt");
+ fg = fopen(group_db_file, "r");
if (!fg)
return NULL;
while (NULL != (grp = fgetgrent(fg))) {
FILE* fg;
struct passwd *pwd = NULL;
- fg = fopen(passwd_db_file, "rt");
+ fg = fopen(passwd_db_file, "r");
if (!fg)
return NULL;
while (NULL != (pwd = fgetpwent(fg))) {
FILE* fg;
struct passwd *pwd = NULL;
- fg = fopen(passwd_db_file, "rt");
+ fg = fopen(passwd_db_file, "r");
if (!fg)
return NULL;
while (NULL != (pwd = fgetpwent(fg))) {
FILE* fg;
int ret = 0;
- fg = fopen(passwd_db_file, "rt");
+ fg = fopen(passwd_db_file, "r");
if (!fg)
return errno;
while ((ret = fgetpwent_r(fg, pwd, buf, buflen, result)) == 0) {
FILE* fg;
struct spwd *sp = NULL;
- fg = fopen(spw_db_file, "rt");
+ fg = fopen(spw_db_file, "r");
if (!fg)
return NULL;
while (NULL != (sp = fgetspent(fg))) {
if (fp_pwent)
fclose (fp_pwent);
- fp_pwent = fopen(passwd_db_file, "rt");
+ fp_pwent = fopen(passwd_db_file, "r");
if (!fp_pwent)
return;
}
if (fp_grent)
fclose (fp_grent);
- fp_grent = fopen(group_db_file, "rt");
+ fp_grent = fopen(group_db_file, "r");
if (!fp_grent)
return;
}