diff options
Diffstat (limited to 'debian/patches/keyfile-debug.patch')
-rw-r--r-- | debian/patches/keyfile-debug.patch | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/debian/patches/keyfile-debug.patch b/debian/patches/keyfile-debug.patch deleted file mode 100644 index 2e5f209f3..000000000 --- a/debian/patches/keyfile-debug.patch +++ /dev/null | |||
@@ -1,25 +0,0 @@ | |||
1 | Description: Output a debug if we can't open an existing keyfile | ||
2 | Origin: upstream, http://bazaar.launchpad.net/~vcs-imports/openssh/main/revision/5873 | ||
3 | Author: Darren Tucker <dtucker@zip.com.au> | ||
4 | Bug: https://bugzilla.mindrot.org/show_bug.cgi?id=1694 | ||
5 | Bug-Ubuntu: https://bugs.launchpad.net/bugs/505301 | ||
6 | Last-Update: 2010-02-27 | ||
7 | |||
8 | Index: b/auth.c | ||
9 | =================================================================== | ||
10 | --- a/auth.c | ||
11 | +++ b/auth.c | ||
12 | @@ -516,8 +516,12 @@ | ||
13 | * Open the file containing the authorized keys | ||
14 | * Fail quietly if file does not exist | ||
15 | */ | ||
16 | - if ((fd = open(file, O_RDONLY|O_NONBLOCK)) == -1) | ||
17 | + if ((fd = open(file, O_RDONLY|O_NONBLOCK)) == -1) { | ||
18 | + if (errno != ENOENT) | ||
19 | + debug("Could not open keyfile '%s': %s", file, | ||
20 | + strerror(errno)); | ||
21 | return NULL; | ||
22 | + } | ||
23 | |||
24 | if (fstat(fd, &st) < 0) { | ||
25 | close(fd); | ||