all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Kangas <stefankangas@gmail.com>
To: the_wurfkreuz <the_wurfkreuz@proton.me>, 74674@debbugs.gnu.org
Cc: Jim Porter <jporterbugs@gmail.com>
Subject: bug#74674: 30.0.91; Can't delete an empty symlink when trashing is enabled for root
Date: Sun, 8 Dec 2024 20:49:01 -0500	[thread overview]
Message-ID: <CADwFkmk7JGbR-KM_ztN5WjEL04R6f=vii-NhimRvLPOmQKNDyQ@mail.gmail.com> (raw)
In-Reply-To: <3Ep_kJaOcM1SMrHXq5PwQ4ORDrvn0woBLBvZxEjpg30awa4bHiF0eTh55H_q0aNzodLffdXb9xmJ2__ycRb7e8r2Jrkjn5Dswt6lGVS7q-U=@proton.me>

the_wurfkreuz via "Bug reports for GNU Emacs, the Swiss army knife of
text editors" <bug-gnu-emacs@gnu.org> writes:

> 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.

I'm copying in Jim Porter.





      parent reply	other threads:[~2024-12-09  1:49 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-12-03 19:51 bug#74674: 30.0.91; Can't delete an empty symlink when trashing is enabled for root the_wurfkreuz via Bug reports for GNU Emacs, the Swiss army knife of text editors
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 ` Stefan Kangas [this message]

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='CADwFkmk7JGbR-KM_ztN5WjEL04R6f=vii-NhimRvLPOmQKNDyQ@mail.gmail.com' \
    --to=stefankangas@gmail.com \
    --cc=74674@debbugs.gnu.org \
    --cc=jporterbugs@gmail.com \
    --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.