From 7c63049ba256e52fb1359dc1c78cc73d518b3532 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 8 Nov 2013 14:25:34 +0100 Subject: change that the username has been specified MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/cerberus.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/cerberus.c') diff --git a/src/cerberus.c b/src/cerberus.c index 88d4ae5..fb34321 100644 --- a/src/cerberus.c +++ b/src/cerberus.c @@ -106,6 +106,15 @@ int main(int argc, char** argv) } + /* Change that a username has been specified */ + if (username == 0) + { + printf("%s: no username specified\n", *argv); + reenable_echo(); + return 2; + } + + /* Print ant we want a passphrase, if -f has not been used */ if (skip_auth == 0) { -- cgit v1.2.3-70-g09d2