From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Emanuele Giaquinta Newsgroups: gmane.emacs.devel Subject: Re: sh-tmp-file inserts unsafe code Date: Mon, 10 Oct 2005 12:06:24 +0200 Message-ID: <74205160510100306wfc57ea3v69373e100895193a@mail.gmail.com> References: <4349379C.60103@gmx.de> <434A2459.2030707@gmx.de> Reply-To: Emanuele Giaquinta NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1128943189 23486 80.91.229.2 (10 Oct 2005 11:19:49 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 10 Oct 2005 11:19:49 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Oct 10 13:19:41 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EOvgy-0005WA-HZ for ged-emacs-devel@m.gmane.org; Mon, 10 Oct 2005 13:19:40 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EOvgx-0007eD-QE for ged-emacs-devel@m.gmane.org; Mon, 10 Oct 2005 07:19:39 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EOubG-0000l7-9C for emacs-devel@gnu.org; Mon, 10 Oct 2005 06:09:42 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EOubE-0000k7-2b for emacs-devel@gnu.org; Mon, 10 Oct 2005 06:09:40 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EOuY5-000052-S0 for emacs-devel@gnu.org; Mon, 10 Oct 2005 06:06:26 -0400 Original-Received: from [72.14.204.205] (helo=qproxy.gmail.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EOuY5-0000mb-PH for emacs-devel@gnu.org; Mon, 10 Oct 2005 06:06:25 -0400 Original-Received: by qproxy.gmail.com with SMTP id a33so1320597qbd for ; Mon, 10 Oct 2005 03:06:24 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=EiyFIwYYKBPxJ38wenKvXXkxTp4ZGIa/IcJnpI27jxm3B3t0tQMP5N8mzwFi2otnZm17sZ9OfoF/Jl8dDOQzcn3469SQ1EU6I8kfZHBCDyVCHeS4diqMuUqnDJBSH72jtlXspPlS3M5D/qZqW7FqcPS2WI6bdsDkqtSCNVrG4kc= Original-Received: by 10.65.40.18 with SMTP id s18mr3097487qbj; Mon, 10 Oct 2005 03:06:24 -0700 (PDT) Original-Received: by 10.64.196.20 with HTTP; Mon, 10 Oct 2005 03:06:24 -0700 (PDT) Original-To: emacs-devel@gnu.org In-Reply-To: <434A2459.2030707@gmx.de> 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:43788 Archived-At: Here it is one for c?sh. *** sh-script.el=09Wed Sep 21 13:02:55 2005 --- sh-script.el=09Mon Oct 10 11:57:41 2005 *************** *** 3392,3398 **** "Insert code to setup temporary file handling. See `sh-feature'." (bash sh-append ksh88) (csh (file-name-nondirectory (buffer-file-name)) ! "set tmp =3D /tmp/" str ".$$" \n "onintr exit" \n _ (and (goto-char (point-max)) =09 (not (bolp)) --- 3392,3398 ---- "Insert code to setup temporary file handling. See `sh-feature'." (bash sh-append ksh88) (csh (file-name-nondirectory (buffer-file-name)) ! "set tmp =3D `mktemp /tmp/" str ".XXXXXX`" \n "onintr exit" \n _ (and (goto-char (point-max)) =09 (not (bolp)) *************** *** 3415,3421 **** > "tmp =3D /tmp/" str ".$pid" \n "fn sigexit { rm $tmp^* >[2]/dev/null }" \n) (sh (file-name-nondirectory (buffer-file-name)) ! > "TMP=3D${TMPDIR:-/tmp}/" str ".$$" \n "trap \"rm $TMP* 2>/dev/null\" " ?0 \n)) --- 3415,3421 ---- > "tmp =3D /tmp/" str ".$pid" \n "fn sigexit { rm $tmp^* >[2]/dev/null }" \n) (sh (file-name-nondirectory (buffer-file-name)) ! > "TMP=3D`mktemp ${TMPDIR:-/tmp}/" str ".XXXXXX`" \n "trap \"rm $TMP* 2>/dev/null\" " ?0 \n))