OpenBSD 5.3: Replace use of copyinstr for setting mount point name.
authorAntoine Verheijen <antoine@ualberta.ca>
Tue, 9 Apr 2013 02:29:58 +0000 (20:29 -0600)
committerDerrick Brashear <shadow@your-file-system.com>
Tue, 9 Apr 2013 14:17:05 +0000 (07:17 -0700)
commitb39461fc67d4f258d31e0a13b5d8dcb3c5fae49f
treec8f9cc734550c2a1322c585e762f89af3de70590
parent31d73b7e43058d421c2a1b6179e71b7b98a269f3
OpenBSD 5.3: Replace use of copyinstr for setting mount point name.

As a result of a realignment of kernel memory in OpenBSD 5.3,
the copyinstr() routine no longer works for copying the mount
point name into the internal mount table structure. It also
fails silently, so it's not noticed until someone looks at
the mount table and discovers that the mount point name for
AFS is missing.

This patch replaces the use of copyinstr() with strlcpy() for
copying the mount point name in OpenBSD 5.3.

Note that this is consistent with how other similar device
support has addressed the same issue in OpenBSD 5.3.

Change-Id: I57619f989e51a8c1a320be7d451683b7c0abb7c1
Reviewed-on: http://gerrit.openafs.org/9752
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
src/afs/OBSD/osi_vfsops.c