From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs 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 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" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34639"; mail-complaints-to="usenet@ciao.gmane.io" Cc: "74674@debbugs.gnu.org" <74674@debbugs.gnu.org>, the_wurfkreuz To: Jim Porter Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jan 02 02:55:47 2025 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 1tTAR8-0008rL-3w for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 02 Jan 2025 02:55:46 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tTAQZ-0001dZ-BG; Wed, 01 Jan 2025 20:55:11 -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 1tTAQR-0001YG-Pj for bug-gnu-emacs@gnu.org; Wed, 01 Jan 2025 20:55:05 -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 1tTAQQ-00010k-D8 for bug-gnu-emacs@gnu.org; Wed, 01 Jan 2025 20:55:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=Date:MIME-Version:References:In-Reply-To:From:To:Subject; bh=w6W5bG03APhWqWuC9opm+YgIuunMmDg/37VhKbSNEYE=; b=b7ESsdIIzq5C8Bbf9DD30QRQmiEcslq9COLDe9DDq7Xh+zvLMjb2kjgNffQg7fjNI8n6+vx5E2X/5PBFHhZBRzRf4O7vBGMpC86zY5Yvjj3eWy80+nzRMWieYC4CTkFqdMo1WrbXgkBqU1hT4nB344s851b40NhDCfTJpjtUocQAdb6Z4fBd/u1zLiZX719bs9sw3tS7VpOoRD23cTTCd9yiTmH3oB1JjXwnm4x5hJdxLmD0Im4TbY1yaSVA+T1WYBAMgVlqwPA34w7GgfRFJnfjc+kb2ocLeO7KJGFLoaA5MDwMHZFJM6dsuoyYYE+sJPUlgCFExb1PDrgmRu21+A==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tTAQQ-0001we-1P for bug-gnu-emacs@gnu.org; Wed, 01 Jan 2025 20:55:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 02 Jan 2025 01:55:01 +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.17357828437378 (code B ref 74674); Thu, 02 Jan 2025 01:55:01 +0000 Original-Received: (at 74674) by debbugs.gnu.org; 2 Jan 2025 01:54:03 +0000 Original-Received: from localhost ([127.0.0.1]:41295 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tTAPS-0001uk-LR for submit@debbugs.gnu.org; Wed, 01 Jan 2025 20:54:03 -0500 Original-Received: from mail-ed1-x530.google.com ([2a00:1450:4864:20::530]:48198) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1tTAPQ-0001uM-Jx for 74674@debbugs.gnu.org; Wed, 01 Jan 2025 20:54:01 -0500 Original-Received: by mail-ed1-x530.google.com with SMTP id 4fb4d7f45d1cf-5d7e3f1fdafso22335653a12.0 for <74674@debbugs.gnu.org>; Wed, 01 Jan 2025 17:54:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1735782839; x=1736387639; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:from:to:cc:subject:date:message-id:reply-to; bh=w6W5bG03APhWqWuC9opm+YgIuunMmDg/37VhKbSNEYE=; b=LwwKMDccQr9e5P7nAokj2TENeO19iIBO2r/xrhaumvx2o5pmIFhnKs1oTRVjbncRgO 5xE8Fk+3bOVtyIJrnZb3SE7x+idB8At0h4C4CRA4oDviOo0MZbNXKpoGdQLe1d04pmn6 VV18pAqy20lzNIhgRdaqljUvx9eKLN+Q9zDo5y29eUI1S5pySZDIzmRWPAj+V0rfPExV 4ZuHq4D3Ayg1sqD6Gjqo8C7ZzkB8Ob2ejGSW1Z7uxBWtNVpAEN4NW0Um8GgSw9iCpPZJ XAnetmfmA8kkZy5aI6mCq6vwLBqroMVndHmPFIIq67CZEtz2hvp/oi40dg7zMVPq0uAV VRVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1735782839; x=1736387639; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=w6W5bG03APhWqWuC9opm+YgIuunMmDg/37VhKbSNEYE=; b=WBGFOAGUe49MYPqFWT0FJP3CUg99wYsw799Ke1N3xCu2SFhIOpV6KRjcLL5ZzfFqCy oNmLZkLaNxGrKo/xcWw9BzjqNJC3048B6GGWWiouqMBEXPS+y43qjIBonNWRfAzFSSOS 2YwTwJchEfO4Bt8AWATlUiZ1P3LeMhE2E8wSrP3o8HT/IYOBbi2VUnTnWGZ4OBtk11qS XpTIa1hsfQxzwfGnQWepYrfBXm4qfqRXp2+FojKxxugHvKmhAnQs3FLxFqkR3ZNHX173 Iyz0GV9/OFkDBke31i9UIDI4GRGum8EVU/00ic6ljGpvEHHbDshkWZrzSOq3GK/EYHU3 To8Q== X-Forwarded-Encrypted: i=1; AJvYcCUrkg3zh4nHrQxRQR9z0+706P+l+GTepZUdQ5C+XmOVbQ0sDmt7GzLboLp7S1yATt74z1LABQ==@debbugs.gnu.org X-Gm-Message-State: AOJu0YzQLR1EagQ2Eb58/kset6tny375HYUKXu4Kfk3u56qp6gTglJTt 7sJdzlFPcgjsOmoaFm7EsqEd+Ne0A7nHNwA1bNJ7tyn9cg80TMN8dMkarQDx5nTENmb9uhzB5Eh 46j574AsPKbg9ZEojrUqHQga9KTtlVBqY X-Gm-Gg: ASbGncvY2pOgtPPyq6NdZm10afKOId/9C90PGIYnOY9h+T2ZygJlK9X7WGCKfyD1u1A B58BtH/XYx0HgLHupH5kPVPqBskV0inqypbvQXF06 X-Google-Smtp-Source: AGHT+IF9hRkTfmHECnvS9V/oTxPMuBQXJcSa7sphtnJ+CmA6rFQroZKk3ML0aa53qtXBpXkfkXBXssQURgRnkK2kA24= X-Received: by 2002:a05:6402:401b:b0:5d0:c098:69 with SMTP id 4fb4d7f45d1cf-5d81dde75a3mr42521773a12.16.1735782839055; Wed, 01 Jan 2025 17:53:59 -0800 (PST) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Wed, 1 Jan 2025 19:53:58 -0600 In-Reply-To: (Jim Porter's message of "Sun, 8 Dec 2024 18:04:08 -0800") 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:298094 Archived-At: Jim Porter 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?