Fix parse of name in mount options so that "name=myname" is parsed as
"myname" not "name=myname".

Signed-off-by: Justin Bronder <jsbron...@gmail.com>
---
 src/api.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/api.c b/src/api.c
index d6c9d3a..15a3507 100644
--- a/src/api.c
+++ b/src/api.c
@@ -1130,6 +1130,11 @@ int cgroup_init(void)
                        mntopt = strtok_r(mntopt, ",", &strtok_buffer);
                        if (!mntopt)
                                continue;
+
+            mntopt = strstr(mntopt, "=");
+            if (!mntopt || ++mntopt == '\0')
+                continue;
+
                        /*
                         * Check if it is a duplicate
                         */
-- 
2.0.5


------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Libcg-devel mailing list
Libcg-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libcg-devel

Reply via email to