diff options
author | Colin Watson <cjwatson@debian.org> | 2010-02-27 14:05:10 +0000 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2010-02-27 14:05:10 +0000 |
commit | 8dcc7c5ef45cf5032dca7a308ffe17d3935e62d5 (patch) | |
tree | 2e0d8058bdfc24a60a20c5bcbfd1075ef1048ff3 /debian/patches/keyfile-debug.patch | |
parent | e44a1fb6e8e59e67e5c8b6e83c0d8566d146aad9 (diff) |
Convert to source format 3.0 (quilt).
Diffstat (limited to 'debian/patches/keyfile-debug.patch')
-rw-r--r-- | debian/patches/keyfile-debug.patch | 18 |
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 @@ | |||
1 | Index: 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); | ||