summaryrefslogtreecommitdiff
path: root/pkg/spec
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2018-12-28 13:09:31 -0500
committerDaniel J Walsh <dwalsh@redhat.com>2018-12-28 13:10:15 -0500
commitc141c5cfd2ce1cb43530daf82203981d5a752ceb (patch)
tree763dcee6e60aac10d8eea0a242555ddf1a0410ce /pkg/spec
parentc50332d057a148f6ffa7879e99e969cf97af9878 (diff)
downloadpodman-c141c5cfd2ce1cb43530daf82203981d5a752ceb.tar.gz
podman-c141c5cfd2ce1cb43530daf82203981d5a752ceb.tar.bz2
podman-c141c5cfd2ce1cb43530daf82203981d5a752ceb.zip
Fix handling of symbolic links
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'pkg/spec')
-rw-r--r--pkg/spec/config_linux.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/spec/config_linux.go b/pkg/spec/config_linux.go
index f3e200262..eccd41ff9 100644
--- a/pkg/spec/config_linux.go
+++ b/pkg/spec/config_linux.go
@@ -74,7 +74,7 @@ func devicesFromPath(g *generate.Generator, devicePath string) error {
return nil
}
- return addDevice(g, devicePath)
+ return addDevice(g, strings.Join(append([]string{resolvedDevicePath}, devs[1:]...), ":"))
}
func addDevice(g *generate.Generator, device string) error {