]> granicus.if.org Git - linux-pam/commitdiff
Update a function comment
authorlifecrisis <15251574+lifecrisis@users.noreply.github.com>
Fri, 6 Sep 2019 21:09:30 +0000 (17:09 -0400)
committerlifecrisis <15251574+lifecrisis@users.noreply.github.com>
Fri, 6 Sep 2019 21:09:30 +0000 (17:09 -0400)
The function comment for "_pam_await_timer()" does not mention the
intended behavior of prioritizing the "PAM_FAIL_DELAY" item.

I updated the comment to make this intention clear.

libpam/pam_delay.c

index 972e72b6bfefe604afb5ae735ab023c9a8ed50ab..8a2be7aa05914bdafe4c513da0caea358a51bac9 100644 (file)
@@ -79,9 +79,11 @@ static unsigned int _pam_compute_delay(unsigned int seed, unsigned int base)
 }
 
 /* **********************************************************************
- * the following function sleeps for a random time. The actual time
- * slept is computed above.. It is based on the requested time but will
- * differ by up to +/- 50%.
+ * By default, the following function sleeps for a random time. The
+ * actual time slept is computed above. It is based on the requested
+ * time but will differ by up to +/- 50%. If the PAM_FAIL_DELAY item is
+ * set by the client, this function will call the function referenced by
+ * that item, overriding the default behavior.
  */
 
 void _pam_await_timer(pam_handle_t *pamh, int status)