/[smeserver]/rpms/e-smith-dnscache/sme10/e-smith-dnscache-2.6.0-loopback.patch
ViewVC logotype

Annotation of /rpms/e-smith-dnscache/sme10/e-smith-dnscache-2.6.0-loopback.patch

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


Revision 1.1 - (hide annotations) (download)
Mon Aug 1 00:35:31 2016 UTC (7 years, 10 months ago) by gzartman
Branch: MAIN
CVS Tags: e-smith-dnscache-2_6_0-4_el7_sme, e-smith-dnscache-2_6_0-6_el7_sme, e-smith-dnscache-2_6_0-3_el7_sme, e-smith-dnscache-2_6_0-5_el7_sme, e-smith-dnscache-2_6_0-9_el7_sme, e-smith-dnscache-2_6_0-8_el7_sme, e-smith-dnscache-2_6_0-7_el7_sme, e-smith-dnscache-2_6_0-10_el7_sme, HEAD
* Sat Jul 30 2016 Greg Zartman <gzartman@koozali.org> 2.6.0-2.sme
- Modify run script to allow for loopback commmunications with other DNS
  servers on the local machine and DNS forwarding [SME: 9715]

1 gzartman 1.1 diff -urbN e-smith-dnscache-2.6.0/root/var/service/dnscache/run e-smith-dnscache-2.6.0-loopback/root/var/service/dnscache/run
2     --- e-smith-dnscache-2.6.0/root/var/service/dnscache/run 2008-10-07 10:35:08.000000000 -0700
3     +++ e-smith-dnscache-2.6.0-loopback/root/var/service/dnscache/run 2016-07-27 22:31:32.000000000 -0700
4     @@ -137,9 +137,9 @@
5     my %access = map { $_ => 1 } @_;
6    
7     my $dir = '/var/service/dnscache/root/ip';
8     - unless (-f "$dir/127.0.0.1")
9     + unless (-f "$dir/127.0.0")
10     {
11     - open F,">$dir/127.0.0.1"
12     + open F,">$dir/127.0.0"
13     || die "Cannot add access file for loopback network: $!\n";
14     close F;
15     }
16     @@ -149,7 +149,7 @@
17    
18     foreach my $aclfile (readdir (ACCESS))
19     {
20     - next if "$aclfile" eq "127.0.0.1";
21     + next if "$aclfile" eq "127.0.0";
22     next if -d "$aclfile";
23     if (exists $access{$aclfile})
24     {
25     @@ -167,7 +167,7 @@
26    
27     foreach my $aclfile (keys %access)
28     {
29     - link "$dir/127.0.0.1", "$dir/$aclfile" or
30     + link "$dir/127.0.0", "$dir/$aclfile" or
31     die "Cannot add network access for $dir/$aclfile: $!\n";
32     }
33     }

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