Skip to content

Commit b4e2ecb

Browse files
Merge pull request #1845 from kinvolk/alban/mount-bind-fix1753
Fix regression with mounts with non-absolute source path
2 parents bc14672 + 3321aa1 commit b4e2ecb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libcontainer/specconv/spec_linux.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ func createLibcontainerMount(cwd string, m specs.Mount) *configs.Mount {
270270
flags, pgflags, data, ext := parseMountOptions(m.Options)
271271
source := m.Source
272272
device := m.Type
273-
if flags|unix.MS_BIND != 0 {
273+
if flags&unix.MS_BIND != 0 {
274274
if device == "" {
275275
device = "bind"
276276
}

0 commit comments

Comments
 (0)