aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Chadd <adrian@FreeBSD.org>2001-03-02 14:05:49 +0000
committerAdrian Chadd <adrian@FreeBSD.org>2001-03-02 14:05:49 +0000
commitfbedc117969203601b7a24d5ba4c1ba5794f0a4f (patch)
tree2f133643f4e09f4d7e4c73c4258377d2330a8a7b
parentefbe286b68ffca2f9cb4e21d83f87592ed89f682 (diff)
downloadsrc-fbedc117969203601b7a24d5ba4c1ba5794f0a4f.tar.gz
src-fbedc117969203601b7a24d5ba4c1ba5794f0a4f.zip
Mismatched MFSNAMELEN and MNAMELEN with fstype / fspath.
Submitted by: Naoki Kobayashi <shibata@geo.titech.ac.jp>
Notes
Notes: svn path=/head/; revision=73342
-rw-r--r--sys/kern/vfs_extattr.c4
-rw-r--r--sys/kern/vfs_syscalls.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/kern/vfs_extattr.c b/sys/kern/vfs_extattr.c
index 0b1bcca96f76..1670d4ece9f4 100644
--- a/sys/kern/vfs_extattr.c
+++ b/sys/kern/vfs_extattr.c
@@ -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)))
diff --git a/sys/kern/vfs_syscalls.c b/sys/kern/vfs_syscalls.c
index 0b1bcca96f76..1670d4ece9f4 100644
--- a/sys/kern/vfs_syscalls.c
+++ b/sys/kern/vfs_syscalls.c
@@ -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)))