1
0
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:
Klas Lindfors 2019-06-26 14:58:45 +02:00
parent f300115a64
commit 3d8d06d949
No known key found for this signature in database
GPG Key ID: BCA00FD4B2168C0A

View File

@ -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);