Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Aug 2005 16:50:37 +0200 (CEST)
From:      Divacky Roman <xdivac02@stud.fit.vutbr.cz>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   bin/84991: gcc4.x cleanup of usr.bin/find
Message-ID:  <200508161450.j7GEobRi014799@eva.fit.vutbr.cz>
Resent-Message-ID: <200508161500.j7GF0QJ5045292@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         84991
>Category:       bin
>Synopsis:       gcc4.x cleanup of usr.bin/find
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Tue Aug 16 15:00:26 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Divacky Roman
>Release:        FreeBSD 7.0-CURRENT i386
>Organization:
home
>Environment:
FreeBSD witten 7.0-CURRENT FreeBSD 7.0-CURRENT #55: Tue Aug 16 12:59:09 CEST
2005     root@witten:/usr/obj/usr/src/sys/NEOLOGISM  i386


	
>Description:
gcc4.x (tested with gcc41) cleanup of usr.bin/find
>How-To-Repeat:
apply the patch
>Fix:


Index: function.c
===================================================================
RCS file: /home/ncvs/src/usr.bin/find/function.c,v
retrieving revision 1.53
diff -u -r1.53 function.c
--- function.c	25 Jan 2005 14:07:25 -0000	1.53
+++ function.c	11 Aug 2005 13:12:47 -0000
@@ -818,7 +818,7 @@
 	static int first = 1;
 	struct statfs sb;
 	static int val_type, val_flags;
-	char *p, save[2];
+	char *p, save[2] = {0, 0};
 
 	if ((plan->flags & F_MTMASK) == F_MTUNKNOWN)
 		return 0;
Index: getdate.y
===================================================================
RCS file: /home/ncvs/src/usr.bin/find/getdate.y,v
retrieving revision 1.3
diff -u -r1.3 getdate.y
--- getdate.y	14 Jun 2003 13:00:21 -0000	1.3
+++ getdate.y	11 Aug 2005 13:12:47 -0000
@@ -857,6 +857,7 @@
     time_t		tod;
     time_t nowtime;
 
+    bzero (&gmt, sizeof(struct tm));
     yyInput = p;
     if (now == NULL) {
 	struct tm *gmt_ptr;
	


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200508161450.j7GEobRi014799>