Commit 26c03f6b by Stéphane Graber

Fix regression in errno handling cherry-pick

parent 27cc55bf
...@@ -2513,10 +2513,7 @@ static int setup_mount_entries(const struct lxc_rootfs *rootfs, struct lxc_list ...@@ -2513,10 +2513,7 @@ static int setup_mount_entries(const struct lxc_rootfs *rootfs, struct lxc_list
file = tmpfile(); file = tmpfile();
if (!file) { if (!file) {
int saved_errno = errno; ERROR("Could not create temporary file: %s.", strerror(errno));
if (fd != -1)
close(fd);
ERROR("Could not create mount entry file: %s.", strerror(saved_errno));
return -1; return -1;
} }
......
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