summaryrefslogtreecommitdiff
path: root/debian/patches/keyfile-debug.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/keyfile-debug.patch')
-rw-r--r--debian/patches/keyfile-debug.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/debian/patches/keyfile-debug.patch b/debian/patches/keyfile-debug.patch
new file mode 100644
index 000000000..7a46a78d7
--- /dev/null
+++ b/debian/patches/keyfile-debug.patch
@@ -0,0 +1,18 @@
1Index: b/auth.c
2===================================================================
3--- a/auth.c
4+++ b/auth.c
5@@ -516,8 +516,12 @@
6 * Open the file containing the authorized keys
7 * Fail quietly if file does not exist
8 */
9- if ((fd = open(file, O_RDONLY|O_NONBLOCK)) == -1)
10+ if ((fd = open(file, O_RDONLY|O_NONBLOCK)) == -1) {
11+ if (errno != ENOENT)
12+ debug("Could not open keyfile '%s': %s", file,
13+ strerror(errno));
14 return NULL;
15+ }
16
17 if (fstat(fd, &st) < 0) {
18 close(fd);