diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 406a45a96..0228a11e9 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,3 +1,7 @@
+2006-02-13  Igor Peshansky  <pechtcha@cs.nyu.edu>
+
+	* gentls_offsets: Fix typo in error message.
+
 2006-02-10  Christopher Faylor  <cgf@timesys.com>
 
 	* fhandler_process.cc (format_process_stat): Use cygwin-derived start
diff --git a/winsup/cygwin/gentls_offsets b/winsup/cygwin/gentls_offsets
index 322751849..931eac3f8 100755
--- a/winsup/cygwin/gentls_offsets
+++ b/winsup/cygwin/gentls_offsets
@@ -74,7 +74,7 @@ system @ARGV, '-o', "/tmp/$$-1.cc", '-E', "/tmp/$$.cc";
 system 'g++', '-m32', '-o', "/tmp/$$.a.out", "/tmp/$$-1.cc" and
 ($? == 127 && system 'c++', '-m32', '-o', "/tmp/$$.a.out", "/tmp/$$-1.cc") and
 die "$0: couldn't generate executable for offset calculation \"/tmp/$$.a.out\" - $!\n";
-open(TLS_OUT, '>', $tls_out) or die "$0: couldn't open tls index file \"tls_out\" - $!\n";
+open(TLS_OUT, '>', $tls_out) or die "$0: couldn't open tls index file \"$tls_out\" - $!\n";
 open(OFFS, "/tmp/$$.a.out|") or die "$0: couldn't run \"/tmp/$$.a.out\" - $!\n";
 print TLS_OUT <OFFS>;
 close OFFS;