/[smeserver]/rpms/e-smith-dnscache/sme8/e-smith-dnscache-1.0.0.validateNameServer.patch
ViewVC logotype

Annotation of /rpms/e-smith-dnscache/sme8/e-smith-dnscache-1.0.0.validateNameServer.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (hide annotations) (download)
Tue Jun 12 18:34:48 2007 UTC (17 years, 4 months ago) by slords
Branch: MAIN
CVS Tags: e-smith-dnscache-1_0_0-7_el5_sme, e-smith-dnscache-1_0_0-12_el5_sme, e-smith-dnscache-1_0_0-11_el5_sme, e-smith-dnscache-1_0_0-8_el5_sme, e-smith-dnscache-1_0_0-13_el5_sme, e-smith-dnscache-1_0_0-6_el5_sme
Import on branch sme8 of package e-smith-dnscache-1.0.0-6.el5.sme.src.rpm

1 slords 1.1 diff -Nur -x '*.orig' -x '*.rej' e-smith-dnscache-1.0.0/root/var/service/dnscache/run mezzanine_patched_e-smith-dnscache-1.0.0/root/var/service/dnscache/run
2     --- e-smith-dnscache-1.0.0/root/var/service/dnscache/run 2006-03-14 15:59:06.000000000 -0500
3     +++ mezzanine_patched_e-smith-dnscache-1.0.0/root/var/service/dnscache/run 2006-04-30 20:24:13.000000000 -0400
4     @@ -85,8 +85,13 @@
5     my $mask = $net->prop('Mask');
6     my $key = $net->key;
7     my $systemlocalnetwork = $net->prop('SystemLocalNetwork') || 'no';
8     - my $nameserver = $net->prop('NameServer') ||
9     - (($systemlocalnetwork eq 'yes') ? $tinydns_ip : 'none');
10     + my $nameserver = $net->prop('NameServer');
11     + if (defined $nameserver and $nameserver eq $ENV{IP})
12     + {
13     + warn("NameServer property for net $key ($nameserver) would create loop - ignoring\n");
14     + $nameserver = undef;
15     + }
16     + $nameserver ||= ($systemlocalnetwork eq 'yes') ? $tinydns_ip : 'none';
17     push @localnetworks,
18     esmith::util::computeAllLocalNetworkPrefixes ($key, $mask);
19    

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed