diff options
author | Hans Insulander <hin@cvs.openbsd.org> | 2004-02-19 19:17:29 +0000 |
---|---|---|
committer | Hans Insulander <hin@cvs.openbsd.org> | 2004-02-19 19:17:29 +0000 |
commit | 65472d61ef85a99cfc1fa3b809a865310d3f390a (patch) | |
tree | e9f5313d166b76aceac83ac90b97b2d40a049f46 /sys/xfs/xfs_vfsops-common.c | |
parent | 200b49de4b53ecb4f6bb3a0efb010ffaa35091a8 (diff) |
Set sensible value for mntfromname, to make 'mount' report the
xfs device that was actually mounted, not just 'arla'.
Issue noted by deraadt@. Thanks to Jan Johansson (janj+openbsd at wenf.org)
for testing on i386 and sparc64.
Diffstat (limited to 'sys/xfs/xfs_vfsops-common.c')
-rw-r--r-- | sys/xfs/xfs_vfsops-common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/xfs/xfs_vfsops-common.c b/sys/xfs/xfs_vfsops-common.c index 91e30e90ac6..1b3a9bc49b3 100644 --- a/sys/xfs/xfs_vfsops-common.c +++ b/sys/xfs/xfs_vfsops-common.c @@ -178,7 +178,7 @@ xfs_mount_common_sys(struct mount *mp, sizeof(mp->mnt_stat.f_mntonname)); strncpy(mp->mnt_stat.f_mntfromname, - "arla", + data, sizeof(mp->mnt_stat.f_mntfromname)); strncpy(mp->mnt_stat.f_fstypename, |