Skip to content

Commit 357cd95

Browse files
committed
Fix typos in comments
1 parent 9a25a6d commit 357cd95

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pam.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ pamauth(const char *user, const char *myname, int interactive, int nopass, int p
300300
if (ret == PAM_NEW_AUTHTOK_REQD)
301301
ret = pam_chauthtok(pamh, PAM_CHANGE_EXPIRED_AUTHTOK);
302302

303-
/* account not vaild or changing the auth token failed */
303+
/* account not valid or changing the auth token failed */
304304
if (ret != PAM_SUCCESS) {
305305
pamcleanup(ret, sess, cred);
306306
syslog(LOG_AUTHPRIV | LOG_NOTICE, "failed auth for %s", myname);

timestamp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ proc_info(pid_t pid, int *ttynr, unsigned long long *starttime)
146146

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

0 commit comments

Comments
 (0)