diff options
author | Mattias Andrée <maandree@operamail.com> | 2013-11-08 14:25:34 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2013-11-08 14:25:34 +0100 |
commit | 7c63049ba256e52fb1359dc1c78cc73d518b3532 (patch) | |
tree | 076907c764286bd2fe1ec57adf6ff1762d1b7bb2 /src | |
parent | wipe the passphrase from the memory (diff) | |
download | libpassphrase-7c63049ba256e52fb1359dc1c78cc73d518b3532.tar.gz libpassphrase-7c63049ba256e52fb1359dc1c78cc73d518b3532.tar.bz2 libpassphrase-7c63049ba256e52fb1359dc1c78cc73d518b3532.tar.xz |
change that the username has been specified
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r-- | src/cerberus.c | 9 |
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) { |