cvs commit: ports/sysutils/file Makefile distinfo

Pascal Hofstee caelian at gmail.com
Sun May 14 10:06:59 UTC 2006


On Sat, 2006-05-13 at 03:56 +0000, Marcus Alves Grando wrote:
> mnag        2006-05-13 03:56:16 UTC
> 
>   FreeBSD ports repository
> 
>   Modified files:
>     sysutils/file        Makefile distinfo 
>   Log:
>   - Update to 4.17

This update breaks the build on machines with MALLOC_OPTIONS set to AJ
(which is the default on CURRENT) because of an assumption made that
malloc-ed memory will automatically be initialized to 0x0.

Below is the contents of patch-src_apprentice.c which fixes the build on
my amd64 7.0-CURRENT system.

--- src/apprentice.c.orig	Sun May 14 02:57:19 2006
+++ src/apprentice.c	Sun May 14 02:57:49 2006
@@ -386,6 +386,7 @@
 		file_oomem(ms);
 		return -1;
 	}
+	memset(marray, 0, maxmagic * sizeof(*marray));
 	marraycount = 0;
 
 	/* print silly verbose header for USG compat. */


-- 
  Pascal Hofstee




More information about the cvs-ports mailing list