Unverified Commit 57169400 by Christian Brauner Committed by Stéphane Graber

lxc_user_nic: continue when we failed to find a group

Closes #3361. Signed-off-by: 's avatarChristian Brauner <christian.brauner@ubuntu.com>
parent e8bb9e4f
......@@ -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]) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment