projects
/
webmin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3aee447
)
Fix deletion of maps with comments
author
Jamie Cameron
<jcameron@webmin.com>
Wed, 13 Jan 2010 18:43:20 +0000
(10:43 -0800)
committer
Jamie Cameron
<jcameron@webmin.com>
Wed, 13 Jan 2010 18:43:20 +0000
(10:43 -0800)
postfix/postfix-lib.pl
patch
|
blob
|
history
diff --git
a/postfix/postfix-lib.pl
b/postfix/postfix-lib.pl
index
263e919
..
97d084c
100755
(executable)
--- a/
postfix/postfix-lib.pl
+++ b/
postfix/postfix-lib.pl
@@
-1046,7
+1046,7
@@
sub delete_mapping
if (&file_map_type($_[1]->{'map_type'}) || !$_[1]->{'map_type'}) {
# Deleting from a file
local $lref = &read_file_lines($_[1]->{'map_file'});
- local $dl = $lref->[$_[1]->{'line'}];
+ local $dl = $lref->[$_[1]->{'
e
line'}];
local $len = $_[1]->{'eline'} - $_[1]->{'line'} + 1;
if (($dl =~ /^\s*(\/[^\/]*\/[a-z]*)\s+([^#]*)/ ||
$dl =~ /^\s*([^\s]+)\s+([^#]*)/) &&