Unverified Commit a4ccd3a7 by Christian Brauner Committed by Stéphane Graber

uuid: close fd

Fixes: Coverity 1461751. Signed-off-by: 's avatarChristian Brauner <christian.brauner@ubuntu.com>
parent 86652cfb
......@@ -116,7 +116,7 @@ int lxc_id128_write_fd(int fd, lxc_id128_t id)
int lxc_id128_write(const char *p, lxc_id128_t id)
{
int fd = -1;
__do_close int fd = -EBADF;
fd = open(p, O_WRONLY|O_CREAT|O_CLOEXEC|O_NOCTTY|O_TRUNC, 0444);
if (fd < 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