From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Jun 29 07:40:03 2005 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C3FF116A41C for ; Wed, 29 Jun 2005 07:40:03 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9653443D53 for ; Wed, 29 Jun 2005 07:40:03 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j5T7e2hv089363 for ; Wed, 29 Jun 2005 07:40:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j5T7e24N089359; Wed, 29 Jun 2005 07:40:02 GMT (envelope-from gnats) Resent-Date: Wed, 29 Jun 2005 07:40:02 GMT Resent-Message-Id: <200506290740.j5T7e24N089359@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Andrej Zverev Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 62B8716A41C for ; Wed, 29 Jun 2005 07:34:34 +0000 (GMT) (envelope-from az@waterwall.inec.ru) Received: from waterwall.inec.ru (waterwall.inec.ru [213.148.3.225]) by mx1.FreeBSD.org (Postfix) with ESMTP id D1EC243D49 for ; Wed, 29 Jun 2005 07:34:33 +0000 (GMT) (envelope-from az@waterwall.inec.ru) Received: from waterwall.inec.ru (root@localhost) by waterwall.inec.ru (8.13.1/8.12.6) with SMTP id j5T7ZIqF094602 for ; Wed, 29 Jun 2005 11:35:18 +0400 (MSD) Received: from waterwall.inec.ru (localhost.inec.ru [127.0.0.1]) by localhost (8.13.1/8.12.6) with ESMTP id j5T7ZI59094592; Wed, 29 Jun 2005 11:35:18 +0400 (MSD) Received: from localhost (localhost.inec.ru [127.0.0.1]) by localhost (Postfix) with SMTP id 7FBC95A076; Wed, 29 Jun 2005 11:35:18 +0400 (MSD) Received: from waterwall.inec.ru (localhost.inec.ru [127.0.0.1]) by waterwall.inec.ru (Postfix) with ESMTP id AAP2642C24F361677A; Wed, 29 Jun 2005 11:35:18 +0400 (MSD) Received: (from az@localhost) by waterwall.inec.ru (8.13.1/8.12.6/Submit) id j5T7Yxff094514; Wed, 29 Jun 2005 11:34:59 +0400 (MSD) Message-Id: <200506290734.j5T7Yxff094514@waterwall.inec.ru> Date: Wed, 29 Jun 2005 11:34:59 +0400 (MSD) From: Andrej Zverev To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: sam@brj.pp.ru Subject: ports/82766: [patch] misc/mc-light X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Andrej Zverev List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Jun 2005 07:40:04 -0000 >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: