summaryrefslogtreecommitdiff
path: root/auth.c
diff options
context:
space:
mode:
Diffstat (limited to 'auth.c')
-rw-r--r--auth.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/auth.c b/auth.c
index ae2cdec57..68370ca94 100644
--- a/auth.c
+++ b/auth.c
@@ -516,8 +516,12 @@ auth_openkeyfile(const char *file, struct passwd *pw, int strict_modes)
516 * Open the file containing the authorized keys 516 * Open the file containing the authorized keys
517 * Fail quietly if file does not exist 517 * Fail quietly if file does not exist
518 */ 518 */
519 if ((fd = open(file, O_RDONLY|O_NONBLOCK)) == -1) 519 if ((fd = open(file, O_RDONLY|O_NONBLOCK)) == -1) {
520 if (errno != ENOENT)
521 debug("Could not open keyfile '%s': %s", file,
522 strerror(errno));
520 return NULL; 523 return NULL;
524 }
521 525
522 if (fstat(fd, &st) < 0) { 526 if (fstat(fd, &st) < 0) {
523 close(fd); 527 close(fd);