Welcome, Guest. Please login or register.
Did you miss your activation email?
Wednesday 24 April 2024, 02:40:26 am

Login with username, password and session length

CLICK HERE for the The official Endian Roadmap and Issue tracker
14247 Posts in 4376 Topics by 6493 Members
Latest Member: thiagodod
Search:     Advanced search
+  EFW Support
|-+  Support
| |-+  General Support
| | |-+  How to apply patch?
0 Members and 0 Guests are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: How to apply patch?  (Read 4082 times)
vondie
Full Member
***
Offline Offline

Posts: 22


« on: Saturday 09 October 2010, 12:05:13 am »

How to apply the following patch?

----------------------------------------------------------------------
Index: ids.cgi
===================================================================
--- ids.cgi (revision 23991)
+++ ids.cgi (working copy)
@@ -245,14 +245,14 @@
     if (-e $conffile) {
         readhash($conffile, \%timeconf);
     }
- if ($conf->{'TIMEZONE'} =~ /^$/) {
+ if ($timeconf{'TIMEZONE'} =~ /^$/) {
         my %mainhash = ();
         my $mainconf = \%mainhash;
         readhash($mainsettings, $mainconf);
- $conf->{'TIMEZONE'} = $mainconf->{'TIMEZONE'};
- $conf->{'TIMEZONE'} =~ s+/usr/share/zoneinfo/(posix/)?++;
+ $timeconf{'TIMEZONE'} = $mainconf->{'TIMEZONE'};
+ $timeconf{'TIMEZONE'} =~ s+/usr/share/zoneinfo/(posix/)?++;
     }
- my $tz = DateTime::TimeZone->new( name => $conf->{'TIMEZONE'} );
+ my $tz = DateTime::TimeZone->new( name => $timeconf{'TIMEZONE'} );
     $dt->set_time_zone($tz);
     return $dt->strftime("%d.%m.%Y, %H:%M:%S");
 }
Logged
Pages: [1] Go Up Print 
« previous next »
Jump to:  

Page created in 0.047 seconds with 18 queries.
Powered by SMF 1.1 RC2 | SMF © 2001-2005, Lewis Media Design by 7dana.com