Ticket #65 (closed defect: fixed)

Opened 5 years ago

Last modified 5 years ago

Shepherd::MythTV produces an error if your mythtv mysql password has an '=' in it

Reported by: dean@… Owned by:
Priority: minor Milestone:
Component: Shepherd Version: 1.x
Keywords: mythtv.pm augment_timezone Cc:

Description

Shepherd::MythTV produces an error if your mythtv mysql password has an '=' in it

The regexp used to get the fields from the mysql conf file can get confused if there is an '=' sign in the password itself. This causes the augment_timezone postprocessor to fail.

Suggested patch below.

--- MythTV.pm	2007-11-20 18:49:21.000000000 +1300
+++ MythTV.pm-dean	2007-11-20 18:48:46.000000000 +1300
@@ -84,7 +84,7 @@
     while (<F>) 
     {
 	chomp;
-	$db->{$1} = $2 if ($_ =~ /^(DB.*)=(.*)/);
+	$db->{$1} = $2 if ($_ =~ /^(DB[^=]+)=(.*)/);
     }
     close(F);
     return 1;

Change History

Changed 5 years ago by max

  • status changed from new to closed
  • resolution set to fixed

Thanks, addressed by [971].

Note: See TracTickets for help on using tickets.