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
57169400
Unverified
Commit
57169400
authored
Apr 07, 2020
by
Christian Brauner
Committed by
Stéphane Graber
Apr 08, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lxc_user_nic: continue when we failed to find a group
Closes #3361. Signed-off-by:
Christian Brauner
<
christian.brauner@ubuntu.com
>
parent
e8bb9e4f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
lxc_user_nic.c
src/lxc/cmd/lxc_user_nic.c
+3
-6
No files found.
src/lxc/cmd/lxc_user_nic.c
View file @
57169400
...
...
@@ -200,13 +200,10 @@ static char **get_groupnames(void)
}
buf
=
new_buf
;
}
if
(
!
grentp
)
{
if
(
ret
==
0
)
usernic_error
(
"%s"
,
"Could not find matched group record
\n
"
);
CMD_SYSERROR
(
"Failed to get group name: %u
\n
"
,
group_ids
[
i
]);
return
NULL
;
}
/* If a group is not found, just ignore it. */
if
(
!
grentp
)
continue
;
groupnames
[
i
]
=
strdup
(
grent
.
gr_name
);
if
(
!
groupnames
[
i
])
{
...
...
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