[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Problem with ftw from (ice-9 ftw)
From: |
Frank Terbeck |
Subject: |
Re: Problem with ftw from (ice-9 ftw) |
Date: |
Tue, 18 Feb 2014 23:04:15 +0100 |
User-agent: |
Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3.50 (gnu/linux) |
Ludovic Courtès wrote:
> Frank Terbeck <address@hidden> skribis:
[...]
>> The code treats root like a normal user, disregarding the fact that this
>> particular users will be able to access any file or directory no matter
>> the ownership or mode.
>
> Indeed, that’s a bug. I believe this is fixed with this patch:
[...]
Yes, that patch fixes the problem.
> However, that ‘ftw’ tries to do permission checks by itself is really a
> flaw in the first place, IMO.
Agreed.
>> Indeed, the ‘scandir’ routine from the same module will read the
>> contents of that directory just fine.
>
> I would recommend using ‘scandir’ or ‘file-system-fold’ from (ice-9 ftw)
> for new code.
Thanks. I'll probably rewrite it using ‘file-system-fold’.
Regards, Frank