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)
commit46e17b26ffcbe53b017f2acf9d13e685b0fd745b
treeca03291eb88b6766540029605c36470f94f15c45
parent06b397912bf4d3ad97119930de313339be02cecd
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
invoke/delegate.go