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
4134561c
Unverified
Commit
4134561c
authored
Feb 13, 2021
by
Christian Brauner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
log: convert to strequal()
Signed-off-by:
Christian Brauner
<
christian.brauner@ubuntu.com
>
parent
88285cb1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
log.c
src/lxc/log.c
+2
-2
No files found.
src/lxc/log.c
View file @
4134561c
...
@@ -670,7 +670,7 @@ int lxc_log_init(struct lxc_log *log)
...
@@ -670,7 +670,7 @@ int lxc_log_init(struct lxc_log *log)
log_vmname
=
strdup
(
log
->
name
);
log_vmname
=
strdup
(
log
->
name
);
if
(
log
->
file
)
{
if
(
log
->
file
)
{
if
(
str
cmp
(
log
->
file
,
"none"
)
==
0
)
if
(
str
equal
(
log
->
file
,
"none"
)
)
return
0
;
return
0
;
ret
=
__lxc_log_set_file
(
log
->
file
,
1
);
ret
=
__lxc_log_set_file
(
log
->
file
,
1
);
...
@@ -689,7 +689,7 @@ int lxc_log_init(struct lxc_log *log)
...
@@ -689,7 +689,7 @@ int lxc_log_init(struct lxc_log *log)
log
->
lxcpath
=
LOGPATH
;
log
->
lxcpath
=
LOGPATH
;
/* try LOGPATH if lxcpath is the default for the privileged containers */
/* try LOGPATH if lxcpath is the default for the privileged containers */
if
(
!
geteuid
()
&&
str
cmp
(
LXCPATH
,
log
->
lxcpath
)
==
0
)
if
(
!
geteuid
()
&&
str
equal
(
LXCPATH
,
log
->
lxcpath
)
)
ret
=
_lxc_log_set_file
(
log
->
name
,
NULL
,
0
);
ret
=
_lxc_log_set_file
(
log
->
name
,
NULL
,
0
);
/* try in lxcpath */
/* try in lxcpath */
...
...
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