Merge pull request #1845 from kinvolk/alban/mount-bind-fix1753

Fix regression with mounts with non-absolute source path
This commit is contained in:
Michael Crosby 2018-07-25 10:27:34 -04:00 committed by GitHub
commit b4e2ecb452
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -270,7 +270,7 @@ func createLibcontainerMount(cwd string, m specs.Mount) *configs.Mount {
flags, pgflags, data, ext := parseMountOptions(m.Options)
source := m.Source
device := m.Type
if flags|unix.MS_BIND != 0 {
if flags&unix.MS_BIND != 0 {
if device == "" {
device = "bind"
}