Date: Wed, 29 Jun 2005 11:34:59 +0400 (MSD) From: Andrej Zverev <az@inec.ru> To: FreeBSD-gnats-submit@FreeBSD.org Cc: sam@brj.pp.ru Subject: ports/82766: [patch] misc/mc-light Message-ID: <200506290734.j5T7Yxff094514@waterwall.inec.ru> Resent-Message-ID: <200506290740.j5T7e24N089359@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 82766 >Category: ports >Synopsis: [patch] misc/mc-light >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Jun 29 07:40:02 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Andrej Zverev >Release: FreeBSD 5.4-RELEASE-p1 i386 >Organization: >Environment: System: FreeBSD az.inec.ru 5.4-RELEASE-p1 FreeBSD 5.4-RELEASE-p1 #1: Mon May 23 20:34:48 MSD 2005 az@az.inec.ru:/usr/obj/usr/src/sys/GENERIC i386 >Description: Segmentation fault (core dumped) >How-To-Repeat: mc -v /some/file and get crash. >Fix: Use this patch --- mc-light.diff begins here --- diff -Nru mc-light.orig/Makefile mc-light/Makefile --- mc-light.orig/Makefile Wed Jun 1 18:22:24 2005 +++ mc-light/Makefile Wed Jun 29 11:27:42 2005 @@ -7,7 +7,7 @@ PORTNAME= mc-light PORTVERSION= 4.1.40.p9 -PORTREVISION= 4 +PORTREVISION= 5 CATEGORIES= misc shells MASTER_SITES= http://mc.linuxinside.com/Releases/ DISTNAME= mc-${PORTVERSION:S/.p9/-pre9/} diff -Nru mc-light.orig/files/patch-src-dlglist.c mc-light/files/patch-src-dlglist.c --- mc-light.orig/files/patch-src-dlglist.c Thu Jan 1 03:00:00 1970 +++ mc-light/files/patch-src-dlglist.c Wed Jun 29 11:25:15 2005 @@ -0,0 +1,11 @@ +--- src/dlglist.c.orig Tue Aug 24 18:14:12 2004 ++++ src/dlglist.c Wed Jun 29 11:13:07 2005 +@@ -71,7 +71,7 @@ + #define mc_list_previous(list) ((list) ? (((MC_DLG_List *)(list))->prev) : NULL) + #define mc_list_next(list) ((list) ? (((MC_DLG_List *)(list))->next) : NULL) + +-static MC_DLG_List* mc_list_first (MC_DLG_List *list){ while(list->prev) list=list->prev; return list;} ++static MC_DLG_List* mc_list_first (MC_DLG_List *list){ while(list && list->prev) list=list->prev; return list;} + static MC_DLG_List* mc_list_last (MC_DLG_List *list){ while(list->next) list=list->next; return list;} + + --- mc-light.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200506290734.j5T7Yxff094514>