On Thu, 15 Dec 2005, James Vega wrote:
> Axel,
>
> Attached is a simplistic patch to fix a problem with builtin_source. If
> one attempts to ". some_directory", fish will get stuck in an infinite
> loop. This patch requires a normal file as an argument. It would
> probably be better to still allow symbolic links as long as they point
> to an actual file, but this at least puts a band-aid over the immediate
> problem.
Thanks!
Actually, the stat call follows symbolic links, so your patch works
as is.
On the other hand, the stat buffer is still tested, even if the call
to stat fails, which could cause crashes on some systems. I tweaked
your patch to simply bail out if the stat call failed.
>
> James
> --
> GPG Key: 1024D/61326D40 2003-09-02 James Vega <[EMAIL PROTECTED]>
>
--
Axel
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Fish-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fish-users