From: jan@unixpapa.com Date: Thu, 11 Jun 2009 13:48:26 +0000 (+0000) Subject: Rearranged ifdefs so that undefining SLEEP_LOCK completely disables the sleep on... X-Git-Tag: pwauth-2.3.10~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1caa5089338cd187b6a9b3a28dc53066f58dc247;p=pwauth Rearranged ifdefs so that undefining SLEEP_LOCK completely disables the sleep on failure behavior --- diff --git a/pwauth/main.c b/pwauth/main.c index cc646c7..ea9e9c7 100644 --- a/pwauth/main.c +++ b/pwauth/main.c @@ -123,7 +123,9 @@ main(int argc, char **argv) #ifdef UNIX_LASTLOG lastlog(); #endif +#ifdef SLEEP_LOCK snooze(0); +#endif exit(STATUS_OK); } else @@ -132,7 +134,9 @@ main(int argc, char **argv) #ifdef KEEP_FAILLOG log_failure(); #endif +#ifdef SLEEP_LOCK snooze(SLEEP_TIME); +#endif exit(status); } }