Small patch to fix a segfault in cgget when it is invoked as
follows:
cgget CgName
This particular invocation wasn't being tested, so I added a
simple functional test to ensure basic functionality.
Code is available here:
https://github.com/drakenclimber/libcgroup/tree/issues/38
Tests are available here:
https://github.com/drakenclimber/libcgroup-tests/tree/issues/38
Automated tests are passing and results are here:
https://github.com/drakenclimber/libcgroup/runs/2345425112
Code coverage remained the same at 51.0%. I verified
the new logic is being exercised by the functional
tests:
https://coveralls.io/builds/38814870
https://coveralls.io/builds/38814870/source?filename=src%2Ftools%2Fcgget.c#L350
Tom Hromatka (1):
cgget: Fix segfault when no flags provided
src/tools/cgget.c | 20 ++++++++++++++++++--
1 file changed, 18 insertions(+), 2 deletions(-)
--
2.26.2
_______________________________________________
Libcg-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libcg-devel