1
0
mirror of https://github.com/Yubico/yubico-pam.git synced 2025-03-14 06:29:21 +01:00

improve debug messages

This commit is contained in:
Fredrik Thulin 2011-11-23 13:46:26 +01:00
parent fcde64a93e
commit d4acd495f0

View File

@ -138,12 +138,12 @@ check_user_token (struct cfg *cfg,
fd = open(authfile, O_RDONLY, 0);
if (fd < 0) {
DBG (("Cannot open file: %s", authfile));
DBG (("Cannot open file: %s (%s)", authfile, strerror(errno)));
return retval;
}
if (fstat(fd, &st) < 0) {
DBG (("Cannot stat file: %s", authfile));
DBG (("Cannot stat file: %s (%s)", authfile, strerror(errno)));
close(fd);
return retval;
}