diff options
Diffstat (limited to 'src/main/tools')
-rw-r--r-- | src/main/tools/linux-sandbox-pid1.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main/tools/linux-sandbox-pid1.cc b/src/main/tools/linux-sandbox-pid1.cc index d8ff4547b3..2aba1273bf 100644 --- a/src/main/tools/linux-sandbox-pid1.cc +++ b/src/main/tools/linux-sandbox-pid1.cc @@ -297,8 +297,7 @@ static void MountFilesystems() { static bool ShouldBeWritable(char *mnt_dir) { mnt_dir += strlen(opt.sandbox_root_dir); - char *working_parent = dirname(strdupa(opt.working_dir)); - if (strncmp(working_parent, mnt_dir, strlen(working_parent)) == 0) { + if (strcmp(mnt_dir, opt.working_dir) == 0) { return true; } |