summaryrefslogtreecommitdiff
path: root/usr.bin/ssh/auth2-pubkey.c
diff options
context:
space:
mode:
authorDamien Miller <djm@cvs.openbsd.org>2013-02-14 21:36:00 +0000
committerDamien Miller <djm@cvs.openbsd.org>2013-02-14 21:36:00 +0000
commita72787f47b7332d925b1b87b66ff9ba91de0f8f5 (patch)
tree8f26c4e6c3fe35510ad3a2b224fdddad8522c45e /usr.bin/ssh/auth2-pubkey.c
parent6dd5247e9f41177c92fe45c75174605818e506de (diff)
Correct error message that had a typo and was logging the wrong thing;
patch from Petr Lautrbach
Diffstat (limited to 'usr.bin/ssh/auth2-pubkey.c')
-rw-r--r--usr.bin/ssh/auth2-pubkey.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/ssh/auth2-pubkey.c b/usr.bin/ssh/auth2-pubkey.c
index 285725a4e7b..f38da953b3c 100644
--- a/usr.bin/ssh/auth2-pubkey.c
+++ b/usr.bin/ssh/auth2-pubkey.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: auth2-pubkey.c,v 1.33 2012/11/14 02:24:27 djm Exp $ */
+/* $OpenBSD: auth2-pubkey.c,v 1.34 2013/02/14 21:35:59 djm Exp $ */
/*
* Copyright (c) 2000 Markus Friedl. All rights reserved.
*
@@ -476,8 +476,8 @@ user_key_command_allowed2(struct passwd *user_pw, Key *key)
"u", user_pw->pw_name, (char *)NULL);
pw = getpwnam(username);
if (pw == NULL) {
- error("AuthorizedKeyCommandUser \"%s\" not found: %s",
- options.authorized_keys_command, strerror(errno));
+ error("AuthorizedKeysCommandUser \"%s\" not found: %s",
+ username, strerror(errno));
free(username);
return 0;
}