guile-devel
[Top][All Lists]
Advanced

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

Re: port-filename and path canonicalization


From: Ludovic Courtès
Subject: Re: port-filename and path canonicalization
Date: Wed, 21 Apr 2010 10:49:05 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux)

Hi,

Thien-Thi Nguyen <address@hidden> writes:

> Another idea is to conceptually separate "filename" to be "directory"
> and "basename" and have file ports maintain the directory portion as a
> file descriptor (or equivalent) internally, exposed through some kind of
> opaque handle.

I think open file ports shouldn’t grant any authority beyond access to
the open file.  Just like an open file descriptor doesn’t convey any
authority beyond access to the underlying file (if we omit ‘..’ lookups
on a directory file descriptor with openat(3)).

Thanks,
Ludo’.





reply via email to

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