Merge pull request #736 from mrunalp/rootfs_fix

Fix for runc failing when rootfs has a trailing slash
This commit is contained in:
Michael Crosby
2016-04-11 10:58:05 -07:00
+1 -1
View File
@@ -52,7 +52,7 @@ func (v *ConfigValidator) rootfs(config *configs.Config) error {
if cleaned, err = filepath.EvalSymlinks(cleaned); err != nil {
return err
}
if config.Rootfs != cleaned {
if filepath.Clean(config.Rootfs) != cleaned {
return fmt.Errorf("%s is not an absolute path or is a symlink", config.Rootfs)
}
return nil