bash test -w (writeable) always SUCCEED on EncFS + linux-2.6.24.X ?
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
EncFS |
Invalid
|
Undecided
|
Unassigned | ||
linux (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
While putting a sourcecode Archiv tree on an encfs - Filesystem I recognised,
that my shell scripts which check if a file is writeable FAILED, because
if [ -w $file ] then ... always results true (file shows on ls only readonly !)
Environment:
OpenSuSE 10.3, linux-2.6.24.2, FUSE 2.7.2 without kernel module, encfs-1.4.1.1
If I untar the same src - Code Archiv on an normal Reiserfs - Filesystem,
if [ -w $file ] behaves normal. I "feel" it depends on an linux Kernel
update, because on a latest linux-2.6.23.X I reached the same.
If I edit this file via vi - Editor, it shows the readonly file correct as readonly !
=> There must be an combination of Kernel, BASH, encfs which results in
this ERROR. My encfs - Filesystem ist mounted -public !
I'm not able to reproduce with Encfs 1.4.1.1, Fuse 2.7.0, linux 2.6.22:
$ cd crypt
$ touch foo
$ test -w foo && echo rw
rw
$ chmod -w foo
$ test -w foo && echo rw
$