/* If we encounter a bind mount, don't try to remount
* the source dir too early */
- if (!streq(root, "/"))
- skip_ro = true;
-
+ skip_ro = !streq(root, "/");
free(root);
p = cunescape(path);
assert(head);
if (!(proc_swaps = fopen("/proc/swaps", "re")))
- return -errno;
+ return (errno == ENOENT) ? 0 : -errno;
(void) fscanf(proc_swaps, "%*s %*s %*s %*s %*s\n");