Item2351: Use filetest 'access' instead of 'stat'
Priority: Urgent
Current State: Closed
Released In: 1.0.8
Target Release: patch
Applies To: Engine
Component:
Branches:
The file
.changes
is hindered to be updated.
Foswiki checks file writing rights by default via 'stat'. On a file system like AFS, stat does not return the correct set of information. It is recommended to use 'access' instead.
Add to 'RcsFile.pm':
use filetest 'access';
--
AndreLichtsteiner - 12 Nov 2009
Any file under control of Foswiki's RCS should be writeable for it. why does it need a write access test? doesn't a simple -e suffice?
--
MichaelDaum - 12 Nov 2009
It would seem so, if we don't check for write-ability, we will get a meaninful error message I suppose when the file turns out not to be writeable (just the same as when a .txt is not writeable).
--
KoenMartens - 12 Nov 2009
Is this fixed?
--
KennethLavrsen - 25 Nov 2009
Oops, yes it is (by removing the checks completely).