From owner-svn-ports-head@freebsd.org Sat Sep 14 10:34:00 2019 Return-Path: Delivered-To: svn-ports-head@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 7D30FF0122; Sat, 14 Sep 2019 10:34:00 +0000 (UTC) (envelope-from zeising@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46VplD2mYkz3JXB; Sat, 14 Sep 2019 10:34:00 +0000 (UTC) (envelope-from zeising@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 439231E806; Sat, 14 Sep 2019 10:34:00 +0000 (UTC) (envelope-from zeising@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id x8EAY0RZ033120; Sat, 14 Sep 2019 10:34:00 GMT (envelope-from zeising@FreeBSD.org) Received: (from zeising@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x8EAXxZG033115; Sat, 14 Sep 2019 10:33:59 GMT (envelope-from zeising@FreeBSD.org) Message-Id: <201909141033.x8EAXxZG033115@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: zeising set sender to zeising@FreeBSD.org using -f From: Niclas Zeising Date: Sat, 14 Sep 2019 10:33:59 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r512004 - in head/x11/xedit: . files X-SVN-Group: ports-head X-SVN-Commit-Author: zeising X-SVN-Commit-Paths: in head/x11/xedit: . files X-SVN-Commit-Revision: 512004 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Sep 2019 10:34:00 -0000 Author: zeising Date: Sat Sep 14 10:33:59 2019 New Revision: 512004 URL: https://svnweb.freebsd.org/changeset/ports/512004 Log: x11/xedit: Fix segfault with missing tags file Added: head/x11/xedit/files/ head/x11/xedit/files/patch-util.c (contents, props changed) Modified: head/x11/xedit/Makefile Modified: head/x11/xedit/Makefile ============================================================================== --- head/x11/xedit/Makefile Sat Sep 14 10:04:49 2019 (r512003) +++ head/x11/xedit/Makefile Sat Sep 14 10:33:59 2019 (r512004) @@ -2,12 +2,18 @@ PORTNAME= xedit PORTVERSION= 1.2.2 +PORTREVISION= 1 CATEGORIES= x11 MAINTAINER= x11@FreeBSD.org COMMENT= Simple text editor for X -XORG_CAT= app -USE_XORG= xt xaw7 +LICENSE= MIT BSD3CLAUSE +LICENSE_COMB= multi +LICENSE_FILE= ${WRKSRC}/COPYING + +USES= xorg-cat:app xorg + +USE_XORG= x11 xmu xt xaw7 .include Added: head/x11/xedit/files/patch-util.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/x11/xedit/files/patch-util.c Sat Sep 14 10:33:59 2019 (r512004) @@ -0,0 +1,27 @@ +--- util.c.orig 2015-02-21 21:42:33 UTC ++++ util.c +@@ -506,13 +506,14 @@ ResolveName(char *filename) + + if (result == NULL && errno == ENOENT) { + int length; +- char *dir, *file; ++ char *dir, *file, *fname; + + length = strlen(filename); + tmp = dir = XtMalloc(length + 1); + strcpy(dir, filename); ++ fname = strdup(filename); + +- file = basename(filename); ++ file = basename(fname); + dir = dirname(tmp); + + /* Creating a new file? */ +@@ -526,6 +527,7 @@ ResolveName(char *filename) + } + + XtFree(tmp); ++ free(fname); + } + + return (result);