Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lxc
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
lxc
Commits
2b65c74c
Unverified
Commit
2b65c74c
authored
Jun 12, 2018
by
Christian Brauner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pam: fix typo
fixes commit
2dce415b
("fix getpwnam() thread safe issue") Signed-off-by:
Christian Brauner
<
christian.brauner@ubuntu.com
>
parent
5465e673
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
pam_cgfs.c
src/lxc/pam/pam_cgfs.c
+3
-2
No files found.
src/lxc/pam/pam_cgfs.c
View file @
2b65c74c
...
@@ -1520,7 +1520,7 @@ static void cg_escape(void)
...
@@ -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
)
{
{
str
cu
t
passwd
pwent
;
str
uc
t
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)
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment