GNU bug report logs - #50191
Dired's G, O, T should not follow symlinks

Previous Next

Package: emacs;

Reported by: Paul Eggert <eggert <at> cs.ucla.edu>

Date: Tue, 24 Aug 2021 18:24:01 UTC

Severity: normal

To reply to this bug, email your comments to 50191 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#50191; Package emacs. (Tue, 24 Aug 2021 18:24:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Paul Eggert <eggert <at> cs.ucla.edu>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Tue, 24 Aug 2021 18:24:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Emacs bug reports and feature requests <bug-gnu-emacs <at> gnu.org>
Subject: Dired's G, O, T should not follow symlinks
Date: Tue, 24 Aug 2021 11:23:23 -0700
This follows up from Bug#11912.

The Dired commands G (dired-do-chgrp), O (dired-do-chown) and T 
(dired-do-touch) currently follow symbolic links. They should instead 
act on the symlinks themselves, as dired-do-chmod does; this better 
matches the visual experience of Dired.

Not all platforms support modifying these symlink attributes but many 
do, and Dired should support the ones that do, as it already does for 
symlink permissions and the M command.

Fixing this bug will also fix some security-relevant race-condition 
bugs, where an attacker with write access to a shared nonsticky 
directory can cause a Dired-using victim to chgrp, chown, and/or touch 
arbitrary files accessible to the victim.




This bug report was last modified 2 years and 245 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.