mirror of
https://github.com/webmin/webmin.git
synced 2026-03-20 08:40:24 +00:00
Handle missing map file base text file better
This commit is contained in:
@@ -238,6 +238,11 @@ elsif (-r "$dbm.txt") {
|
||||
# Database is like /etc/virtusertable, text is /etc/virtusertable.txt
|
||||
return "$dbm.txt";
|
||||
}
|
||||
elsif ($dbm =~ /^(.*)\.(db|dbm|pag|dir|hash)$/i) {
|
||||
# Database is like /etc/virtusertable.db, text is /etc/virtusertable,
|
||||
# but doesn't exist yet.
|
||||
return $1;
|
||||
}
|
||||
else {
|
||||
# Text and database have same name
|
||||
return $dbm;
|
||||
|
||||
Reference in New Issue
Block a user