Commits
Kir Kolyshkin authored 2e06c26c4e0
ploop_store_diskdescriptor(): fix for a case when image is in root dir root@mrmber ~]# ploop init -s 1g -f raw /ploop.image Creating raw delta /ploop.image size=2097152 sectors add snapshot {5fbaabe3-6958-40FF-92a7-860e329aab41} Storing /DiskDescriptor.xml Can't resolve : No such file or directory The problem is get_basedir() returns empty string for something like "/img" and then realpath() fails on it. Fix by not calling realpath in case the string is empty. Reported-by: jjs <jjs@mainphrame.com> Signed-off-by: Kir Kolyshkin <kir@openvz.org>