diff options
author | Colin Watson <cjwatson@debian.org> | 2010-01-16 00:27:53 +0000 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2010-01-16 00:27:53 +0000 |
commit | 6f583ee197c4bd398196266efaab111ece264f69 (patch) | |
tree | 19fef8ecfce451489905a9ffca40edc58ba4bf56 /auth.c | |
parent | 730e12063b532f59292af38f584d84127a77ebdd (diff) |
Output a debug if we can't open an existing keyfile (LP: #505301).
Diffstat (limited to 'auth.c')
-rw-r--r-- | auth.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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); |