[lxc-devel] [PATCH v4] Parse rootfs->path
Christian Brauner
christianvanbrauner at gmail.com
Tue Oct 20 19:21:47 UTC 2015
A fresh set of eyes would be nice. :)
New solution:
Use strstr() to search for ":/".
If we find ":/" move the string to "/".
Check for a second ":/".
If we find it replace ':' with '\0'.
If we do not find ":/" return strdup(rootfs->path).
Christian Brauner (1):
Parse rootfs->path
src/lxc/conf.c | 101 +++++++++++++++++++++++++++++++++++++++++++--------------
1 file changed, 76 insertions(+), 25 deletions(-)
--
2.6.1
More information about the lxc-devel
mailing list