Skip to content

Commit

Permalink
Merge pull request #3112 from avkvl/fix_count_user_network_interfaces
Browse files Browse the repository at this point in the history
try to fix search user instead of search substring
  • Loading branch information
Christian Brauner committed Aug 28, 2019
2 parents 72f2206 + 9ed8c96 commit f327a06
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lxc/cmd/lxc_user_nic.c
Expand Up @@ -444,7 +444,8 @@ static char *find_line(char *buf_start, char *buf_end, char *name,
if (strncmp(buf_start, name, strlen(name)))
*found = false;
else
*owner = true;
if (strlen(name) == (size_t)(end_of_word - buf_start))
*owner = true;

buf_start = end_of_word + 1;
while ((buf_start < buf_end) && isblank(*buf_start))
Expand Down

0 comments on commit f327a06

Please sign in to comment.