]> git.proxmox.com Git - mirror_lxc.git/commit
lua: implement dirname in C rather than depend on external executable
authorNatanael Copa <ncopa@alpinelinux.org>
Thu, 5 Sep 2013 13:29:20 +0000 (15:29 +0200)
committerStéphane Graber <stgraber@ubuntu.com>
Thu, 5 Sep 2013 23:58:28 +0000 (19:58 -0400)
commitc25c2970a6aabc45ee6375cc127ed45efea2f9bf
tree6d347e58c28866c4c5e4a195552cf533287bbd1d
parentac8255280d2e4348ab0eba5ec6982edc92ee6fbd
lua: implement dirname in C rather than depend on external executable

Instead of popen and run external executable dirname we implement a
dirname in C in the core module.

We also remove the unused basename function.

Signed-off-by: Natanael Copa <ncopa@alpinelinux.org>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
src/lua-lxc/core.c
src/lua-lxc/lxc.lua