From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jim Porter Newsgroups: gmane.emacs.bugs Subject: bug#74674: (No Subject) Date: Sun, 8 Dec 2024 18:04:08 -0800 Message-ID: References: <3Ep_kJaOcM1SMrHXq5PwQ4ORDrvn0woBLBvZxEjpg30awa4bHiF0eTh55H_q0aNzodLffdXb9xmJ2__ycRb7e8r2Jrkjn5Dswt6lGVS7q-U=@proton.me> <3kfFOVa-wE4cuQ6mTylU2YzWNvA3Mq3luz_5pxjOw6kAdvokerV9_NORU6Di3p59KnUWjObYYLexfe2H0orMQa4PLFBNNzbNhQvN5B_2HSI=@proton.me> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30200"; mail-complaints-to="usenet@ciao.gmane.io" To: the_wurfkreuz , "74674@debbugs.gnu.org" <74674@debbugs.gnu.org> Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Dec 09 03:06:22 2024 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 1tKTAE-0007h1-C1 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 09 Dec 2024 03:06:22 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tKT9w-0002ie-6n; Sun, 08 Dec 2024 21:06:04 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tKT9u-0002iW-Jm for bug-gnu-emacs@gnu.org; Sun, 08 Dec 2024 21:06:02 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tKT9u-0003CT-9v for bug-gnu-emacs@gnu.org; Sun, 08 Dec 2024 21:06:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=In-Reply-To:From:References:MIME-Version:Date:To:Subject; bh=k02pfEDwDAI3p/iAUQJ1mncGF25O5+nZMj7Gn3BOhi8=; b=JSUKJrWWm8paUGaQPdRKX162YMuPVDomQbwFsVdzs4xG/iCijwAyHMZ4fwWqaAdyJhcRTaurvXB0/SJ2pbldjTlEq+zqe6PeXxlnI3CyQ8BWnlcKAOY9uWVPEpyj0W8gKu/YvVogehivfe36QNDMad9O3K79KFIdQeU7YXsTy/YzFCsHhFYOs3a0sEfjK2tVRBHUtol0CK/dapUCzu2aBxPXlkOPwb8iBKiuvaKbsg25IQD2uAW1dl9Citm8saTb7wtzd9AWZ73ZEj5TsEujIPQPf/Ef4fi6h5pc8w9I/6CNzg9Lj61jh6ib5bJxkdeliRgMBUcVXJEK7wTNSbVupQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tKT9u-0005ep-3U for bug-gnu-emacs@gnu.org; Sun, 08 Dec 2024 21:06:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Jim Porter Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 09 Dec 2024 02:06:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74674 X-GNU-PR-Package: emacs Original-Received: via spool by 74674-submit@debbugs.gnu.org id=B74674.173370991921672 (code B ref 74674); Mon, 09 Dec 2024 02:06:02 +0000 Original-Received: (at 74674) by debbugs.gnu.org; 9 Dec 2024 02:05:19 +0000 Original-Received: from localhost ([127.0.0.1]:52318 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tKT9C-0005dU-OM for submit@debbugs.gnu.org; Sun, 08 Dec 2024 21:05:19 -0500 Original-Received: from mail-pl1-f181.google.com ([209.85.214.181]:45208) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tKT98-0005cg-Lk for 74674@debbugs.gnu.org; Sun, 08 Dec 2024 21:05:16 -0500 Original-Received: by mail-pl1-f181.google.com with SMTP id d9443c01a7336-2161eb94cceso13544695ad.2 for <74674@debbugs.gnu.org>; Sun, 08 Dec 2024 18:05:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1733709849; x=1734314649; darn=debbugs.gnu.org; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:mime-version:date:message-id:from:to:cc :subject:date:message-id:reply-to; bh=k02pfEDwDAI3p/iAUQJ1mncGF25O5+nZMj7Gn3BOhi8=; b=bUXbn/6/MyxvFdOC1gSuTLorNV2yCoyPv7Qbt+C7LnRwJe9c8JcDvywW8UAo2T4qMy 8a5+PIzaoZ1uie9vkSmy5QGyqXb/TLFaQ2wOndg4rEX3lYJCXOdqX2s+pEk0zMdlBoZQ ezac5VKDFXI/nxs2QWJudZyRjuWMNmVAW3g+i5hNBiTAOzSWCh2omGU0fdNHKs5v7kEf gevRKgknowFmiOiyCvPAmuzzVv3LcP3ZdFMvHAtNyoFv6w84eizJa+bR7YKoKsH931uU AvRkpk+EQYegGA+vuzODuKzZfMR3Zvsi//fjE0gHJGI0TWnuDpmbtM/avEtSmV0F+I0R XI/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733709849; x=1734314649; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message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ICU/0bpA== X-Received: by 2002:a17:903:2348:b0:212:996:3559 with SMTP id d9443c01a7336-21614d2e567mr177610885ad.5.1733709848891; Sun, 08 Dec 2024 18:04:08 -0800 (PST) Original-Received: from [192.168.1.2] (syn-023-240-098-037.res.spectrum.com. [23.240.98.37]) by smtp.googlemail.com with ESMTPSA id d9443c01a7336-21618e6a605sm44575925ad.26.2024.12.08.18.04.08 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 08 Dec 2024 18:04:08 -0800 (PST) Content-Language: en-US In-Reply-To: <3kfFOVa-wE4cuQ6mTylU2YzWNvA3Mq3luz_5pxjOw6kAdvokerV9_NORU6Di3p59KnUWjObYYLexfe2H0orMQa4PLFBNNzbNhQvN5B_2HSI=@proton.me> 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:296673 Archived-At: 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.