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
1963eb8a
Unverified
Commit
1963eb8a
authored
Oct 07, 2018
by
Christian Brauner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
start: s/MAXPATHLEN/PATH_MAX/g
Signed-off-by:
Christian Brauner
<
christian.brauner@ubuntu.com
>
parent
09c4da07
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
start.c
src/lxc/start.c
+3
-3
No files found.
src/lxc/start.c
View file @
1963eb8a
...
...
@@ -2012,7 +2012,7 @@ int lxc_start(const char *name, char *const argv[], struct lxc_handler *handler,
static
void
lxc_destroy_container_on_signal
(
struct
lxc_handler
*
handler
,
const
char
*
name
)
{
char
destroy
[
MAXPATHLEN
];
char
destroy
[
PATH_MAX
];
struct
lxc_container
*
c
;
int
ret
=
0
;
bool
bret
=
true
;
...
...
@@ -2026,8 +2026,8 @@ static void lxc_destroy_container_on_signal(struct lxc_handler *handler,
}
INFO
(
"Destroyed rootfs for container
\"
%s
\"
"
,
name
);
ret
=
snprintf
(
destroy
,
MAXPATHLEN
,
"%s/%s"
,
handler
->
lxcpath
,
name
);
if
(
ret
<
0
||
ret
>=
MAXPATHLEN
)
{
ret
=
snprintf
(
destroy
,
PATH_MAX
,
"%s/%s"
,
handler
->
lxcpath
,
name
);
if
(
ret
<
0
||
ret
>=
PATH_MAX
)
{
ERROR
(
"Error destroying directory for container
\"
%s
\"
"
,
name
);
return
;
}
...
...
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