X-Git-Url: http://andersk.mit.edu/gitweb/openssh.git/blobdiff_plain/3fde0623c23d0d56f593bed64fb8b25eda5c49db..13b90bdd9190a9d55c110cad33483b1a5df1f3ea:/auth.c diff --git a/auth.c b/auth.c index 84aa2c5e..a4c31f58 100644 --- a/auth.c +++ b/auth.c @@ -1,4 +1,4 @@ -/* $OpenBSD: auth.c,v 1.79 2008/07/02 12:03:51 dtucker Exp $ */ +/* $OpenBSD: auth.c,v 1.81 2010/01/10 07:15:56 dtucker Exp $ */ /* * Copyright (c) 2000 Markus Friedl. All rights reserved. * @@ -49,6 +49,7 @@ #include #include #include +#include #include "xmalloc.h" #include "match.h" @@ -482,8 +483,12 @@ auth_openkeyfile(const char *file, struct passwd *pw, int strict_modes) * Open the file containing the authorized keys * Fail quietly if file does not exist */ - if ((fd = open(file, O_RDONLY|O_NONBLOCK)) == -1) + if ((fd = open(file, O_RDONLY|O_NONBLOCK)) == -1) { + if (errno != ENOENT) + debug("Could not open keyfile '%s': %s", file, + strerror(errno)); return NULL; + } if (fstat(fd, &st) < 0) { close(fd);