Bug#321076: With filesystem ACLS,
write access to a folder is not recognized
Rainer Schöpf
rainer.schoepf at proteosys.com
Wed Aug 3 12:33:26 UTC 2005
Hi,
on Wed, 3 Aug 2005, Joachim Breitner wrote in response to my bug report:
> > Mail::Box::File ignores this, claiming the folder in question is
> > readonly. It seems that it only uses "-w" to determine the access rights,
> > which gives the wrong naswer if ACLs are used.
>
> Isn't that then a bug in the "-w" functionality of perl, or is it
> explicitly said to ignore ACLs? And could you give us a hint how the
> module _should_ check for writability?
The perl documentation says explicitly that -w and friends only look at
the mode bits, not at ACLs.
Even if -w did respect local filesystem ACLs, it would not work with
certain network file systems, for example AFS.
I'm afraid that only safe way to check for writability is to try to
open a file.
Cheers,
Rainer
More information about the pkg-perl-maintainers
mailing list