summaryrefslogtreecommitdiff
path: root/auth2-pubkey.c
diff options
context:
space:
mode:
authordtucker <dtucker>2011-10-02 07:59:59 +0000
committerdtucker <dtucker>2011-10-02 07:59:59 +0000
commitb322773ed92a98144a552d8b1954d8daf6b22950 (patch)
tree63e74ccaac73e187d249e9e7703e7b7e153ab413 /auth2-pubkey.c
parent2a1b94c0106d2948642096e7b753a932a72d1adc (diff)
downloadopenssh-b322773ed92a98144a552d8b1954d8daf6b22950.tar.gz
- djm@cvs.openbsd.org 2011/09/25 05:44:47
[auth2-pubkey.c] improve the AuthorizedPrincipalsFile debug log message to include file and line number
Diffstat (limited to 'auth2-pubkey.c')
-rw-r--r--auth2-pubkey.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/auth2-pubkey.c b/auth2-pubkey.c
index 137887ec..5bccb5d7 100644
--- a/auth2-pubkey.c
+++ b/auth2-pubkey.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: auth2-pubkey.c,v 1.29 2011/05/23 03:30:07 djm Exp $ */
+/* $OpenBSD: auth2-pubkey.c,v 1.30 2011/09/25 05:44:47 djm Exp $ */
/*
* Copyright (c) 2000 Markus Friedl. All rights reserved.
*
@@ -238,8 +238,9 @@ match_principals_file(char *file, struct passwd *pw, struct KeyCert *cert)
}
for (i = 0; i < cert->nprincipals; i++) {
if (strcmp(cp, cert->principals[i]) == 0) {
- debug3("matched principal from file \"%.100s\"",
- cert->principals[i]);
+ debug3("matched principal \"%.100s\" "
+ "from file \"%s\" on line %lu",
+ cert->principals[i], file, linenum);
if (auth_parse_options(pw, line_opts,
file, linenum) != 1)
continue;