No backward zone name entries in

Herton Ronaldo Krzesinski herton at
Fri May 2 18:25:44 UTC 2008


Currently it seems timezone in general has a problem related to backward zone 
names and entries in Every time the name of a zone changes, its 
entry is replaced in file and added to backward file as a Link, 
until now no problem, but after you install timezone how you can get the entry when using the old zone name? Is there a way to do this, or 
shouldn't both the new and old zone name stay in

For now I made this set of commands to add back zone names to based 
on backward file:

chmod +w
echo -e "\n# zone info for backward zone names" >>
cat backward | grep Link | while read link curr old; do
	if [ -z "$curr" -o -z "$old" ]; then
		echo "Error processing backward entry for"
		exit 1
	cat | grep -v '^#' | grep "$curr" | \
	while read l; do
		if [ "`echo \"$l\" | awk 'BEGIN { FS = \"[\t]\" } \
		     { print $3 }'`" = "$curr" ]; then
			echo "$l" | sed "s|$curr|$old|" >> \
				|| echo ERROR >>
			echo ERROR >>
if grep -q "^ERROR"; then
	echo "Error adding backward entries to"
	exit 1

Without old zone names in, problems like this can happen when 
applications still use old zone names:

Other solution would be to just install backward file in the system to allow 
applications to know the zone that changed names and use the new name.


More information about the tz mailing list