--- rpms/e-smith-tinydns/sme9/e-smith-tinydns-2.4.0_add_hostname_following_dhcpdleases_hostname.patch 2015/01/09 23:33:20 1.3 +++ rpms/e-smith-tinydns/sme9/e-smith-tinydns-2.4.0_add_hostname_following_dhcpdleases_hostname.patch 2015/01/12 20:59:17 1.4 @@ -50,7 +50,7 @@ diff -Nur e-smith-tinydns-2.4.0/root/etc + # copy of dhcpd.leases file to /tmp because working directly on the original + # is not a good idea + use File::Copy; -+ copy('/var/lib/dhcpd/dhcpd.leases', '/tmp/dhcpd.leases') ++ copy('/var/lib/dhcpd/dhcpd.leases', '/tmp/tmpdhcpd.leases') + or die ("Error dhcp-dns Service : Can't copy the /var/lib/dhcpd/dhcpd.leases"); + + #Text::DHCPparse forked because it doesn't allow to retrieve the end of lease @@ -84,7 +84,7 @@ diff -Nur e-smith-tinydns-2.4.0/root/etc +} + + # now we parse the leases -+ $return = leaseparse('/tmp/dhcpd.leases'); ++ $return = leaseparse('/tmp/tmpdhcpd.leases'); + + # variable with local domain value (default is mycompamy.local) + my $localdomain = get_local_domainname; @@ -113,8 +113,8 @@ diff -Nur e-smith-tinydns-2.4.0/root/etc + } + } + # remove the temp file -+ system ("rm -f /tmp/dhcpd.leases") ==0 -+ or die ("Error dhcp-dns Service : Can't rm the /tmp/dhcpd.leases"); ++ system ("rm -f /tmp/tmpdhcpd.leases") ==0 ++ or die ("Error dhcp-dns Service : Can't rm the /tmp/tmpdhcpd.leases"); +} diff -Nur e-smith-tinydns-2.4.0/root/var/service/dhcp-dns/dhcp-dns e-smith-tinydns-2.4.0.bz2388/root/var/service/dhcp-dns/dhcp-dns --- e-smith-tinydns-2.4.0/root/var/service/dhcp-dns/dhcp-dns 1970-01-01 01:00:00.000000000 +0100