Skip to content

Commit

Permalink
fix typos in comments
Browse files Browse the repository at this point in the history
  • Loading branch information
a1346054 committed Sep 22, 2021
1 parent 9a25a6d commit 75cb3a6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pam.c
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ pamauth(const char *user, const char *myname, int interactive, int nopass, int p
if (ret == PAM_NEW_AUTHTOK_REQD)
ret = pam_chauthtok(pamh, PAM_CHANGE_EXPIRED_AUTHTOK);

/* account not vaild or changing the auth token failed */
/* account not valid or changing the auth token failed */
if (ret != PAM_SUCCESS) {
pamcleanup(ret, sess, cred);
syslog(LOG_AUTHPRIV | LOG_NOTICE, "failed auth for %s", myname);
Expand Down
2 changes: 1 addition & 1 deletion timestamp.c
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ proc_info(pid_t pid, int *ttynr, unsigned long long *starttime)

/* Get the 7th field, 5 fields after the last ')',
* (2th field) because the 5th field 'comm' can include
* spaces and closing paranthesis too.
* spaces and closing parenthesis too.
* See https://www.sudo.ws/alerts/linux_tty.html
*/
if ((p = strrchr(buf, ')')) == NULL)
Expand Down

0 comments on commit 75cb3a6

Please sign in to comment.