mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-07-27 08:12:20 +00:00
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:
parent
5465e67305
commit
2b65c74cf9
@ -1520,7 +1520,7 @@ static void cg_escape(void)
|
|||||||
/* Get uid and gid for @user. */
|
/* Get uid and gid for @user. */
|
||||||
static bool get_uid_gid(const char *user, uid_t *uid, gid_t *gid)
|
static bool get_uid_gid(const char *user, uid_t *uid, gid_t *gid)
|
||||||
{
|
{
|
||||||
strcut passwd pwent;
|
struct passwd pwent;
|
||||||
struct passwd *pwentp = NULL;
|
struct passwd *pwentp = NULL;
|
||||||
char *buf;
|
char *buf;
|
||||||
size_t bufsize;
|
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);
|
ret = getpwnam_r(user, &pwent, buf, bufsize, &pwentp);
|
||||||
if (!pwentp) {
|
if (!pwentp) {
|
||||||
if (ret == 0)
|
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);
|
free(buf);
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user