i've tried using davfs2. I can mount the webdav disk, but the
permissions of the files/dirs are all funny.
I hacked a bit on your source (or tried at least) but couldn't find the
This s what i get when listing the mounted webdav resource. I've
ounted it with -o mode=121 (this gets reported by the log i've made
in debug mode)
---x-wx--x 1 sgr sgr 4523885 Mar 31 22:45 Zwan -
d--x-w---x 1 sgr sgr 512 Mar 31 22:51 raymond/
Directories get the permissions i have entered on the mount command.
Files (that are not executable on the dav server) get x-bits.
I would expect so see file get the permissions i specified on the mount,
and the directory get +w for all r's it has.
Can you help me find this bug by explaining a bit of the structure of
Below i included a patch for the parsing of the -o option. Your code was
a bit big.. ;)
RCS file: /cvsroot/dav/davfs2/src/util.c,v
retrieving revision 1.10
diff -r1.10 util.c
< mopt->mode = atoi(value);
> mopt->mode = strtol(value, (char **)NULL, 8);
< mopt->mode = dav_dec2mode(mopt->mode);