summaryrefslogtreecommitdiff
path: root/debian/patches/keyfile-debug.patch
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2010-02-27 14:05:10 +0000
committerColin Watson <cjwatson@debian.org>2010-02-27 14:05:10 +0000
commit8dcc7c5ef45cf5032dca7a308ffe17d3935e62d5 (patch)
tree2e0d8058bdfc24a60a20c5bcbfd1075ef1048ff3 /debian/patches/keyfile-debug.patch
parente44a1fb6e8e59e67e5c8b6e83c0d8566d146aad9 (diff)
Convert to source format 3.0 (quilt).
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);