apparmor: s/read()/lxc_read_nointr()/g

parent 8367b31e
...@@ -599,7 +599,7 @@ static bool file_is_yes(const char *path) ...@@ -599,7 +599,7 @@ static bool file_is_yes(const char *path)
if (fd < 0) if (fd < 0)
return false; return false;
rd = read(fd, buf, sizeof(buf)); rd = lxc_read_nointr(fd, buf, sizeof(buf));
close(fd); close(fd);
return rd >= 4 && strncmp(buf, "yes\n", 4) == 0; return rd >= 4 && strncmp(buf, "yes\n", 4) == 0;
......
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