bin/84991: gcc4.x cleanup of usr.bin/find
Divacky Roman
xdivac02 at stud.fit.vutbr.cz
Tue Aug 16 15:00:27 GMT 2005
>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 at 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:
More information about the freebsd-bugs
mailing list