From: Stefan Kangas <stefankangas@gmail.com>
To: Jim Porter <jporterbugs@gmail.com>
Cc: "74674@debbugs.gnu.org" <74674@debbugs.gnu.org>,
the_wurfkreuz <the_wurfkreuz@proton.me>
Subject: bug#74674: 30.0.91; Can't delete an empty symlink when trashing is enabled for root
Date: Wed, 1 Jan 2025 19:53:58 -0600 [thread overview]
Message-ID: <CADwFkm=jknNNm1T67ceATE6bkV-cL5S9w+zNgcd4QbOGewi-xw@mail.gmail.com> (raw)
In-Reply-To: <ecafc627-bb99-ad96-fe98-15dcc10cdd4f@gmail.com> (Jim Porter's message of "Sun, 8 Dec 2024 18:04:08 -0800")
Jim Porter <jporterbugs@gmail.com> writes:
> On 12/4/2024 12:47 PM, the_wurfkreuz via Bug reports for GNU Emacs, the Swiss
> army knife of text editors wrote:
>> The problem got even more complicated. Now i'm trying to just delete any file,
>> and i can't do that whether i have trashing enabled or not:
>> ~/.emacs.d $ (require 'em-tramp)
>> em-tramp
>> ~/.emacs.d [1] $ eshell/sudo touch /usr/local/bin/test-file
>> ~/.emacs.d $ eshell/sudo rm /usr/local/bin/test-file
>> Removing old name: Permission denied, /usr/local/bin/test-file
>
> This is the correct behavior; you shouldn't be able to delete the file using
> this method. In short, "/usr/local/bin/test-file" refers to a *local* file name,
> so it's not going through Tramp's "sudo" method, and thus it's correct to report
> that you don't have permission.
>
> Some more detail: Eshell built-in commands like "rm" (which the built-in
> "eshell/sudo" will call) treat absolute file names as ordinary, local files,
> just like the rest of Emacs would. Specifically, it won't automatically prepend
> the "/sudo::" method to it. Doing that is bug#70792, which I have a patch for
> but haven't finished yet.
Should the bugs be merged perhaps?
next prev parent reply other threads:[~2025-01-02 1:53 UTC|newest]
Thread overview: 6+ 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
2025-01-02 1:53 ` Stefan Kangas [this message]
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CADwFkm=jknNNm1T67ceATE6bkV-cL5S9w+zNgcd4QbOGewi-xw@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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).