Ludovic Courtès wrote: > Frank Terbeck <f...@bewatermyfriend.org> 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