Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/compat/svr4_32 use the filesystem specific namemax not a...
details: https://anonhg.NetBSD.org/src/rev/5c31c2cbcc7d
branches: trunk
changeset: 769921:5c31c2cbcc7d
user: christos <christos%NetBSD.org@localhost>
date: Tue Sep 27 00:56:14 2011 +0000
description:
use the filesystem specific namemax not a hard-coded MAXNAMLEN
diffstat:
sys/compat/svr4_32/svr4_32_misc.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r 29e75622751b -r 5c31c2cbcc7d sys/compat/svr4_32/svr4_32_misc.c
--- a/sys/compat/svr4_32/svr4_32_misc.c Tue Sep 27 00:54:47 2011 +0000
+++ b/sys/compat/svr4_32/svr4_32_misc.c Tue Sep 27 00:56:14 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: svr4_32_misc.c,v 1.73 2010/11/30 10:43:02 dholland Exp $ */
+/* $NetBSD: svr4_32_misc.c,v 1.74 2011/09/27 00:56:14 christos Exp $ */
/*-
* Copyright (c) 1994, 2008 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: svr4_32_misc.c,v 1.73 2010/11/30 10:43:02 dholland Exp $");
+__KERNEL_RCSID(0, "$NetBSD: svr4_32_misc.c,v 1.74 2011/09/27 00:56:14 christos Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -1084,7 +1084,7 @@
sfs->f_flag |= SVR4_ST_RDONLY;
if (bfs->f_flag & MNT_NOSUID)
sfs->f_flag |= SVR4_ST_NOSUID;
- sfs->f_namemax = MAXNAMLEN;
+ sfs->f_namemax = bfs->f_namemax;
memcpy(sfs->f_fstr, bfs->f_fstypename, sizeof(sfs->f_fstr)); /* XXX */
memset(sfs->f_filler, 0, sizeof(sfs->f_filler));
@@ -1116,7 +1116,7 @@
sfs->f_flag |= SVR4_ST_RDONLY;
if (bfs->f_flag & MNT_NOSUID)
sfs->f_flag |= SVR4_ST_NOSUID;
- sfs->f_namemax = MAXNAMLEN;
+ sfs->f_namemax = bfs->f_namemax;
memcpy(sfs->f_fstr, bfs->f_fstypename, sizeof(sfs->f_fstr)); /* XXX */
memset(sfs->f_filler, 0, sizeof(sfs->f_filler));
Home |
Main Index |
Thread Index |
Old Index