summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2016-05-13 19:06:53 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2016-05-13 19:06:53 +0000
commitef6dca71f7ca61dee0607a3bbe0921df562c0c61 (patch)
tree40a58bdedbab72d51749766feda4ddeb560de240 /sbin
parentab5e9d0b2c7efa971c16ca7226c58d2c5d77c411 (diff)
overzealous use of errx() hides useful information about errors.
ok benno millert
Diffstat (limited to 'sbin')
-rw-r--r--sbin/bioctl/bioctl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/bioctl/bioctl.c b/sbin/bioctl/bioctl.c
index 09e6df8fff0..2755bab7718 100644
--- a/sbin/bioctl/bioctl.c
+++ b/sbin/bioctl/bioctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bioctl.c,v 1.130 2016/02/04 08:31:26 uebayasi Exp $ */
+/* $OpenBSD: bioctl.c,v 1.131 2016/05/13 19:06:52 tedu Exp $ */
/*
* Copyright (c) 2004, 2005 Marco Peereboom
@@ -1299,7 +1299,7 @@ derive_key_pkcs(int rounds, u_int8_t *key, size_t keysz, u_int8_t *salt,
} else {
if (readpassphrase(prompt, passphrase, sizeof(passphrase),
rpp_flag) == NULL)
- errx(1, "unable to read passphrase");
+ err(1, "unable to read passphrase");
}
if (verify && !password) {
@@ -1307,7 +1307,7 @@ derive_key_pkcs(int rounds, u_int8_t *key, size_t keysz, u_int8_t *salt,
if (readpassphrase("Re-type passphrase: ", verifybuf,
sizeof(verifybuf), rpp_flag) == NULL) {
explicit_bzero(passphrase, sizeof(passphrase));
- errx(1, "unable to read passphrase");
+ err(1, "unable to read passphrase");
}
if ((strlen(passphrase) != strlen(verifybuf)) ||
(strcmp(passphrase, verifybuf) != 0)) {