[Ecls-list] Probable si:mkdir bug

Juan Jose Garcia-Ripoll juanjose.garciaripoll at googlemail.com
Wed Oct 21 17:40:03 UTC 2009


I agree that mkdir may be wrong. It assumed that you are passing a
valid director syntax, which for Common Lisp means ending in / or \
depending on your platform. Indeed, I did not expect people to use it
directly, but rather ensure-directories-exist, but I see you are
enforcing some permissions. However, I will look into that issue.

Juanjo

On Tue, Oct 20, 2009 at 5:01 AM, Matthew Mondor
<mm_lists at pulsar-zone.net> wrote:
> On Mon, 19 Oct 2009 15:23:59 -0400
> Brit Butler <redline6561 at gmail.com> wrote:
>
>> Dear ECL devs,
>>
>> si:mkdir appears to trim the last character of it's directory argument. That
>> is if I called (si:mkdir "cookies" #o755) a directory called cookie would be
>> created. I assume the problem is in the si_coerce_to_filename call in
>> pathname.d. I regret that I do not have a patch to fix it at this time. My C
>> chops are weak. Sorry.
>>
>> Regards,
>> Brit Butler
>
> I couldn't test anything or look much at it tonight, but perhaps that
> another suspect code section might be in si_mkdir():
>
>        if (filename->base_string.fillp)
>            filename->base_string.self[--filename->base_string.fillp] = 0;
>
> where perhaps the -- is unnecessary (assuming that string does have a
> fill pointer)?
> --
> Matt
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> Ecls-list mailing list
> Ecls-list at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/ecls-list
>



-- 
Instituto de Física Fundamental, CSIC
c/ Serrano, 113b, Madrid 28006 (Spain)
http://juanjose.garciaripoll.googlepages.com




More information about the ecl-devel mailing list