From owner-freebsd-x11@FreeBSD.ORG Thu Sep 29 23:26:06 2005 Return-Path: X-Original-To: freebsd-x11@freebsd.org Delivered-To: freebsd-x11@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0122B16A41F for ; Thu, 29 Sep 2005 23:26:05 +0000 (GMT) (envelope-from dejan.lesjak@ijs.si) Received: from mail.ijs.si (mail.ijs.si [193.2.4.66]) by mx1.FreeBSD.org (Postfix) with ESMTP id 53C7A43D53 for ; Thu, 29 Sep 2005 23:26:05 +0000 (GMT) (envelope-from dejan.lesjak@ijs.si) Received: from localhost (mail.ijs.si [193.2.4.66]) by patsy.ijs.si (Postfix) with ESMTP id 6B17217B8C8; Fri, 30 Sep 2005 01:26:04 +0200 (CEST) Received: from patsy.ijs.si ([127.0.0.1]) by localhost (patsy.ijs.si [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 51793-01-10; Fri, 30 Sep 2005 01:25:58 +0200 (CEST) Received: from radagast.ijs.si (radagast.ijs.si [193.2.4.168]) by patsy.ijs.si (Postfix) with ESMTP id 6CB2217B8DE; Fri, 30 Sep 2005 01:25:54 +0200 (CEST) Received: from localhost.ijs.si (localhost.ijs.si [127.0.0.1]) by radagast.ijs.si (Postfix) with ESMTP id 0641A17088; Fri, 30 Sep 2005 01:25:54 +0200 (CEST) From: Dejan Lesjak To: freebsd-x11@freebsd.org Date: Fri, 30 Sep 2005 01:25:52 +0200 User-Agent: KMail/1.8.2 References: <433BEEEB.3070007@icyb.net.ua> <200509292203.17419.dejan.lesjak@ijs.si> In-Reply-To: <200509292203.17419.dejan.lesjak@ijs.si> MIME-Version: 1.0 Content-Type: Multipart/Mixed; boundary="Boundary-00=_BgHPDnqcXXtX6oO" Message-Id: <200509300125.53554.dejan.lesjak@ijs.si> X-Virus-Scanned: amavisd-new at ijs.si Cc: Andriy Gapon Subject: Re: XFree86-4.5.0, gimp-2.2.8: can't save xpm files X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Sep 2005 23:26:06 -0000 --Boundary-00=_BgHPDnqcXXtX6oO Content-Type: text/plain; charset="iso-8859-6" Content-Transfer-Encoding: 7bit Content-Disposition: inline On Thursday 29 of September 2005 22:03, Dejan Lesjak wrote: > On Thursday 29 of September 2005 15:40, Andriy Gapon wrote: > > I am getting "Plug-in could not save image" error while trying to save > > xpm image in Gimp. Quick search on the net returned thess bug reports: > > > > https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=140815 > > https://bugs.freedesktop.org/show_bug.cgi?id=1924 > > > > I assume that libXpm installed by XFree86-libraries-4.5.0 is affected by > > the same issue. > > It would be, yes. > > > Should the same kind of patches be applied to that port ? > > Should they be port patches ? > > Let's see if attached patch which is a part of relevant changes solves this > (I can save xpm with this but haven't done much more testing than that). > Put the patch in x11/XFree86-4-libraries/files directory and > rebuild/reinstall XFree86-libraries. Erm, that patch broke other stuff. Sorry. Attached is the one from Freedesktop bugzilla (which seems to work for me). Dejan --Boundary-00=_BgHPDnqcXXtX6oO Content-Type: text/plain; charset="iso-8859-6"; name="patch-WrFFrI.c" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="patch-WrFFrI.c" --- extras/Xpm/lib/WrFFrI.c.orig Thu Sep 29 22:40:34 2005 +++ extras/Xpm/lib/WrFFrI.c Thu Sep 29 22:41:02 2005 @@ -326,10 +326,7 @@ OpenWriteFile(filename, mdata) #ifndef NO_ZPIPE size_t len = strlen(filename); - if(len == 0 || - filename[0] == '/' || - strstr(filename, "../") != NULL || - filename[len-1] == '/') + if(len == 0) return(XpmOpenFailed); if (len > 2 && !strcmp(".Z", filename + (len - 2))) { --Boundary-00=_BgHPDnqcXXtX6oO--