[vhffs-dev] [544] Oops..

[ Thread Index | Date Index | More vhffs.org/vhffs-dev Archives ]


Revision: 544
Author:   gradator
Date:     2007-04-07 20:49:35 +0000 (Sat, 07 Apr 2007)

Log Message:
-----------
Oops.. such a strange bug :)

Modified Paths:
--------------
    branches/vhffs_4.1/vhffs-api/src/Vhffs/Services/DNS.pm
    trunk/vhffs-api/src/Vhffs/Services/DNS.pm


Modified: branches/vhffs_4.1/vhffs-api/src/Vhffs/Services/DNS.pm
===================================================================
--- branches/vhffs_4.1/vhffs-api/src/Vhffs/Services/DNS.pm	2007-04-06 22:56:59 UTC (rev 543)
+++ branches/vhffs_4.1/vhffs-api/src/Vhffs/Services/DNS.pm	2007-04-07 20:49:35 UTC (rev 544)
@@ -627,7 +627,7 @@
 	my ($second,$minutes,$hours,$day,$month,$year) = localtime(time);
 	my $newserial = sprintf('%.4u%.2u%.2u01',$year+1900,$month+1,$day);
 
-    if( $self->{serial} =~ /^$year$month$day/  ||  $self->{serial} > $newserial ) {
+    if( $self->{serial} =~ /^$newserial/  ||  $self->{serial} > $newserial ) {
         return ($self->{serial} + 1);
     } else {
         return ($newserial);

Modified: trunk/vhffs-api/src/Vhffs/Services/DNS.pm
===================================================================
--- trunk/vhffs-api/src/Vhffs/Services/DNS.pm	2007-04-06 22:56:59 UTC (rev 543)
+++ trunk/vhffs-api/src/Vhffs/Services/DNS.pm	2007-04-07 20:49:35 UTC (rev 544)
@@ -715,7 +715,7 @@
 	my ($second,$minutes,$hours,$day,$month,$year) = localtime(time);
 	my $newserial = sprintf('%.4u%.2u%.2u01',$year+1900,$month+1,$day);
 
-	if( $self->{SOA}->{serial} =~ /^$year$month$day/  ||  $self->{SOA}->{serial} > $newserial )
+	if( $self->{SOA}->{serial} =~ /^$newserial/  ||  $self->{SOA}->{serial} > $newserial )
 	{
 		$self->{SOA}->{serial}++;
 	}


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/