all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: the_wurfkreuz via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: 74674@debbugs.gnu.org
Subject: bug#74674: 30.0.91; Can't delete an empty symlink when trashing is enabled for root
Date: Tue, 03 Dec 2024 19:51:35 +0000	[thread overview]
Message-ID: <3Ep_kJaOcM1SMrHXq5PwQ4ORDrvn0woBLBvZxEjpg30awa4bHiF0eTh55H_q0aNzodLffdXb9xmJ2__ycRb7e8r2Jrkjn5Dswt6lGVS7q-U=@proton.me> (raw)

[-- Attachment #1: Type: text/plain, Size: 793 bytes --]

If I evaluate the code to enable trashing for root and try to delete an empty symbolic link from Eshell, I get:
File is missing: /path/to/link

Steps to reproduce:

1. emacs -Q
2. M-: (connection-local-set-profile-variables 'remote-trash-directory '((trash-directory . "/sudo::~/.local/share/trash/")))
3. M-: (connection-local-set-profiles `(:application tramp :protocol "sudo" :machine ,(system-name)) 'remote-trash-directory)
4. M-x eshell
5. (require 'em-tramp)
6. (setq delete-by-moving-to-trash t)
7. sudo touch /usr/local/bin/test-file
8. ln -s /sudo::/usr/local/bin/test-file /sudo::/usr/local/bin/test-file-line
9. sudo rm /usr/local/bin/test-file
10. sudo rm /usr/local/bin/test-file-line

"File is missing: /usr/local/bin/test-file-link".

Expected behavior:

I'm able to delete it.

[-- Attachment #2: Type: text/html, Size: 1383 bytes --]

             reply	other threads:[~2024-12-03 19:51 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-12-03 19:51 the_wurfkreuz via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2024-12-04 20:47 ` bug#74674: (No Subject) the_wurfkreuz via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-12-09  2:04   ` Jim Porter
2024-12-06 17:35 ` the_wurfkreuz via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-12-09  1:49 ` bug#74674: 30.0.91; Can't delete an empty symlink when trashing is enabled for root Stefan Kangas

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='3Ep_kJaOcM1SMrHXq5PwQ4ORDrvn0woBLBvZxEjpg30awa4bHiF0eTh55H_q0aNzodLffdXb9xmJ2__ycRb7e8r2Jrkjn5Dswt6lGVS7q-U=@proton.me' \
    --to=bug-gnu-emacs@gnu.org \
    --cc=74674@debbugs.gnu.org \
    --cc=the_wurfkreuz@proton.me \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.