From 9aad8f72b51da68841e29a9e3fa32cbe0042382a Mon Sep 17 00:00:00 2001 From: dbj Date: Sat, 3 Jan 2004 10:07:02 +0000 Subject: [PATCH] increase size of buffer used for updating symlinks with -c 1 otherwise, the block read will blow the stack --- sbin/fsck_ffs/pass1.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sbin/fsck_ffs/pass1.c b/sbin/fsck_ffs/pass1.c index 153474085f1f..ace7068c4da5 100644 --- a/sbin/fsck_ffs/pass1.c +++ b/sbin/fsck_ffs/pass1.c @@ -1,4 +1,4 @@ -/* $NetBSD: pass1.c,v 1.29 2003/08/07 10:04:20 agc Exp $ */ +/* $NetBSD: pass1.c,v 1.30 2004/01/03 10:07:02 dbj Exp $ */ /* * Copyright (c) 1980, 1986, 1993 @@ -34,7 +34,7 @@ #if 0 static char sccsid[] = "@(#)pass1.c 8.6 (Berkeley) 4/28/95"; #else -__RCSID("$NetBSD: pass1.c,v 1.29 2003/08/07 10:04:20 agc Exp $"); +__RCSID("$NetBSD: pass1.c,v 1.30 2004/01/03 10:07:02 dbj Exp $"); #endif #endif /* not lint */ @@ -206,7 +206,7 @@ checkinode(inumber, idesc) mode_t mode; u_int64_t size, kernmaxfilesize; int64_t blocks; - char symbuf[MAXSYMLINKLEN_UFS1]; + char symbuf[MAXBSIZE]; struct inostat *info; dp = getnextinode(inumber);