From: Todd C. Miller Date: Tue, 21 Nov 1995 03:10:07 +0000 (+0000) Subject: fixed up comments X-Git-Tag: SUDO_1_4_0~95 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=310055043197c6ac0b6a01bfadd14b6d2abc7bf1;p=sudo fixed up comments --- diff --git a/getspwuid.c b/getspwuid.c index 13d76c492..280bb6eec 100644 --- a/getspwuid.c +++ b/getspwuid.c @@ -20,7 +20,7 @@ ******************************************************************* * * This module contains get_pwuid(), a function that - * Makes a dyname copy of the struct passwd returned by + * Makes a dynamic copy of the struct passwd returned by * getpwuid() and substitutes the shadow password if * necesary. * @@ -104,9 +104,11 @@ static char *sudo_getshell(pw_ent) /********************************************************************** * - * sudo_getpwuid() + * sudo_getspwd() * - * This function ... + * This function returns the shadow password for the user described + * by pw_ent. If there is no shadow password the normal UN*X password + * is returned instead. */ static char *sudo_getspwd(pw_ent) @@ -173,7 +175,9 @@ static char *sudo_getspwd(pw_ent) * * sudo_getpwuid() * - * This function ... + * This function dynamically allocates space for a struct password + * and the constituent parts that we care about. If shadow passwords + * are in use, it substitutes the shadow password for pw_passwd. */ struct passwd *sudo_getpwuid(uid)