projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ad8e66d
)
namespace: we always use a root_directory now
author
Alan Jenkins
<alan.christopher.jenkins@gmail.com>
Wed, 29 Aug 2018 22:38:40 +0000
(23:38 +0100)
committer
Yu Watanabe
<watanabe.yu+github@gmail.com>
Sat, 1 Sep 2018 08:23:01 +0000
(17:23 +0900)
We changed to always setup the new namespace in a separate directory
(commit 0722b35)
src/core/namespace.c
patch
|
blob
|
history
diff --git
a/src/core/namespace.c
b/src/core/namespace.c
index
c7ccaa5
..
0cfe3eb
100644
(file)
--- a/
src/core/namespace.c
+++ b/
src/core/namespace.c
@@
-419,11
+419,7
@@
static int mount_path_compare(const void *a, const void *b) {
static int prefix_where_needed(MountEntry *m, size_t n, const char *root_directory) {
size_t i;
- /* Prefixes all paths in the bind mount table with the root directory if it is specified and the entry needs
- * that. */
-
- if (!root_directory)
- return 0;
+ /* Prefixes all paths in the bind mount table with the root directory if the entry needs that. */
for (i = 0; i < n; i++) {
char *s;