]> granicus.if.org Git - sudo/commitdiff
fixed up comments
authorTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 21 Nov 1995 03:10:07 +0000 (03:10 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 21 Nov 1995 03:10:07 +0000 (03:10 +0000)
getspwuid.c

index 13d76c4920e7e7b6aee792de57a8179fddc9a6aa..280bb6eecc67d4f02f3709cbc2d7c716fa4fe89f 100644 (file)
@@ -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)