mirror of
https://github.com/google/nsjail.git
synced 2026-08-30 18:41:30 -07:00
mnt: function rename
This commit is contained in:
4
mnt.cc
4
mnt.cc
@@ -220,7 +220,7 @@ static bool mountPt(mount_t* mpt, const char* newroot, const char* tmpdir) {
|
||||
return true;
|
||||
}
|
||||
|
||||
static bool remount(const mount_t& mpt) {
|
||||
static bool remountPt(const mount_t& mpt) {
|
||||
if (!mpt.mounted) {
|
||||
return true;
|
||||
}
|
||||
@@ -417,7 +417,7 @@ static bool initNsInternal(nsjconf_t* nsjconf) {
|
||||
}
|
||||
|
||||
for (const auto& p : nsjconf->mountpts) {
|
||||
if (!remount(p) && p.is_mandatory) {
|
||||
if (!remountPt(p) && p.is_mandatory) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user