spec, libcni, pkg/invoke: Use OS-agnostic separator when parsing CNI_PATH
authorOnur <onur.filiz@microsoft.com>
Sat, 28 Jan 2017 21:30:00 +0000 (13:30 -0800)
committerOnur Filiz <onur.filiz@microsoft.com>
Sun, 29 Jan 2017 00:47:58 +0000 (16:47 -0800)
commit0d9a1d70f80180fef9060a3ecf9a5d35c270a74c
tree7914971684133b0bfeb0bac54fa0534857ea770f
parentc4271dba67fa09ee07170364d2f97a3c95d651f3
spec, libcni, pkg/invoke: Use OS-agnostic separator when parsing CNI_PATH

Hardcoding the list separator character as ":" causes CNI to fail when parsing
CNI_PATH on other operating systems. For example, Windows uses ";" as list
separator because ":" can legally appear in paths such as "C:\path\to\file".
This change replaces use of ":" with OS-agnostic APIs or os.PathListSeparator.

Fixes #358
SPEC.md
cnitool/cni.go
libcni/api.go
pkg/invoke/delegate.go