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
7d714159
Unverified
Commit
7d714159
authored
Feb 15, 2021
by
Christian Brauner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
confile_utils: normalize paths in config items
Signed-off-by:
Christian Brauner
<
christian.brauner@ubuntu.com
>
parent
ee94a8b5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
confile_utils.c
src/lxc/confile_utils.c
+7
-1
No files found.
src/lxc/confile_utils.c
View file @
7d714159
...
@@ -650,7 +650,13 @@ int set_config_string_item_max(char **conf_item, const char *value, size_t max)
...
@@ -650,7 +650,13 @@ int set_config_string_item_max(char **conf_item, const char *value, size_t max)
int
set_config_path_item
(
char
**
conf_item
,
const
char
*
value
)
int
set_config_path_item
(
char
**
conf_item
,
const
char
*
value
)
{
{
return
set_config_string_item_max
(
conf_item
,
value
,
PATH_MAX
);
__do_free
char
*
normalized
=
NULL
;
normalized
=
lxc_deslashify
(
value
);
if
(
!
normalized
)
return
syserrno
(
-
errno
,
"Failed to normalize path config item"
);
return
set_config_string_item_max
(
conf_item
,
normalized
,
PATH_MAX
);
}
}
int
set_config_bool_item
(
bool
*
conf_item
,
const
char
*
value
,
bool
empty_conf_action
)
int
set_config_bool_item
(
bool
*
conf_item
,
const
char
*
value
,
bool
empty_conf_action
)
...
...
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