]> git.ipfire.org Git - thirdparty/lxc.git/commit
Replace mktemp() by a new mkifname()
authorStéphane Graber <stgraber@ubuntu.com>
Fri, 9 Aug 2013 09:32:55 +0000 (11:32 +0200)
committerStéphane Graber <stgraber@ubuntu.com>
Fri, 9 Aug 2013 13:05:19 +0000 (15:05 +0200)
commit4a0ba80d62c0d8aeb5c9857749659fdf716c380a
tree915f306a567e5406f507ad834ecae2d7ea21e485
parentb40a606e52c788db85fe1c42d3747483d159b6a5
Replace mktemp() by a new mkifname()

Using mktemp() leads to build time warnings and isn't actually
appropriate for what we want to do as it's checking for the existence of
a file and not a network interface.

Replace those calls by an equivalent mkifname() function which uses the
same template as mktemp but instead checks for existing network
interfaces.

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Acked-by: Serge Hallyn <serge.hallyn@ubuntu.com>
src/lxc/conf.c