aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2013-11-08 14:25:34 +0100
committerMattias Andrée <maandree@operamail.com>2013-11-08 14:25:34 +0100
commit7c63049ba256e52fb1359dc1c78cc73d518b3532 (patch)
tree076907c764286bd2fe1ec57adf6ff1762d1b7bb2
parentwipe the passphrase from the memory (diff)
downloadlibpassphrase-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.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)
{