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
2715bbf9
Unverified
Commit
2715bbf9
authored
Mar 23, 2018
by
Stéphane Graber
Committed by
GitHub
Mar 23, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2233 from brauner/2018-03-23/truncate_config_file
lxccontainer: truncate config file
parents
cc8d4ec0
10034af5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
lxccontainer.c
src/lxc/lxccontainer.c
+1
-2
No files found.
src/lxc/lxccontainer.c
View file @
2715bbf9
...
...
@@ -2500,11 +2500,10 @@ static bool do_lxcapi_save_config(struct lxc_container *c, const char *alt_file)
lret
=
container_disk_lock
(
c
);
else
lret
=
container_mem_lock
(
c
);
if
(
lret
)
return
false
;
fd
=
open
(
alt_file
,
O_WRONLY
|
O_CREAT
|
O_CLOEXEC
,
fd
=
open
(
alt_file
,
O_WRONLY
|
O_CREAT
|
O_
TRUNC
|
O_
CLOEXEC
,
S_IRUSR
|
S_IWUSR
|
S_IRGRP
|
S_IWGRP
|
S_IROTH
|
S_IWOTH
);
if
(
fd
<
0
)
goto
on_error
;
...
...
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