From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Juanma Barranquero" Newsgroups: gmane.emacs.devel Subject: Re: C file recoginzed as image file Date: Tue, 9 Jan 2007 00:39:46 +0100 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1168299606 26816 80.91.229.12 (8 Jan 2007 23:40:06 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 8 Jan 2007 23:40:06 +0000 (UTC) Cc: dooglus@gmail.com, emacs-devel@gnu.org, rms@gnu.org, c.a.rendle@gmail.com Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jan 09 00:40:03 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1H445z-0007ZX-3d for ged-emacs-devel@m.gmane.org; Tue, 09 Jan 2007 00:40:03 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H445y-00049H-GC for ged-emacs-devel@m.gmane.org; Mon, 08 Jan 2007 18:40:02 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1H445m-000492-Ij for emacs-devel@gnu.org; Mon, 08 Jan 2007 18:39:50 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1H445k-00048g-MM for emacs-devel@gnu.org; Mon, 08 Jan 2007 18:39:49 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H445k-00048d-FX for emacs-devel@gnu.org; Mon, 08 Jan 2007 18:39:48 -0500 Original-Received: from [64.233.182.191] (helo=nf-out-0910.google.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1H445k-0007Ek-0l for emacs-devel@gnu.org; Mon, 08 Jan 2007 18:39:48 -0500 Original-Received: by nf-out-0910.google.com with SMTP id h2so2228181nfe for ; Mon, 08 Jan 2007 15:39:47 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=bc6PtvmitutD21u80oT7ss+tSL4hx/iJPAUvcbxKViFR8KpZ/XrtYIE5DKce8W2IfOnY8AOe9O6gVHtKUFWP8sOQqiDftJPyTw7XA3JF/BnwORgzQpdejGIR36LDXtu2FYRfpB691E7YbVhcUA5gEi+/HmN6v45jIV6tRQiILBo= Original-Received: by 10.82.162.14 with SMTP id k14mr2371408bue.1168299587037; Mon, 08 Jan 2007 15:39:47 -0800 (PST) Original-Received: by 10.82.146.7 with HTTP; Mon, 8 Jan 2007 15:39:46 -0800 (PST) Original-To: "Stefan Monnier" In-Reply-To: Content-Disposition: inline X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:65021 Archived-At: On 1/9/07, Stefan Monnier wrote: > If she uses non-default file names, she can easily change auto-mode-alist to > reflect it. That's like saying: if she worries about her libraries' security, she can modify magic-mode-alist or image-type-auto-detectable. But really, I don't care much about what fix we choose, just that we do choose one soonish. OTOH, I think Richard had a point: if image libraries are a security problem, we should deactivate auto-opening of *all* images, not just the ones where the file extension doesn't match. I'm gonna get a virus much easier from a real .tiff or .png file than from a TIFF or PNG file disguised as a C file. That would mean removing image extensions from `auto-mode-alist' and letting the trusting user add them herself. Funny. /L/e/k/t/u