Skip to content

Commit

Permalink
Fix a grammatical error in two debug messages & phrase another more c…
Browse files Browse the repository at this point in the history
…learly.
  • Loading branch information
eumpf0 committed Jan 4, 2024
1 parent 1274d94 commit e574c89
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pam-u2f.c
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ int pam_sm_authenticate(pam_handle_t *pamh, int flags, int argc,
}

if (!cfg->appid) {
debug_dbg(cfg, "Appid not specified, using the same value of origin (%s)",
debug_dbg(cfg, "Appid not specified, using the value of origin (%s)",
cfg->origin);
cfg->appid = strdup(cfg->origin);
if (!cfg->appid) {
Expand All @@ -224,7 +224,7 @@ int pam_sm_authenticate(pam_handle_t *pamh, int flags, int argc,
}

if (cfg->max_devs == 0) {
debug_dbg(cfg, "Maximum devices number not set. Using default (%d)",
debug_dbg(cfg, "Maximum number of devices not set. Using default (%d)",
MAX_DEVS);
cfg->max_devs = MAX_DEVS;
}
Expand All @@ -242,7 +242,7 @@ int pam_sm_authenticate(pam_handle_t *pamh, int flags, int argc,

pgu_ret = pam_get_user(pamh, &user, NULL);
if (pgu_ret != PAM_SUCCESS || user == NULL) {
debug_dbg(cfg, "Unable to access user %s", user);
debug_dbg(cfg, "Unable to get username from PAM");
retval = PAM_CONV_ERR;
goto done;
}
Expand Down

0 comments on commit e574c89

Please sign in to comment.