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
80a7b881
Unverified
Commit
80a7b881
authored
Oct 07, 2018
by
Christian Brauner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
parse: remove access() check
We can just fail on open() and not waste an additional syscall. Signed-off-by:
Christian Brauner
<
christian.brauner@ubuntu.com
>
parent
05ed3250
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
4 deletions
+0
-4
confile.c
src/lxc/confile.c
+0
-4
No files found.
src/lxc/confile.c
View file @
80a7b881
...
@@ -2325,10 +2325,6 @@ int lxc_config_read(const char *file, struct lxc_conf *conf, bool from_include)
...
@@ -2325,10 +2325,6 @@ int lxc_config_read(const char *file, struct lxc_conf *conf, bool from_include)
c
.
conf
=
conf
;
c
.
conf
=
conf
;
c
.
from_include
=
from_include
;
c
.
from_include
=
from_include
;
ret
=
access
(
file
,
R_OK
);
if
(
ret
<
0
)
return
-
1
;
/* Catch only the top level config file name in the structure. */
/* Catch only the top level config file name in the structure. */
if
(
!
conf
->
rcfile
)
if
(
!
conf
->
rcfile
)
conf
->
rcfile
=
strdup
(
file
);
conf
->
rcfile
=
strdup
(
file
);
...
...
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