From 3fbb1dbd6ca47d047fb74d258269dabca285b7fb Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Mon, 18 Nov 2013 16:56:25 +0100 Subject: m MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/cerberus.c | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'src/cerberus.c') diff --git a/src/cerberus.c b/src/cerberus.c index 538b5f9..d84ea50 100644 --- a/src/cerberus.c +++ b/src/cerberus.c @@ -19,13 +19,6 @@ #include "cerberus.h" -/* The number of seconds before the program times out */ -#ifndef TIMEOUT_SECONDS -#define TIMEOUT_SECONDS 60 -#endif - - - /** * Mane method * @@ -91,7 +84,7 @@ int main(int argc, char** argv) break; } else - fprintf(stderr, "%s: unrecognised options: -%c\n", *argv, c); + printf("%s: unrecognised options: -%c\n", *argv, c); else if (hostname_on_next) { hostname = arg; @@ -108,6 +101,7 @@ int main(int argc, char** argv) { printf("%s: no username specified\n", *argv); reenable_echo(); + sleep(ERROR_SLEEP); return 2; } @@ -135,6 +129,9 @@ int main(int argc, char** argv) alarm(TIMEOUT_SECONDS); + /* Get user information */ + + /* Get the passphrase, if -f has not been used */ if (skip_auth == 0) { -- cgit v1.2.3-70-g09d2