Skip to content
Permalink
Browse files

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
  • Loading branch information...
klali committed Jun 26, 2019
1 parent f300115 commit 3d8d06d94903936d7bc088b1d5206fbf7921db18
Showing with 1 addition and 1 deletion.
  1. +1 −1 pam_yubico.c
@@ -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);

0 comments on commit 3d8d06d

Please sign in to comment.
You can’t perform that action at this time.