<br><br><div class="gmail_quote">On Thu, Jun 24, 2010 at 10:33 AM, Bert Freudenberg <span dir="ltr">&lt;<a href="mailto:bert@freudenbergs.de">bert@freudenbergs.de</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div></div><div class="h5"><br>
<br>
On 24.06.2010, at 19:30, Henrik Johansen wrote:<br>
<br>
&gt;<br>
&gt; There&#39;s a bug in the alias resolution sqGetFilenameFromString in sqUnixMain.c<br>
&gt;<br>
&gt; In the line<br>
&gt; filenameLength = readLink(aCharBuffer, aCharBuffer, MAXPATHLEN)<br>
&gt; It replaces the old link path with the resolved link path, however links may be relative, eg. /bin/sh linking to bash rather than /bin/bash.<br>
&gt;<br>
&gt; Thus, file opening, and other operations using this function will fail if encountering a relative link.<br>
&gt;<br>
&gt; F.ex. print (on Ubuntu, where sh -&gt; dash):<br>
&gt;<br>
&gt; |openedRelative|<br>
&gt; openedRelative := nil.<br>
&gt; [FileStream readOnlyFileNamed: &#39;/bin/sh&#39; do: [:fs | openedRelative := true]] on: FileDoesNotExistException do: [openedRelative := false].<br>
&gt; openedRelative<br>
&gt;<br>
&gt; and you get false.<br>
&gt;<br>
&gt; Cheers,<br>
&gt; Henry<br>
<br>
</div></div>Yeah I&#39;ve been bitten by that too. Do you have a patch? Actually, Ian prefers to be sent a fully patched file ...<br></blockquote><div><br></div><div>You&#39;ll find its fixed in the Cog sources.  Alas there are other changes there-in, but at least that function is not affected by other changes.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<font color="#888888"><br>
- Bert -<br>
<br>
<br>
</font></blockquote></div><br>