projects
/
webmin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
249895a
)
Fix bug that prevents sites-available file from being deleted
author
Jamie Cameron
<jcameron@webmin.com>
Sat, 1 Nov 2008 19:25:20 +0000
(19:25 +0000)
committer
Jamie Cameron
<jcameron@webmin.com>
Sat, 1 Nov 2008 19:25:20 +0000
(19:25 +0000)
apache/apache-lib.pl
patch
|
blob
|
history
diff --git
a/apache/apache-lib.pl
b/apache/apache-lib.pl
index
3aeddbb
..
e064ed4
100644
(file)
--- a/
apache/apache-lib.pl
+++ b/
apache/apache-lib.pl
@@
-642,10
+642,11
@@
return $line;
sub delete_file_if_empty
{
local ($file) = @_;
-local $lref = &read_file_lines($file);
+local $lref = &read_file_lines($file
, 1
);
foreach my $l (@$lref) {
return 0 if ($l =~ /\S/);
}
+&unflush_file_lines($file);
unlink($file);
&delete_webfile_link($file);
}