diff options
author | 2004-02-19 19:17:28 +0000 | |
---|---|---|
committer | 2004-02-19 19:17:28 +0000 | |
commit | b339d06a7cc57d47420212c59984eae91d80d352 (patch) | |
tree | 6fd53862e78c4e8e043cecab763ad965c3084e63 /sys/xfs | |
parent | filenames can have 100 chars, total pathname 255 in ustar format; not 250; (diff) | |
download | wireguard-openbsd-b339d06a7cc57d47420212c59984eae91d80d352.tar.xz wireguard-openbsd-b339d06a7cc57d47420212c59984eae91d80d352.zip |
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')
-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, |