mirror of
https://github.com/Yubico/yubico-pam.git
synced 2025-02-17 21:54:15 +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;
|
goto free_out;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (stat (userfile, &st) != 0 && errno == ENOENT) {
|
if (lstat (userfile, &st) != 0 && errno == ENOENT) {
|
||||||
retval = AUTH_NO_TOKENS;
|
retval = AUTH_NO_TOKENS;
|
||||||
} else {
|
} else {
|
||||||
retval = check_user_token (userfile, username, otp_id, cfg->debug, cfg->debug_file);
|
retval = check_user_token (userfile, username, otp_id, cfg->debug, cfg->debug_file);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user