From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/10900 Path: main.gmane.org!not-for-mail From: vroonhof@math.ethz.ch Newsgroups: gmane.emacs.gnus.general Subject: Re: Possible security hole? nnfolder evaluates local variables.. Date: Thu, 8 May 1997 18:15:29 +0200 (MET DST) Message-ID: <199705081615.SAA04296@loewner.math.ethz.ch> References: NNTP-Posting-Host: coloc-standby.netfonds.no Content-Type: text X-Trace: main.gmane.org 1035150699 27109 80.91.224.250 (20 Oct 2002 21:51:39 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 20 Oct 2002 21:51:39 +0000 (UTC) Cc: ding@gnus.org Return-Path: Original-Received: from ifi.uio.no (0@ifi.uio.no [129.240.64.2]) by deanna.miranova.com (8.8.5/8.8.5) with SMTP id JAA24986 for ; Thu, 8 May 1997 09:39:44 -0700 Original-Received: from claymore.vcinet.com (claymore.vcinet.com [208.205.12.23]) by ifi.uio.no with SMTP (8.6.11/ifi2.4) id for ; Thu, 8 May 1997 18:15:14 +0200 Original-Received: (qmail 12540 invoked by uid 504); 8 May 1997 16:15:12 -0000 Original-Received: (qmail 12534 invoked from network); 8 May 1997 16:15:11 -0000 Original-Received: from frege-d-math-north-g-west.math.ethz.ch (HELO frege.math.ethz.ch) (root@129.132.145.3) by claymore.vcinet.com with SMTP; 8 May 1997 16:15:03 -0000 Original-Received: from loewner.math.ethz.ch (loewner [129.132.145.82]) by frege.math.ethz.ch (8.6.12/Main-STAT-mailer) with ESMTP id SAA01234; Thu, 8 May 1997 18:14:01 +0200 Original-Received: (vroonhof@localhost) by loewner.math.ethz.ch (8.6.12/D-MATH-client) id SAA04296; Thu, 8 May 1997 18:15:30 +0200 Original-To: bugs@gnus.org (Lars Magne Ingebrigtsen) In-Reply-To: from "Lars Magne Ingebrigtsen" at May 8, 97 04:32:12 pm X-Mailer: ELM [version 2.4 PL24 PGP2] Xref: main.gmane.org gmane.emacs.gnus.general:10900 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:10900 > > The problem: > > XEmacs evals local variables for nnfolder files > > > > The symptom: > > This appeared in the minibuffer > > > > Fetching headers for nnfolder:xemacs-beta...done > > File local-variables error: (void-function winmgr-mode) > > [refering to definition of nnheader-find-file-noselect] > The `enable-local-variables' (under Emacs, at least) should ensure > that no variables are evaled. Is there some other variable under > XEmacs that controls this? XEmacs uses the same variable.. > nnfolder uses this to load the folder:> > (defun nnheader-find-file-noselect (&rest args) Ahhh. That is the problem... Under XEmacs it nnheader-find-file-noselect is shadowed by nnheader-xemacs-find-file-noselect (from nnheaderxm.el). A large ugly function that looks like a verbatim copy of find-file-noselect from the XEmacs files.el. It proably does the enable-local-variables thing wrong. I am not sure why it calls after-find-file functions at all. The last reference I can find to it is in the Changelog of Gnus 5.2.39. where there is a "simplify" entry. I cannot see why it was introduced. Does anybody know? -- Jan Vroonhof http://www.math.ethz.ch/~vroonhof/ Mathematik, vroonhof@math.ethz.ch HG E16, ETH-Zentrum, Tel: +41-1-6325456/25154 Raemistrasse 101, CH-8092 Zuerich. Fax: +41-1-6321085