bin/93841: seg fault with dmesg

Stephen Montgomery-Smith stephen at math.missouri.edu
Sat Feb 25 15:00:20 PST 2006


The following reply was made to PR bin/93841; it has been noted by GNATS.

From: Stephen Montgomery-Smith <stephen at math.missouri.edu>
To: bug-followup at FreeBSD.org,  stephen at math.missouri.edu
Cc:  
Subject: Re: bin/93841: seg fault with dmesg
Date: Sat, 25 Feb 2006 16:57:56 -0600

 Actually my suggested fix isn't going to work in every situation.  How 
 about:
 
 --- dmesg.c-orig	Sat Feb 25 16:26:18 2006
 +++ dmesg.c	Sat Feb 25 16:52:11 2006
 @@ -184,7 +184,8 @@
   			    errno == 0) {
   				if (LOG_FAC(pri) != LOG_KERN && !all)
   					continue;
 -				p = q + 1;
 +				if (q < nextp)
 +					p = q + 1;
   			}
   		}
 
 
 
 (This patch is unlikely to apply cleanly because my mail client has 
 probably messed it up.)
 


More information about the freebsd-bugs mailing list