chicken-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-hackers] [PATCH 3/4] Remove ##sys#expand-home-path.


From: Mario Domenech Goulart
Subject: Re: [Chicken-hackers] [PATCH 3/4] Remove ##sys#expand-home-path.
Date: Tue, 19 Mar 2013 21:48:52 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux)

Hi John,

On Tue, 19 Mar 2013 22:01:45 -0400 John Cowan <address@hidden> wrote:

> Mario Domenech Goulart scripsit:
>
>> b. Drop ##sys#expand-home-path.  Do not implicitly expand ~ and
>>    environment variables in pathnames.  Provide a procedure to expand ~
>>    in pathnames.  That's what this patch implements.
>
> I suggest:
>
>   b2. Keep ##sys#expand-home-path, but make it the identity function.
>       Provide a procedure to expand ~ in pathnames.
>
> That way, the security problem is removed, but we do not have to find
> and fix every reference to ##sys#expand-home-path.

IMO, in this case we should just remove ##sys#expand-home-path, since it
is an internal procedure.  Users should not rely on stability of the
internal API.  By keeping ##sys#expand-home-path as an identity
procedure, we'd be just polluting the core and adding a useless
procedure call to every procedure of the filesystem API.

Best wishes.
Mario
-- 
http://parenteses.org/mario



reply via email to

[Prev in Thread] Current Thread [Next in Thread]