summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/Xconfig/card.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/Xconfig/card.pm b/perl-install/Xconfig/card.pm
index 2151406d3..4edb0d69a 100644
--- a/perl-install/Xconfig/card.pm
+++ b/perl-install/Xconfig/card.pm
@@ -470,7 +470,7 @@ sub libgl_config {
my $wanted = $driver_to_libgl_config{$Driver};
foreach my $file (values %driver_to_libgl_config) {
substInFile {
- my ($commented, $s) = /^($comment)?(.*)/;
+ my ($commented, $s) = /^(\Q$comment\E)?(.*)/;
if ($file eq $wanted) {
$_ = "$s\n";
$need_to_run_ldconfig ||= $commented;