From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#11912: 24.1; 'M' in Dired on a symlink does not refresh the display Date: Wed, 25 Aug 2021 12:57:56 +0200 Message-ID: <871r6hn64r.fsf@gnus.org> References: <83txxeb6q8.fsf@gnu.org> <87tujf9m52.fsf@cnu407c2zx.nsn-intra.net> <87fsuyonpv.fsf@gnus.org> <8678ec5a-a5f2-8ae4-6212-c377c3abe9e8@cs.ucla.edu> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19020"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: "Michalis V." , 11912@debbugs.gnu.org To: Paul Eggert Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Aug 25 12:59:40 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mIqd9-0004iI-89 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 25 Aug 2021 12:59:39 +0200 Original-Received: from localhost ([::1]:53946 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mIqd7-0004s0-Qq for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 25 Aug 2021 06:59:37 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53162) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mIqcY-0004Us-Cb for bug-gnu-emacs@gnu.org; Wed, 25 Aug 2021 06:59:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34337) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mIqcY-0003k9-5f for bug-gnu-emacs@gnu.org; Wed, 25 Aug 2021 06:59:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mIqcY-0003rS-0p for bug-gnu-emacs@gnu.org; Wed, 25 Aug 2021 06:59:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 25 Aug 2021 10:59:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11912 X-GNU-PR-Package: emacs Original-Received: via spool by 11912-submit@debbugs.gnu.org id=B11912.162988909914791 (code B ref 11912); Wed, 25 Aug 2021 10:59:01 +0000 Original-Received: (at 11912) by debbugs.gnu.org; 25 Aug 2021 10:58:19 +0000 Original-Received: from localhost ([127.0.0.1]:45883 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mIqbn-0003qQ-2p for submit@debbugs.gnu.org; Wed, 25 Aug 2021 06:58:19 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:35098) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mIqbh-0003q8-Ai for 11912@debbugs.gnu.org; Wed, 25 Aug 2021 06:58:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=lFMCEzYfndMMNJBOEB9Gicj1q5244PMiVKKC/HadGms=; b=Qv8tRij3RrR/QhQ2KIlTKdp/zq FmkO7XzTT0rxZp89YFEeBLzq1Ig8KB1v8WlBea+tEkeBufRDAINNEYH3tTyz/Ic5+hGpUFXJpRl3n Q9WHfNIm909tAofwUC9xVS+gd79qAuACJvTu51qwMHCi+Ys978NNnZDOW0S+crKq2QmA=; Original-Received: from [84.212.220.105] (helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mIqbV-00039Q-Dt; Wed, 25 Aug 2021 12:58:01 +0200 In-Reply-To: <8678ec5a-a5f2-8ae4-6212-c377c3abe9e8@cs.ucla.edu> (Paul Eggert's message of "Tue, 24 Aug 2021 10:32:01 -0700") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:212597 Archived-At: Paul Eggert writes: > * I neglected to document this behavior change, so I just now > installed the attached to fix that oversight. I understand the security-related reasons for changing the `M' command, but I'm wondering whether they are weighty enough to make it more inconvenient for the user to use symlinks in Emacs. The reasoning is that an attacker may control a symlink and make it point to somewhere else. So I may have lrwxrwxrwx 1 evil evil 17 Aug 25 12:52 foosym -> /tmp/IMG_4475.JPG in my dired buffer, and then "evil" changes the link to point to somewhere else, and then I say `M' on the link, and then I operated on the wrong file. However, on the command line, chmod is fine with following symlinks, so the user can just `! chmod 0444' instead, and the same will happen. So is inconveniencing people who are using the `M' command worth it? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no