aboutsummaryrefslogtreecommitdiffstats
path: root/asroot.c
diff options
context:
space:
mode:
Diffstat (limited to 'asroot.c')
-rw-r--r--asroot.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/asroot.c b/asroot.c
index f53c0c4..7db8eac 100644
--- a/asroot.c
+++ b/asroot.c
@@ -20,8 +20,8 @@
#define EXIT_EXEC 126
#define EXIT_NOENT 127
-#ifndef ERROR_SLEEP
-# define ERROR_SLEEP 1
+#ifndef RETRY_SLEEP
+# define RETRY_SLEEP 1
#endif
#ifndef PROMPT
@@ -342,7 +342,9 @@ again:
if (strcmp(got, expected)) {
fprintf(stderr, "%s: incorrect password, please try again\n", argv0);
tcsetattr(fd, TCSAFLUSH, &stty_sleep);
- sleep(ERROR_SLEEP);
+#if RETRY_SLEEP > 0
+ sleep(RETRY_SLEEP);
+#endif
tcsetattr(fd, TCSAFLUSH, &stty_enter);
goto again;
}