projects
/
webmin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
84e8dd0
)
Handle missing map file base text file better
author
Jamie Cameron
<jcameron@webmin.com>
Mon, 8 Mar 2010 05:43:12 +0000
(21:43 -0800)
committer
Jamie Cameron
<jcameron@webmin.com>
Mon, 8 Mar 2010 05:43:12 +0000
(21:43 -0800)
sendmail/sendmail-lib.pl
patch
|
blob
|
history
diff --git
a/sendmail/sendmail-lib.pl
b/sendmail/sendmail-lib.pl
index
161e9e1
..
2f25bf9
100755
(executable)
--- a/
sendmail/sendmail-lib.pl
+++ b/
sendmail/sendmail-lib.pl
@@
-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;