Commit b9977146 by Stéphane Graber Committed by GitHub

Merge pull request #1128 from brauner/2016-08-14/fix_text_file_busy

tools: use fclose() after fdopen() + add newline
parents 4b281e12 b44c42e8
...@@ -454,7 +454,7 @@ static int do_clone_ephemeral(struct lxc_container *c, ...@@ -454,7 +454,7 @@ static int do_clone_ephemeral(struct lxc_container *c,
if (arg->tmpfs && !my_args.quiet) if (arg->tmpfs && !my_args.quiet)
printf("Container is placed on tmpfs.\nRebooting will cause " printf("Container is placed on tmpfs.\nRebooting will cause "
"all changes made to it to be lost!"); "all changes made to it to be lost!\n");
if (!arg->daemonize && arg->argc) { if (!arg->daemonize && arg->argc) {
clone->want_daemonize(clone, true); clone->want_daemonize(clone, true);
...@@ -863,7 +863,7 @@ static char *mount_tmpfs(const char *oldname, const char *newname, ...@@ -863,7 +863,7 @@ static char *mount_tmpfs(const char *oldname, const char *newname,
goto err_close; goto err_close;
} }
close(fd); fclose(fp);
return premount; return premount;
err_close: err_close:
......
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