From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: executable-set-magic update Date: Sat, 22 Jul 2017 10:36:27 +0300 Message-ID: <83h8y4apok.fsf@gnu.org> References: <83ink471mf.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1500709046 21508 195.159.176.226 (22 Jul 2017 07:37:26 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 22 Jul 2017 07:37:26 +0000 (UTC) Cc: emacs-devel@gnu.org To: "Andrew L. Moore" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jul 22 09:37:20 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dYoyP-0004wZ-EK for ged-emacs-devel@m.gmane.org; Sat, 22 Jul 2017 09:37:13 +0200 Original-Received: from localhost ([::1]:46001 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dYoyU-0002jU-VR for ged-emacs-devel@m.gmane.org; Sat, 22 Jul 2017 03:37:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47149) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dYoxp-0002jP-Sd for emacs-devel@gnu.org; Sat, 22 Jul 2017 03:36:38 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dYoxm-0005qg-Ph for emacs-devel@gnu.org; Sat, 22 Jul 2017 03:36:37 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:41639) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dYoxm-0005qc-MN; Sat, 22 Jul 2017 03:36:34 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3284 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1dYoxl-0008P7-Oc; Sat, 22 Jul 2017 03:36:34 -0400 In-reply-to: (slewsys@gmail.com) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:216929 Archived-At: > From: "Andrew L. Moore" > Date: Sat, 10 Jun 2017 15:31:04 -0400 > Cc: emacs-devel@gnu.org > > > On Jun 10, 2017, at 3:17 AM, Eli Zaretskii wrote: > > > >> From: "Andrew L. Moore" > >> Date: Fri, 9 Jun 2017 17:31:30 -0400 > >> > >> lisp/progmodes/executable.el does not appear to support magic numbers of the form `#/usr/bin/env interpreter’. One way to extend support is via the attached diff which merely adds a new variable `executable-interpreter-path-absolute’. Set the new variable to nil and variable `executable-prefix’ to “#!/usr/bin/env “. > > > > Thanks. > > > > Wouldn't it be more elegant (and perhaps also safer, security-wise) if > > we supported the special prefix "/usr/bin/env" directly, i.e. without > > feeding it via some kind of "back door", and allowing arbitrary > > strings there? > > Attached below is a patch following your suggestions. From NEWS: Thanks, pushed to master. With this contribution, you've exhausted the amount of changes we can accept without legal papers, so I'd encourage you to start the paperwork rolling, for us to be able to accept further contributions.