From fcac12d15059f5bb2503827ad2002ccbdb0d22dd Mon Sep 17 00:00:00 2001 From: Alan Jenkins Date: Thu, 30 Aug 2018 00:20:48 +0100 Subject: [PATCH] namespace: remove redundant .has_prefix=false The MountEntry's added for EMPTY_DIR work very similarly to the TMPFS ones. In both cases, .has_prefix is false. In fact, .has_prefix is false in *all* the MountEntry's we add except for the access mounts (READONLY etc). But EMPTY_DIR stuck out by explicitly setting .has_prefix = false. Let's remove that. --- src/core/namespace.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/core/namespace.c b/src/core/namespace.c index 0cfe3eb114b..7d12d6c330a 100644 --- a/src/core/namespace.c +++ b/src/core/namespace.c @@ -265,7 +265,6 @@ static int append_empty_dir_mounts(MountEntry **p, char **strv) { .path_const = *i, .mode = EMPTY_DIR, .ignore = false, - .has_prefix = false, .read_only = true, .options_const = "mode=755", .flags = MS_NOSUID|MS_NOEXEC|MS_NODEV|MS_STRICTATIME, -- 2.47.3