Article View: comp.bugs.4bsd.ucb-fixes
Article #8V1.92 (4.3BSD-Reno fsck fix)
From: Keith Bostic
Date: Fri, 14 Dec 1990 00:10
Date: Fri, 14 Dec 1990 00:10
41 lines
1600 bytes
1600 bytes
Subject: 4.3BSD-Reno fsck fix
Index: sbin/fsck/pass2.c 4.3BSD-Reno
Description:
There is an uninitialized variable in the version of fsck(8)
distributed with 4.3BSD-Reno which can cause fsck to destroy
the file system instead of repair it. Note, this problem is
ONLY found in 4.3BSD-Reno systems.
Fix:
Apply the following patch:
*** fsck/pass2.c.old Fri Dec 7 16:08:58 1990
--- fsck/pass2.c.new Fri Dec 7 16:06:25 1990
***************
*** 18,24 ****
*/
#ifndef lint
! static char sccsid[] = "@(#)pass2.c 5.15 (Berkeley) 7/27/90";
#endif /* not lint */
#include <sys/param.h>
--- 18,24 ----
*/
#ifndef lint
! static char sccsid[] = "@(#)pass2.c 5.16 (Berkeley) 9/18/90";
#endif /* not lint */
#include <sys/param.h>
***************
*** 100,105 ****
--- 100,106 ----
bzero((char *)&curino, sizeof(struct inodesc));
curino.id_type = DATA;
curino.id_func = pass2check;
+ dino.di_mode = IFDIR;
dp = &dino;
inpend = &inpsort[inplast];
for (inpp = inpsort; inpp < inpend; inpp++) {
Technical Details
Message-ID:
<9012140010.AA25697@okeeffe.Berkeley.EDU>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!julius.cs.uiuc.edu!apple!agate!ucbvax!OKEEFFE.BERKELEY.EDU!bosticShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!julius.cs.uiuc.edu!apple!agate!ucbvax!OKEEFFE.BERKELEY.EDU!bostic From: bostic@OKEEFFE.BERKELEY.EDU (Keith Bostic) Newsgroups: comp.bugs.4bsd.ucb-fixes Subject: V1.92 (4.3BSD-Reno fsck fix) Message-ID: <9012140010.AA25697@okeeffe.Berkeley.EDU> Date: 14 Dec 90 00:10:24 GMT Sender: daemon@ucbvax.BERKELEY.EDU Organization: University of California at Berkeley Lines: 41 Approved: ucb-fixes@okeeffe.berkeley.edu