Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/fs/msdosfs In rename, use char[12]?for new names instead...
details: https://anonhg.NetBSD.org/src/rev/8e80df01902d
branches: trunk
changeset: 762850:8e80df01902d
user: pooka <pooka%NetBSD.org@localhost>
date: Thu Mar 03 08:10:45 2011 +0000
description:
In rename, use char[12]?for new names instead of [11]. At least
one routine called from here (unix2dosfn) expects and uses all of
a [12].
This may fix the "stack size exceeded" problem which has been
triggering in gson's test runs. (i'm not entirely sure why it
doesn't trigger in anyone else's env)
diffstat:
sys/fs/msdosfs/msdosfs_vnops.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r b52fb81bfd37 -r 8e80df01902d sys/fs/msdosfs/msdosfs_vnops.c
--- a/sys/fs/msdosfs/msdosfs_vnops.c Thu Mar 03 05:59:37 2011 +0000
+++ b/sys/fs/msdosfs/msdosfs_vnops.c Thu Mar 03 08:10:45 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: msdosfs_vnops.c,v 1.71 2011/01/02 05:09:30 dholland Exp $ */
+/* $NetBSD: msdosfs_vnops.c,v 1.72 2011/03/03 08:10:45 pooka Exp $ */
/*-
* Copyright (C) 1994, 1995, 1997 Wolfgang Solfrank.
@@ -48,7 +48,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: msdosfs_vnops.c,v 1.71 2011/01/02 05:09:30 dholland Exp $");
+__KERNEL_RCSID(0, "$NetBSD: msdosfs_vnops.c,v 1.72 2011/03/03 08:10:45 pooka Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -819,7 +819,7 @@
struct componentname *tcnp = ap->a_tcnp;
struct componentname *fcnp = ap->a_fcnp;
struct denode *ip, *xp, *dp, *zp;
- u_char toname[11], oldname[11];
+ u_char toname[12], oldname[12];
u_long from_diroffset, to_diroffset;
u_char to_count;
int doingdirectory = 0, newparent = 0;
Home |
Main Index |
Thread Index |
Old Index