e0196c9a12
We need to capture `c` within the loop, otherwise all of the entries of `m` end up pointing to the same thing, which is the last cap in `range caps`. The symptom was that all caps were enabled/disabled based on the last cap's setting and not their own. Add a test for this. Signed-off-by: Ian Campbell <ijc@docker.com> |
||
---|---|---|
.. | ||
pb | ||
caps.go | ||
caps_test.go |