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
9253c083
Unverified
Commit
9253c083
authored
Mar 26, 2021
by
Christian Brauner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
log: avoid regressions for relative log paths
We need to allow relative log paths. Signed-off-by:
Christian Brauner
<
christian.brauner@ubuntu.com
>
parent
71cfd6cc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
6 deletions
+0
-6
confile.c
src/lxc/confile.c
+0
-3
log.c
src/lxc/log.c
+0
-3
No files found.
src/lxc/confile.c
View file @
9253c083
...
@@ -1458,9 +1458,6 @@ static int set_config_log_file(const char *key, const char *value,
...
@@ -1458,9 +1458,6 @@ static int set_config_log_file(const char *key, const char *value,
return
0
;
return
0
;
}
}
if
(
!
abspath
(
value
))
return
ret_errno
(
EINVAL
);
/*
/*
* Store these values in the lxc_conf, and then try to set for actual
* Store these values in the lxc_conf, and then try to set for actual
* current logging.
* current logging.
...
...
src/lxc/log.c
View file @
9253c083
...
@@ -492,9 +492,6 @@ static int build_dir(const char *name)
...
@@ -492,9 +492,6 @@ static int build_dir(const char *name)
if
(
is_empty_string
(
name
))
if
(
is_empty_string
(
name
))
return
ret_errno
(
EINVAL
);
return
ret_errno
(
EINVAL
);
if
(
!
abspath
(
name
))
return
ret_errno
(
EINVAL
);
/* Make copy of the string since we'll be modifying it. */
/* Make copy of the string since we'll be modifying it. */
n
=
strdup
(
name
);
n
=
strdup
(
name
);
if
(
!
n
)
if
(
!
n
)
...
...
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