Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/fs/cd9660 use ISO_MAXNAMLEN instead of NAME_MAX
details: https://anonhg.NetBSD.org/src/rev/73474d973320
branches: trunk
changeset: 769935:73474d973320
user: christos <christos%NetBSD.org@localhost>
date: Tue Sep 27 01:27:44 2011 +0000
description:
use ISO_MAXNAMLEN instead of NAME_MAX
diffstat:
sys/fs/cd9660/cd9660_lookup.c | 6 +++---
sys/fs/cd9660/cd9660_rrip.c | 6 +++---
sys/fs/cd9660/cd9660_vnops.c | 6 +++---
3 files changed, 9 insertions(+), 9 deletions(-)
diffs (81 lines):
diff -r a1a8c2dee895 -r 73474d973320 sys/fs/cd9660/cd9660_lookup.c
--- a/sys/fs/cd9660/cd9660_lookup.c Tue Sep 27 01:25:32 2011 +0000
+++ b/sys/fs/cd9660/cd9660_lookup.c Tue Sep 27 01:27:44 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cd9660_lookup.c,v 1.18 2010/06/24 13:03:09 hannken Exp $ */
+/* $NetBSD: cd9660_lookup.c,v 1.19 2011/09/27 01:27:44 christos Exp $ */
/*-
* Copyright (c) 1989, 1993, 1994
@@ -39,7 +39,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cd9660_lookup.c,v 1.18 2010/06/24 13:03:09 hannken Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cd9660_lookup.c,v 1.19 2011/09/27 01:27:44 christos Exp $");
#include <sys/param.h>
#include <sys/namei.h>
@@ -116,7 +116,7 @@
ino_t ino = 0;
int reclen;
u_short namelen;
- char altname[NAME_MAX];
+ char altname[ISO_MAXNAMLEN];
int res;
int assoc, len;
const char *name;
diff -r a1a8c2dee895 -r 73474d973320 sys/fs/cd9660/cd9660_rrip.c
--- a/sys/fs/cd9660/cd9660_rrip.c Tue Sep 27 01:25:32 2011 +0000
+++ b/sys/fs/cd9660/cd9660_rrip.c Tue Sep 27 01:27:44 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cd9660_rrip.c,v 1.16 2008/05/16 09:21:59 hannken Exp $ */
+/* $NetBSD: cd9660_rrip.c,v 1.17 2011/09/27 01:27:44 christos Exp $ */
/*-
* Copyright (c) 1993, 1994
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cd9660_rrip.c,v 1.16 2008/05/16 09:21:59 hannken Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cd9660_rrip.c,v 1.17 2011/09/27 01:27:44 christos Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -620,7 +620,7 @@
analyze.outbuf = outbuf;
analyze.outlen = outlen;
- analyze.maxlen = NAME_MAX;
+ analyze.maxlen = ISO_MAXNAMLEN;
analyze.inump = inump;
analyze.imp = imp;
analyze.fields = ISO_SUSP_ALTNAME | ISO_SUSP_RELDIR | ISO_SUSP_CLINK | ISO_SUSP_PLINK;
diff -r a1a8c2dee895 -r 73474d973320 sys/fs/cd9660/cd9660_vnops.c
--- a/sys/fs/cd9660/cd9660_vnops.c Tue Sep 27 01:25:32 2011 +0000
+++ b/sys/fs/cd9660/cd9660_vnops.c Tue Sep 27 01:27:44 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cd9660_vnops.c,v 1.39 2010/03/29 13:11:32 pooka Exp $ */
+/* $NetBSD: cd9660_vnops.c,v 1.40 2011/09/27 01:27:44 christos Exp $ */
/*-
* Copyright (c) 1994
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cd9660_vnops.c,v 1.39 2010/03/29 13:11:32 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cd9660_vnops.c,v 1.40 2011/09/27 01:27:44 christos Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -757,7 +757,7 @@
return (0);
case _PC_NAME_MAX:
if (VTOI(ap->a_vp)->i_mnt->iso_ftype == ISO_FTYPE_RRIP)
- *ap->a_retval = NAME_MAX;
+ *ap->a_retval = ISO_MAXNAMLEN;
else
*ap->a_retval = 37;
return (0);
Home |
Main Index |
Thread Index |
Old Index