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
0c669152
Unverified
Commit
0c669152
authored
Feb 19, 2019
by
Christian Brauner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
conf: cleanup macros setup_proc_filesystem
Signed-off-by:
Christian Brauner
<
christian.brauner@ubuntu.com
>
parent
e6f76452
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
conf.c
src/lxc/conf.c
+1
-2
No files found.
src/lxc/conf.c
View file @
0c669152
...
@@ -2666,10 +2666,10 @@ int setup_sysctl_parameters(struct lxc_list *sysctls)
...
@@ -2666,10 +2666,10 @@ int setup_sysctl_parameters(struct lxc_list *sysctls)
int
setup_proc_filesystem
(
struct
lxc_list
*
procs
,
pid_t
pid
)
int
setup_proc_filesystem
(
struct
lxc_list
*
procs
,
pid_t
pid
)
{
{
__do_free
char
*
tmp
=
NULL
;
struct
lxc_list
*
it
;
struct
lxc_list
*
it
;
struct
lxc_proc
*
elem
;
struct
lxc_proc
*
elem
;
int
ret
=
0
;
int
ret
=
0
;
char
*
tmp
=
NULL
;
char
filename
[
PATH_MAX
]
=
{
0
};
char
filename
[
PATH_MAX
]
=
{
0
};
lxc_list_for_each
(
it
,
procs
)
{
lxc_list_for_each
(
it
,
procs
)
{
...
@@ -2681,7 +2681,6 @@ int setup_proc_filesystem(struct lxc_list *procs, pid_t pid)
...
@@ -2681,7 +2681,6 @@ int setup_proc_filesystem(struct lxc_list *procs, pid_t pid)
}
}
ret
=
snprintf
(
filename
,
sizeof
(
filename
),
"/proc/%d/%s"
,
pid
,
tmp
);
ret
=
snprintf
(
filename
,
sizeof
(
filename
),
"/proc/%d/%s"
,
pid
,
tmp
);
free
(
tmp
);
if
(
ret
<
0
||
(
size_t
)
ret
>=
sizeof
(
filename
))
{
if
(
ret
<
0
||
(
size_t
)
ret
>=
sizeof
(
filename
))
{
ERROR
(
"Error setting up proc filesystem path"
);
ERROR
(
"Error setting up proc filesystem path"
);
return
-
1
;
return
-
1
;
...
...
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