`mount` command and POSIX Utility Syntax Guidelines

Timothy Madden <[email protected]>
Newsgroups gmane.linux.slackware
Message-ID <[email protected]>
Hello

I have a strange problem that I can not mount a DAV folder with the 
davfs2 filesystem, because I usually keep POSIXLY_CORRECT environment 
variable set. The var allows me to keep an "aliases" file (similar to 
~/.basrc) and change it when needed if I put the file name in the ENV 
variable.

The problem is a mount sub-command invoked by `mount` (like 
`mount.davfs`), that uses glibc to parse command line, follows POSIX 
guidelines in this case and expects options and option-arguments to 
appear before any operands (which in this case are the mount device and 
the mount point).

The `mount` command, on the other hand, does not follow POSIX guidelines 
and invokes `mount.davfs` like:
   /sbin/mount.davfs \
          https://storage-file-eu.gmx.com/ \
          ./gmx-file-storage \
          -o rw,nosuid,nodev,noauto,user,_netdev,exec
That is, with the options after the operands.

Subsequently the mount command returns and error when mounting my DAV 
folders. Can the `mount` please be fixed to follow POSIX Utility Syntax 
Guidelines ? At least when POSIXLY_CORRECT is set in the environment ?

I have Slackware 13.37 updated from Slackware-current, 32 bit.

See also the mount.davfs report at
     http://savannah.nongnu.org/support/?108145

Thank you,
Timothy Madden
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.