/[smeserver]/rpms/e-smith-dnscache/sme9/e-smith-dnscache-2.4.0-loopback.patch
ViewVC logotype

Contents of /rpms/e-smith-dnscache/sme9/e-smith-dnscache-2.4.0-loopback.patch

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


Revision 1.1 - (show annotations) (download)
Sun Jul 31 04:40:20 2016 UTC (8 years, 3 months ago) by gzartman
Branch: MAIN
CVS Tags: HEAD
Error occurred while calculating annotation data.
* Sun Jun 26 2016 Greg Zartman <gzartman@koozali.org> 2.4.0-2.sme
- Modify run script to allow for loopback commmunications with other
  DNS servers on the local machine and DNS forwarding [SME: 8638]

1 diff -urN e-smith-dnscache-2.4.0/root/var/service/dnscache/run e-smith-dnscache-2.4.0-loopback/root/var/service/dnscache/run
2 --- e-smith-dnscache-2.4.0/root/var/service/dnscache/run 2008-10-07 10:35:08.000000000 -0700
3 +++ e-smith-dnscache-2.4.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