Mismatched MFSNAMELEN and MNAMELEN with fstype / fspath.

Submitted by:	Naoki Kobayashi <shibata@geo.titech.ac.jp>
This commit is contained in:
Adrian Chadd 2001-03-02 14:05:49 +00:00
parent efbe286b68
commit fbedc11796
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=73342
2 changed files with 4 additions and 4 deletions

View File

@ -168,8 +168,8 @@ vfs_mount(p, fstype, fspath, fsflags, fsdata)
* variables will fit in our mp buffers, including the
* terminating NUL.
*/
if ((strlen(fstype) >= MNAMELEN - 1) ||
(strlen(fspath) >= MFSNAMELEN - 1))
if ((strlen(fstype) >= MFSNAMELEN - 1) ||
(strlen(fspath) >= MNAMELEN - 1))
return (ENAMETOOLONG);
if (usermount == 0 && (error = suser(p)))

View File

@ -168,8 +168,8 @@ vfs_mount(p, fstype, fspath, fsflags, fsdata)
* variables will fit in our mp buffers, including the
* terminating NUL.
*/
if ((strlen(fstype) >= MNAMELEN - 1) ||
(strlen(fspath) >= MFSNAMELEN - 1))
if ((strlen(fstype) >= MFSNAMELEN - 1) ||
(strlen(fspath) >= MNAMELEN - 1))
return (ENAMETOOLONG);
if (usermount == 0 && (error = suser(p)))