On Sat, Sep 10, 2016 at 06:52:39PM +0300, Consus wrote:

> On 03:09 Mon 05 Sep, Theo de Raadt wrote:
> > > OpenBSD 6.0 GENERIC.MP#0 amd64
> > > 
> > > My fstab entry looks like :
> > > 
> > > 10.10.10.10:/srv/share /mnt/ops_test nfs 
> > > defaults,noexec,nosuid,nodev,auto 0 0
> > > 
> > > However:
> > > 
> > > $ doas mount /mnt/ops_test
> > > doas ([email protected]) password:
> > > mount: can't find fstab entry for /mnt/ops_test
> > > 
> > > 
> > > Any ideas  ?  That style of fstab entry seems to work fine on my linux
> > > boxes (albeit with nfs4 instead of nfs, but that makes no difference
> > > on openbsd).
> > 
> > Well, openbsd is not linux.
> > 
> > Have no idea what that word "defaults" in there means.
> 
> I guess it would've been better to say something like:
> 
>       mount: unknown option "defaults" for /mnt/ops_test
> 
> Care for a patch?

The option parsing code already gives you en error message if it sees
an unknown option.

        -Otto

Reply via email to