xdg-helper: Fix recursive mounts of other root dirs

tingping/wmclass
Alexander Larsson 2015-01-16 10:08:25 +01:00
parent 42971313b8
commit 9eafe24687
1 changed files with 1 additions and 1 deletions

View File

@ -605,7 +605,7 @@ mount_extra_root_dirs (int readonly)
if (mkdir (dirent->d_name, 0755) != 0)
die_with_error (dirent->d_name);
if (bind_mount (path, dirent->d_name, BIND_RECURSIVE | readonly ? BIND_READONLY : 0))
if (bind_mount (path, dirent->d_name, BIND_RECURSIVE | (readonly ? BIND_READONLY : 0)))
die_with_error ("mount root subdir %s", dirent->d_name);
}