On 15:17+0200, May 5, 2002, Szilveszter Adam wrote:

> Hello,
>
> src/sbin/savecore.c has been broken today, with the commit of rev 1.59
> by Bill Fenner.
>
> It appears that a new magic value, KERNELDUMPMAGIC_CLEARED, has been
> introduced but its value never #define-d in (probably)
> src/sys/sys/kerneldump.h. This way, the program does not compile.
>
> There is only so much one can deduce from the code, it is the author who
> should know what was intended here.
>
> This breaks the world.

This patch solves the problem:

Index: sys_sys/kerneldump.h
===================================================================
RCS file: /home/ncvs/src/sys/sys/kerneldump.h,v
retrieving revision 1.3
diff -u -r1.3 kerneldump.h
--- sys_sys/kerneldump.h        3 Apr 2002 07:24:10 -0000       1.3
+++ sys_sys/kerneldump.h        5 May 2002 13:49:04 -0000
@@ -60,6 +60,7 @@
 struct kerneldumpheader {
        char            magic[20];
 #define        KERNELDUMPMAGIC         "FreeBSD Kernel Dump"
+#define        KERNELDUMPMAGIC_CLEARED "FreeBSD Cleard Dump"
        char            architecture[12];
        uint32_t        version;
 #define        KERNELDUMPVERSION       1

%%%

-- 
Maxim Konovalov, MAcomnet, Internet Dept., system engineer
phone: +7 (095) 796-9079, mailto:[EMAIL PROTECTED]


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to