🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.bugs.4bsd.ucb-fixes
1 messages
1 total messages Started by Keith Bostic Fri, 14 Dec 1990 00:10
V1.92 (4.3BSD-Reno fsck fix)
#8
Author: Keith Bostic
Date: Fri, 14 Dec 1990 00:10
41 lines
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++) {
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads