From 069b825e12a7c4c83c362438969061f74f288029 Mon Sep 17 00:00:00 2001 From: Joerg Sonnenberger Date: Fri, 4 Feb 2005 23:16:28 +0000 Subject: [PATCH] Readd the copystr for f_mntfromname of root. It wasn't meant to be deleted, but didn't change normal system behaviour. In case of an unclean root filesystem, it prevented the remounting. --- sys/kern/vfs_mount.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/kern/vfs_mount.c b/sys/kern/vfs_mount.c index 5f071ca27b..73a961de48 100644 --- a/sys/kern/vfs_mount.c +++ b/sys/kern/vfs_mount.c @@ -67,7 +67,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $DragonFly: src/sys/kern/vfs_mount.c,v 1.5 2005/02/02 21:34:18 joerg Exp $ + * $DragonFly: src/sys/kern/vfs_mount.c,v 1.6 2005/02/04 23:16:28 joerg Exp $ */ /* @@ -272,6 +272,7 @@ vfs_rootmountalloc(char *fstypename, char *devname, struct mount **mpp) mp->mnt_stat.f_type = vfsp->vfc_typenum; mp->mnt_flag |= vfsp->vfc_flags & MNT_VISFLAGMASK; strncpy(mp->mnt_stat.f_fstypename, vfsp->vfc_name, MFSNAMELEN); + copystr(devname, mp->mnt_stat.f_mntfromname, MNAMELEN - 1, 0); *mpp = mp; return (0); } -- 2.41.0