Skip to content

Commit

Permalink
Merge pull request #1128 from brauner/2016-08-14/fix_text_file_busy
Browse files Browse the repository at this point in the history
tools: use fclose() after fdopen() + add newline
  • Loading branch information
stgraber committed Aug 14, 2016
2 parents 4b281e1 + b44c42e commit b997714
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lxc/tools/lxc_copy.c
Expand Up @@ -454,7 +454,7 @@ static int do_clone_ephemeral(struct lxc_container *c,

if (arg->tmpfs && !my_args.quiet)
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) {
clone->want_daemonize(clone, true);
Expand Down Expand Up @@ -863,7 +863,7 @@ static char *mount_tmpfs(const char *oldname, const char *newname,
goto err_close;
}

close(fd);
fclose(fp);
return premount;

err_close:
Expand Down

0 comments on commit b997714

Please sign in to comment.