<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2668" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>If you find your Cygwin links don't work (eg. some 
commands do nothing or get stuck in a loop):</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>For some reason, my latest Cygwin install created 
nonworking links. </FONT><FONT face=Arial size=2>So I converted each tiny file 
containing &lt;symlink&gt; at the start to a real symlink. It's simple enough to 
write that I'm not sure it's worth posting, nor if anyone else has seen this 
same problem, but here it is. There's no error-checking; use at your own risk. 
200 is arbitrary, and a bit large, but it seems reasonably safe to assume that a 
file starting with &lt;symlink&gt; less than 200 bytes is supposed to be a 
symlink (not a regular file).</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>$ cd / ; find . -xdev -name "*bin" -type d&nbsp; 
-exec sh -c 'echo {}; cd {}; fixlinks.pl' \;</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>$ cat 
/usr/bin/fixlinks.pl<BR>#!perl<BR>while($filename = 
&lt;*&gt;)<BR>{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
$atime,$mtime,$ctime,$blksize,$blocks)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
= stat($filename);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs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