Mismatched MFSNAMELEN and MNAMELEN with fstype / fspath.
Submitted by: Naoki Kobayashi <shibata@geo.titech.ac.jp>
This commit is contained in:
parent
2796d6687f
commit
bf6a51f986
@ -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