NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: bin/56974: 'amq -i' dumps core



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

From: RVP <rvp%SDF.ORG@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: 
Subject: Re: bin/56974: 'amq -i' dumps core
Date: Mon, 22 Aug 2022 07:37:45 +0000 (UTC)

 On Sun, 21 Aug 2022, Hauke Fath wrote:
 
 >> Description:
 >
 > 	Invoking 'amq -i', to obtain information about amd(8) mount
 > 	maps, SIGSEVs on both netbsd-9 and -current.
 >
 >
 
 Please try:
 
 ---START---
 diff -urN am-utils.orig/dist/amq/amq.c am-utils/dist/amq/amq.c
 --- am-utils.orig/dist/amq/amq.c	2015-01-18 15:37:57.000000000 +0000
 +++ am-utils/dist/amq/amq.c	2022-08-22 07:21:13.836270095 +0000
 @@ -81,7 +81,7 @@
   static void
   time_print(time_type tt)
   {
 -  time_t t = (time_t)*tt;
 +  time_t t = (time_t)tt;
     struct tm *tp = localtime(&t);
     printf("%02d/%02d/%04d %02d:%02d:%02d",
   	 tp->tm_mon + 1, tp->tm_mday,
 diff -urN am-utils.orig/dist/include/amq_defs.h am-utils/dist/include/amq_defs.h
 --- am-utils.orig/dist/include/amq_defs.h	2015-01-17 16:34:18.000000000 +0000
 +++ am-utils/dist/include/amq_defs.h	2022-08-22 07:21:43.554778519 +0000
 @@ -68,7 +68,7 @@
   /*
    * TYPEDEFS
    */
 -typedef long *time_type;
 +typedef long time_type;
   typedef struct amq_mount_info amq_mount_info;
   typedef struct amq_map_info amq_map_info;
   typedef struct amq_mount_stats amq_mount_stats;
 ---END---
 
 -RVP
 


Home | Main Index | Thread Index | Old Index