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: Tue, 24 Aug 2021 17:40:28 +0200 Message-ID: <87fsuyonpv.fsf@gnus.org> References: <83txxeb6q8.fsf@gnu.org> <87tujf9m52.fsf@cnu407c2zx.nsn-intra.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40410"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 11912@debbugs.gnu.org, Paul Eggert To: "Michalis V." Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Aug 24 17:41:09 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 1mIYY1-000AGN-1x for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 24 Aug 2021 17:41:09 +0200 Original-Received: from localhost ([::1]:54518 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mIYXz-0003x5-Sg for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 24 Aug 2021 11:41:07 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43854) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mIYXu-0003wi-Jw for bug-gnu-emacs@gnu.org; Tue, 24 Aug 2021 11:41:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:33493) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mIYXu-0007fZ-CE for bug-gnu-emacs@gnu.org; Tue, 24 Aug 2021 11:41:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mIYXu-0006iF-39 for bug-gnu-emacs@gnu.org; Tue, 24 Aug 2021 11:41: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: Tue, 24 Aug 2021 15:41:02 +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.162981964425772 (code B ref 11912); Tue, 24 Aug 2021 15:41:02 +0000 Original-Received: (at 11912) by debbugs.gnu.org; 24 Aug 2021 15:40:44 +0000 Original-Received: from localhost ([127.0.0.1]:45039 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mIYXc-0006hb-GF for submit@debbugs.gnu.org; Tue, 24 Aug 2021 11:40:44 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:55352) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mIYXZ-0006hL-QO for 11912@debbugs.gnu.org; Tue, 24 Aug 2021 11:40:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To: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=f9aSN1nhmOK03WUXyWVfW4x8YN1Y9zua7a+YxBJUJ9A=; b=uIxspYCOQrduGmqmP0evAS/5Ya bNYJGuIcNpOmOu3bVDZs+0QI0fWSoDmcTApNS9QldlZz0fzBu3Cn6XjA5BSNeOC9ghbhjFmEvEtrh YmtM2e3SCZMY8MLu/67+1YfDHpI9NgrUplEMCMipkxLXXB1gaBVnr08itEqL9HaHW9Oc=; 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 1mIYXN-0000kW-MJ; Tue, 24 Aug 2021 17:40:33 +0200 In-Reply-To: <87tujf9m52.fsf@cnu407c2zx.nsn-intra.net> (Michalis V.'s message of "Tue, 24 Aug 2021 13:23:37 +0300") 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:212553 Archived-At: "Michalis V." writes: > I can reproduce this in 27.1 but in 28.0.50 i get the following message: > > Doing chmod: Operation not supported, /tmp/foobar > > chmod on the symlinked file itself works ("Redisplaying..." too) > > perhaps this functionality was disabled/removed for symlinks on purpose? > or is it a new bug? In Linux you can't change the permissions on a symlink (they're always 777): chmod never changes the permissions of symbolic links; the chmod sys= tem call cannot change their permissions. This is not a problem since = the permissions of symbolic links are never used.=20 So I'm surprised that the `M' command even tries to do the chmod on the symlink. This was apparently done as part of a security audit: commit 9d626dffc6ba62c0d7a1a5c712f576ed8684fd66 Author: Paul Eggert AuthorDate: Sun Feb 23 16:19:42 2020 -0800 Add 'nofollow' flag to set-file-modes etc. =20=20=20=20 This avoids some race conditions (Bug#39683). E.g., if some other program changes a file to a symlink between the time Emacs creates the file and the time it changes the file=E2=80=99s permissions, using = the new flag prevents Emacs from inadvertently changing the permissions of a victim in some completely unrelated directory. Hm. I'm not sure why this should affect the `M' command in dired, though... I've added Paul to the CCs; perhaps he has some comments. --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no