mirror of
https://github.com/webmin/webmin.git
synced 2026-08-17 21:00:28 +01:00
Handle case where same device is mounted twice
http://www.virtualmin.com/node/18280
This commit is contained in:
@@ -776,10 +776,10 @@ local $mm = $module_info{'usermin'} ? "usermount" : "mount";
|
||||
local ($m, %mtab);
|
||||
foreach $m (&foreign_call($mm, "list_mounted", 1)) {
|
||||
if ($m->[3] =~ /loop=([^,]+)/) {
|
||||
$mtab{&resolve_and_simplify("$1")} = $m->[0];
|
||||
$mtab{&resolve_and_simplify("$1")} ||= $m->[0];
|
||||
}
|
||||
else {
|
||||
$mtab{&resolve_and_simplify($m->[1])} = $m->[0];
|
||||
$mtab{&resolve_and_simplify($m->[1])} ||= $m->[0];
|
||||
}
|
||||
}
|
||||
return %mtab;
|
||||
|
||||
Reference in New Issue
Block a user