aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/cerberus.c9
1 files changed, 9 insertions, 0 deletions
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)
{