From garga@FreeBSD.org  Wed May  7 13:28:59 2008
Return-Path: <garga@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 13FB5106566B
	for <FreeBSD-gnats-submit@freebsd.org>; Wed,  7 May 2008 13:28:59 +0000 (UTC)
	(envelope-from garga@FreeBSD.org)
Received: from capeta.freebsdbrasil.com.br (capeta.freebsdbrasil.com.br [201.48.151.3])
	by mx1.freebsd.org (Postfix) with SMTP id 4C02D8FC14
	for <FreeBSD-gnats-submit@freebsd.org>; Wed,  7 May 2008 13:28:58 +0000 (UTC)
	(envelope-from garga@FreeBSD.org)
Received: (qmail 10836 invoked from network); 7 May 2008 10:28:56 -0300
Received: by simscan 1.1.0 ppid: 10827, pid: 10831, t: 1.0568s
         scanners: clamav: 0.91.1/m: spam: 3.1.1
Received: from unknown (HELO soc90.bluepex.com) (garga@201.28.114.106)
  by capeta.freebsdbrasil.com.br with SMTP; 7 May 2008 10:28:55 -0300
Received: (qmail 26250 invoked by uid 1001); 7 May 2008 10:28:46 -0300
Message-Id: <20080507132846.26249.qmail@soc90.bluepex.com>
Date: 7 May 2008 10:28:46 -0300
From: Renato Botelho <garga@FreeBSD.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc: des@FreeBSD.org
Subject: [PATCH] shells/zsh: Fix segmentation fault on completion
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         123490
>Category:       ports
>Synopsis:       [PATCH] shells/zsh: Fix segmentation fault on completion
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    des
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed May 07 13:30:01 UTC 2008
>Closed-Date:    Wed May 21 11:55:51 UTC 2008
>Last-Modified:  Wed May 21 12:00:08 UTC 2008
>Originator:     Renato Botelho
>Release:        FreeBSD 7.0-STABLE i386
>Organization:
FreeBSD.org
>Environment:
System: FreeBSD botelhor.bplab.local 7.0-STABLE FreeBSD 7.0-STABLE #25: Fri May  2 11:38:54 BRT
>Description:
This patch was obtained from zsh-workers list and fix a segfault problem on completion

Added file(s):
- files/patch-Src_Zle_compresult.c

Port maintainer (des@FreeBSD.org) is cc'd.

Generated with FreeBSD Port Tools 0.77
>How-To-Repeat:
zsh -f
q<TAB><TAB><^D><^D>

>Fix:

--- zsh-4.3.6_1.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/shells/zsh/Makefile,v
retrieving revision 1.94
diff -u -u -r1.94 Makefile
--- Makefile	6 May 2008 11:52:45 -0000	1.94
+++ Makefile	7 May 2008 13:27:31 -0000
@@ -22,6 +22,7 @@
 
 PORTNAME=	zsh
 PORTVERSION=	4.3.6
+PORTREVISION=	1
 CATEGORIES=	shells
 MASTER_SITES=	SF
 .if !defined(NOPORTDOCS)
Index: files/patch-Src_Zle_compresult.c
===================================================================
RCS file: files/patch-Src_Zle_compresult.c
diff -N files/patch-Src_Zle_compresult.c
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ files/patch-Src_Zle_compresult.c	7 May 2008 13:27:31 -0000
@@ -0,0 +1,28 @@
+--- Src/Zle/compresult.c.orig	2008-05-07 10:19:11.000000000 -0300
++++ Src/Zle/compresult.c	2008-05-07 10:19:35.000000000 -0300
+@@ -1188,6 +1188,12 @@
+ {
+     int was_meta;
+ 
++    /* Just list the matches if the list was requested. */
++    if (lst == COMP_LIST_COMPLETE) {
++	showinglist = -2;
++	return;
++    }
++
+     /* Already metafied when called from domenuselect already */
+     if (zlemetaline == NULL) {
+ 	was_meta = 0;
+@@ -1195,12 +1201,6 @@
+     } else
+ 	was_meta = 1;
+ 
+-    /* Just list the matches if the list was requested. */
+-    if (lst == COMP_LIST_COMPLETE) {
+-	showinglist = -2;
+-	return;
+-    }
+-
+     /* Otherwise go to the next match in the array... */
+     do {
+ 	if (!*++(minfo.cur)) {
--- zsh-4.3.6_1.patch ends here ---

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->des 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Wed May 7 13:30:11 UTC 2008 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=123490 
State-Changed-From-To: open->closed 
State-Changed-By: garga 
State-Changed-When: Wed May 21 11:55:50 UTC 2008 
State-Changed-Why:  
Committed. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=123490 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/123490: commit references a PR
Date: Wed, 21 May 2008 11:55:27 +0000 (UTC)

 garga       2008-05-21 11:55:18 UTC
 
   FreeBSD ports repository
 
   Modified files:
     shells/zsh           Makefile 
   Added files:
     shells/zsh/files     patch-Src_Zle_compresult.c 
   Log:
   - Fix segmentation fault on completion
   - Bump PORTREVISION
   
   PR:             ports/123490
   Submitted by:   garga
   Approved by:    maintainer timeout (2 weeks)
   
   Revision  Changes    Path
   1.95      +1 -0      ports/shells/zsh/Makefile
   1.1       +28 -0     ports/shells/zsh/files/patch-Src_Zle_compresult.c (new)
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
