diff options
author | adrian <adrian@FreeBSD.org> | 2001-03-02 14:05:49 +0000 |
---|---|---|
committer | adrian <adrian@FreeBSD.org> | 2001-03-02 14:05:49 +0000 |
commit | bf6a51f986853bb37473a9d45dd719e6f5a8cf1b (patch) | |
tree | e434f7c9e1ade21a00d6b03bb9041a94aff8b5d1 | |
parent | 2796d6687fac7f68baf2297f1b43c984d2f0edfd (diff) | |
download | FreeBSD-src-bf6a51f986853bb37473a9d45dd719e6f5a8cf1b.zip FreeBSD-src-bf6a51f986853bb37473a9d45dd719e6f5a8cf1b.tar.gz |
Mismatched MFSNAMELEN and MNAMELEN with fstype / fspath.
Submitted by: Naoki Kobayashi <shibata@geo.titech.ac.jp>
-rw-r--r-- | sys/kern/vfs_extattr.c | 4 | ||||
-rw-r--r-- | sys/kern/vfs_syscalls.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/kern/vfs_extattr.c b/sys/kern/vfs_extattr.c index 0b1bcca..1670d4e 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 0b1bcca..1670d4e 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))) |