mirror of
https://github.com/Yubico/yubico-pam.git
synced 2025-03-15 18:29:16 +01:00
improve debug messages
This commit is contained in:
parent
fcde64a93e
commit
d4acd495f0
@ -138,12 +138,12 @@ check_user_token (struct cfg *cfg,
|
|||||||
|
|
||||||
fd = open(authfile, O_RDONLY, 0);
|
fd = open(authfile, O_RDONLY, 0);
|
||||||
if (fd < 0) {
|
if (fd < 0) {
|
||||||
DBG (("Cannot open file: %s", authfile));
|
DBG (("Cannot open file: %s (%s)", authfile, strerror(errno)));
|
||||||
return retval;
|
return retval;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (fstat(fd, &st) < 0) {
|
if (fstat(fd, &st) < 0) {
|
||||||
DBG (("Cannot stat file: %s", authfile));
|
DBG (("Cannot stat file: %s (%s)", authfile, strerror(errno)));
|
||||||
close(fd);
|
close(fd);
|
||||||
return retval;
|
return retval;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user