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:
parent
fcde64a93e
commit
d4acd495f0
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user