ports/82766: [patch] misc/mc-light

Andrej Zverev az at inec.ru
Wed Jun 29 07:40:04 UTC 2005


>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 at 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:



More information about the freebsd-ports-bugs mailing list