mirror of
https://github.com/Yubico/yubico-pam.git
synced 2024-11-29 00:24:11 +01:00
use lstat() when checking for existance of user mapping file
this treats the existance of a symlink as an intent to configure the mapping and will fail in check_user_token() instead
This commit is contained in:
parent
f300115a64
commit
3d8d06d949
@ -207,7 +207,7 @@ authorize_user_token (struct cfg *cfg,
|
||||
goto free_out;
|
||||
}
|
||||
|
||||
if (stat (userfile, &st) != 0 && errno == ENOENT) {
|
||||
if (lstat (userfile, &st) != 0 && errno == ENOENT) {
|
||||
retval = AUTH_NO_TOKENS;
|
||||
} else {
|
||||
retval = check_user_token (userfile, username, otp_id, cfg->debug, cfg->debug_file);
|
||||
|
Loading…
Reference in New Issue
Block a user