parent
5773b08cf8
commit
ef6f649579
1 changed files with 3 additions and 1 deletions
|
@ -77,7 +77,9 @@ namespace modules {
|
||||||
auto& mount = m_mounts.back();
|
auto& mount = m_mounts.back();
|
||||||
|
|
||||||
while (mtab->next(&mnt)) {
|
while (mtab->next(&mnt)) {
|
||||||
if (strncmp(mnt->mnt_dir, mountpoint.c_str(), strlen(mnt->mnt_dir)) != 0) {
|
if (strlen(mnt->mnt_dir) != mountpoint.size()) {
|
||||||
|
continue;
|
||||||
|
} else if (strncmp(mnt->mnt_dir, mountpoint.c_str(), mountpoint.size()) != 0) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue