]> git.ipfire.org Git - thirdparty/lxc.git/commit
open_without_symlink: Account when prefix is empty string
authorBogdan Purcareata <bogdan.purcareata@nxp.com>
Fri, 8 Jan 2016 15:38:35 +0000 (15:38 +0000)
committerStéphane Graber <stgraber@ubuntu.com>
Thu, 17 Nov 2016 22:44:15 +0000 (17:44 -0500)
commit5ee0980d49b5c16a86c11a2a653140fa16a4a099
tree50ee04fa4f00462c885309050e4171fba6fb1dc4
parente4f62a4d9ee09004903f13117bef8e2a0d13df69
open_without_symlink: Account when prefix is empty string

In the current implementation, the open_without_symlink function
will default to opening the root mount only if the passed rootfs
prefix is null. It doesn't account for the case where this prefix
is passed as an empty string.

Properly handle this second case as well.

Signed-off-by: Bogdan Purcareata <bogdan.purcareata@nxp.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
src/lxc/utils.c