pam: fix typo

fixes commit 2dce415b62 ("fix getpwnam() thread safe issue")

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
Christian Brauner 2018-06-12 15:03:38 +02:00
parent 5465e67305
commit 2b65c74cf9
No known key found for this signature in database
GPG Key ID: 8EB056D53EECB12D

View File

@ -1520,7 +1520,7 @@ static void cg_escape(void)
/* Get uid and gid for @user. */
static bool get_uid_gid(const char *user, uid_t *uid, gid_t *gid)
{
strcut passwd pwent;
struct passwd pwent;
struct passwd *pwentp = NULL;
char *buf;
size_t bufsize;
@ -1537,7 +1537,8 @@ static bool get_uid_gid(const char *user, uid_t *uid, gid_t *gid)
ret = getpwnam_r(user, &pwent, buf, bufsize, &pwentp);
if (!pwentp) {
if (ret == 0)
mysyslog(LOG_ERR, "Could not find matched password record.\n", NULL);
mysyslog(LOG_ERR,
"Could not find matched password record\n", NULL);
free(buf);
return false;