Unverified Commit f327a062 by Christian Brauner Committed by GitHub

Merge pull request #3112 from avkvl/fix_count_user_network_interfaces

try to fix search user instead of search substring
parents 72f22067 9ed8c96f
...@@ -444,7 +444,8 @@ static char *find_line(char *buf_start, char *buf_end, char *name, ...@@ -444,7 +444,8 @@ static char *find_line(char *buf_start, char *buf_end, char *name,
if (strncmp(buf_start, name, strlen(name))) if (strncmp(buf_start, name, strlen(name)))
*found = false; *found = false;
else else
*owner = true; if (strlen(name) == (size_t)(end_of_word - buf_start))
*owner = true;
buf_start = end_of_word + 1; buf_start = end_of_word + 1;
while ((buf_start < buf_end) && isblank(*buf_start)) while ((buf_start < buf_end) && isblank(*buf_start))
......
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