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

Annotation of /rpms/e-smith-dnscache/sme7/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 15:19:08 2007 UTC (17 years, 5 months ago) by slords
Branch: MAIN
CVS Tags: e-smith-dnscache-1_0_0-13_el4_sme, e-smith-dnscache-1_0_0-6_el4_sme, e-smith-dnscache-1_0_0-12_el4_sme, e-smith-dnscache-1_0_0-11_el4_sme, e-smith-dnscache-1_0_0-7_el4_sme, e-smith-dnscache-1_0_0-8_el4_sme
Import on branch sme7 of package e-smith-dnscache-1.0.0-6.el4.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