diff options
author | 2020-08-10 05:47:37 +0000 | |
---|---|---|
committer | 2020-08-10 05:47:37 +0000 | |
commit | fb67b79235d4707119a430e145d308608dea81a7 (patch) | |
tree | f349a7d342273c645247da5d07342faca58292c7 | |
parent | consistently return EINVAL on invalid BPB (diff) | |
download | wireguard-openbsd-fb67b79235d4707119a430e145d308608dea81a7.tar.xz wireguard-openbsd-fb67b79235d4707119a430e145d308608dea81a7.zip |
use EROFS when attempting to mount a 4.2BSD fs without MNT_RDONLY
This is the documented behaviour which was changed by pedro in rev 1.81
which was partially backed out in rev 1.82.
-rw-r--r-- | sys/ufs/ffs/ffs_vfsops.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/ufs/ffs/ffs_vfsops.c b/sys/ufs/ffs/ffs_vfsops.c index 86ff869783d..8014086876b 100644 --- a/sys/ufs/ffs/ffs_vfsops.c +++ b/sys/ufs/ffs/ffs_vfsops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ffs_vfsops.c,v 1.185 2020/06/24 22:03:45 cheloha Exp $ */ +/* $OpenBSD: ffs_vfsops.c,v 1.186 2020/08/10 05:47:37 jsg Exp $ */ /* $NetBSD: ffs_vfsops.c,v 1.19 1996/02/09 22:22:26 christos Exp $ */ /* @@ -813,7 +813,7 @@ ffs_mountfs(struct vnode *devvp, struct mount *mp, struct proc *p) printf("ffs_mountfs(): obsolete rotational table format, " "please use fsck_ffs(8) -c 1\n"); #endif - error = EFTYPE; + error = EROFS; goto out; } |