[lxc-devel] [lxc/lxc] a8e279: lxc-copy: do not use mkostemp and dprintf

GitHub noreply at github.com
Fri Jul 22 20:30:51 UTC 2016


  Branch: refs/heads/master
  Home:   https://github.com/lxc/lxc
  Commit: a8e279fd537184f2300d2b94822bf2a7c63e208b
      https://github.com/lxc/lxc/commit/a8e279fd537184f2300d2b94822bf2a7c63e208b
  Author: Christian Brauner <cbrauner at suse.de>
  Date:   2016-07-22 (Fri, 22 Jul 2016)

  Changed paths:
    M src/lxc/lxc_copy.c

  Log Message:
  -----------
  lxc-copy: do not use mkostemp and dprintf

Fixes android builds:

DSBINDIR=\"/data/lxc/lxc/sbin\"      -I/build/libcap/libcap/include/ -Wall -Werror -MT lxc_copy.o -MD -MP -MF $depbase.Tpo -c -o lxc_copy.o lxc_copy.c &&\
	mv -f $depbase.Tpo $depbase.Po
lxc_copy.c: In function 'mount_tmpfs':
lxc_copy.c:834:2: error: implicit declaration of function 'mkostemp' [-Werror=implicit-function-declaration]
  fd = mkostemp(premount, O_CLOEXEC);
  ^
lxc_copy.c:841:2: error: implicit declaration of function 'dprintf' [-Werror=implicit-function-declaration]
  ret = dprintf(fd, "#! /bin/sh\n"
  ^

Signed-off-by: Christian Brauner <cbrauner at suse.de>


  Commit: 5429ec248a1090edde6285e4bc729641f6f79b57
      https://github.com/lxc/lxc/commit/5429ec248a1090edde6285e4bc729641f6f79b57
  Author: Stéphane Graber <stgraber at stgraber.org>
  Date:   2016-07-22 (Fri, 22 Jul 2016)

  Changed paths:
    M src/lxc/lxc_copy.c

  Log Message:
  -----------
  Merge pull request #1094 from brauner/2016-07-22/fix_android_lxc_copy

lxc-copy: do not use mkostemp and dprintf


Compare: https://github.com/lxc/lxc/compare/bdf278a139ff...5429ec248a10


More information about the lxc-devel mailing list