Sat 29 Sep 2012 03:43:25 AM UTC, original submission:
davfs2-1.4.7, including the source code repository version as of this writing, assumes option arguments precede the operands (the non-option arguments) on the command line.
However on slackware 13.37 the `mount` command invokes the davfs mount command with the "-o mountopts,.." arguments <em>after</em> the <em>device</em> and <em>mountpoint</em> arguments, like this:
/sbin/mount.davfs \
https://storage-file-eu.gmx.com/ \
./gmx-file-storage \
-o rw,nosuid,nodev,noauto,user,_netdev,exec
In this case, mount.davfs will exit with the error message "too many arguments".
To overcome this without changes on the davfs2 source code, I wrote a simple wrapper executable that re-arranges the arguments on the command line, than exec's the real mount.davfs (a script with the same purpose would not work here, `mount` command will not run it).
It is attached here if anyone else runs into the problem, but I really think webdavfs (mount.davfs) should be fixed to allow different order of arguments.
If you are interested I believe I can also provide a patch.
|