Changeset View
Changeset View
Standalone View
Standalone View
pw_vpw.c
Context not available. | |||||
static FILE * pwd_fp = NULL; | static FILE * pwd_fp = NULL; | ||||
static int pwd_scanflag; | static int pwd_scanflag; | ||||
static const char *pwd_filename; | static const char *pwd_filename; | ||||
struct password *pw_last = NULL; | |||||
struct group *gr_last = NULL; | |||||
void | void | ||||
vendpwent(void) | vendpwent(void) | ||||
Context not available. | |||||
} | } | ||||
free(line); | free(line); | ||||
if (pw_last != NULL) | |||||
free(pw_last); | |||||
pw_last = pw; | |||||
return (pw); | return (pw); | ||||
} | } | ||||
Context not available. | |||||
} | } | ||||
free(line); | free(line); | ||||
if (gr_last != NULL) | |||||
free(gr_last); | |||||
gr_last = gr; | |||||
return (gr); | return (gr); | ||||
} | } | ||||
Context not available. |