Mismatched MFSNAMELEN and MNAMELEN with fstype / fspath.
Submitted by: Naoki Kobayashi <shibata@geo.titech.ac.jp>
This commit is contained in:
parent
efbe286b68
commit
fbedc11796
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=73342
@ -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)))
|
||||
|
@ -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)))
|
||||
|
Loading…
Reference in New Issue
Block a user