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: Sun, 8 Dec 2024 20:49:01 -0500 Message-ID: References: <3Ep_kJaOcM1SMrHXq5PwQ4ORDrvn0woBLBvZxEjpg30awa4bHiF0eTh55H_q0aNzodLffdXb9xmJ2__ycRb7e8r2Jrkjn5Dswt6lGVS7q-U=@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="19992"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Jim Porter To: the_wurfkreuz , 74674@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Dec 09 02:51: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 1tKSvg-00051u-Rv for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 09 Dec 2024 02:51:20 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tKSvR-0001fG-CK; Sun, 08 Dec 2024 20:51:05 -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 1tKSvP-0001ev-Kg for bug-gnu-emacs@gnu.org; Sun, 08 Dec 2024 20:51:03 -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 1tKSvP-0001ZJ-D4 for bug-gnu-emacs@gnu.org; Sun, 08 Dec 2024 20:51: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=JkVorVeHbeYpgOrQdrb+WAa/rEmDOhwaVNAwr2rj/pQ=; b=Be1yx/4hadqzUBrgrZonXmiE+8YtYy8Mdtgqaz4Qu/3W+e9LcKUQQKL17ekPa5mQxrMgXoWjlShLxps9haYaR6vZrz9FkrZDsH0z9MDF8z1QgAI578yo8Kdu4ak/bsw272u9WFgRGIGzVfyElUw3Uy39BcBwrp+lnVeWZgw6xKEkSQOv7FnFWG9slbochAfURXUJZ2eGJwX+921pLceAMX/MzzRQzoTiE6cD0+f9PtQYJF3p/gUjBVKt2IRHmcwcdVp7VFKQTL4c99Ij0OVXu+T66ioN53K3YF3jPX1L6I/iRXkNup/Ql8FtApXcR6d4+rfWwSovto8pGNnnk3f3bg==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tKSvP-0004v9-6Y for bug-gnu-emacs@gnu.org; Sun, 08 Dec 2024 20:51:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 09 Dec 2024 01:51:03 +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.173370900618555 (code B ref 74674); Mon, 09 Dec 2024 01:51:03 +0000 Original-Received: (at 74674) by debbugs.gnu.org; 9 Dec 2024 01:50:06 +0000 Original-Received: from localhost ([127.0.0.1]:52293 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tKSuT-0004oq-T0 for submit@debbugs.gnu.org; Sun, 08 Dec 2024 20:50:06 -0500 Original-Received: from mail-ed1-f41.google.com ([209.85.208.41]:44193) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tKSuQ-0004mt-PM for 74674@debbugs.gnu.org; Sun, 08 Dec 2024 20:50:03 -0500 Original-Received: by mail-ed1-f41.google.com with SMTP id 4fb4d7f45d1cf-5d3e6274015so1916857a12.0 for <74674@debbugs.gnu.org>; Sun, 08 Dec 2024 17:50:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1733708942; x=1734313742; 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=JkVorVeHbeYpgOrQdrb+WAa/rEmDOhwaVNAwr2rj/pQ=; b=kRfDcoNRwi0HRaidrcmBy/BAZITtZCyrszklch/vxtpkVJhkJV5qNtJfAv/BYqMdhu ZzDhPJb16KD2R0T/fUZrP3YWaQNeqM1uUub9GF9LwRyh1IWWlSMGY3ExFfpI20vQd5DW R8Yl38DRiwRmhYNrUNXyQbGpY7BmLpiShwgAHeT6itV5iUFJOB6gQTonVjURhi3YM325 Wzt5mKm1hzrx4UpOi/7mrBhAG9wyBylxVSem5pcWR0TCcV71c9qJYVcWnOWwTN7K9HQG tgAot4SzBHBiYFyQcA1zF6Uyz3gqp5U5Sd82vXOmrcWAYKvtzbI1TOTrp9bBbqRdzqWg 3ByQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733708942; x=1734313742; 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=JkVorVeHbeYpgOrQdrb+WAa/rEmDOhwaVNAwr2rj/pQ=; b=NONlqd3uCtfn7kl/drXvsRer9loq5mG+qC1IALjcbeLGTj2iQmS7YRWqo6kcaz3KbW Lzpw1rRaqppJ+xG3Q/jGcR95L7OX/RjP0l+6rnU47Re6SqCx9tzXtaTCJFzYGNYIdFZz JDPsraqdTkvq+tubGNGyvb5CBjSCBm3GeZ31RGZoaw7y3bb9RGLHKTmmQzSFQM9ta0Tq 0r8SRv3Q4nPi9yqPs7Omedv1sYj09NmJw0dsLC+84pclLIXecaq1xzQf4Uu8YcDUPF12 fDKbf1Gc5OvzlwUzFvZT84fieG1FBfnMmo3aetOOsKXVsjo1y2Bm7TgwuEI8hcVczMEb uF/w== X-Forwarded-Encrypted: i=1; AJvYcCVzXWzaI8t8kkMOoY6xt5CFTuooyj1DlbExw/BI5d11SSuja0AyYKzYjD8Dh9zfjaZvnNqDcg==@debbugs.gnu.org X-Gm-Message-State: AOJu0Ywx2RMr0bnJdjxAhNy+VZahfVf7ppLX1/GqVfDMxENSyg7NBysZ KSD47nFPVflbHWuonEDCBgwj3Y2+KL+530WNxBzeGMH/+myJvjoLZDTRWuQ2EosYozY5L+VHnkw H5XPeVmFxpeLyIsNYZPk2EAsVBAY= X-Gm-Gg: ASbGncu3W9cvkYOeWS8eWc3TtGfmuZ7yHciw90FGPaH0Fkql1dlqW8Bc1BcNTKAKtO/ Y1fiBIPGJTNMpnEB8lTn4Wc+c7AiogtOGYQ== X-Google-Smtp-Source: AGHT+IFk0JNp62pgqoTQ57rTocTq+eAbJ6WEIi2dgu4veL1+mvV9VyzOdFmJUhDr1kCaxmEcoWSImUjmhyovfJjKguI= X-Received: by 2002:a05:6402:1d55:b0:5cf:e71c:ff88 with SMTP id 4fb4d7f45d1cf-5d3be664206mr12214511a12.4.1733708941534; Sun, 08 Dec 2024 17:49:01 -0800 (PST) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Sun, 8 Dec 2024 20:49:01 -0500 In-Reply-To: <3Ep_kJaOcM1SMrHXq5PwQ4ORDrvn0woBLBvZxEjpg30awa4bHiF0eTh55H_q0aNzodLffdXb9xmJ2__ycRb7e8r2Jrkjn5Dswt6lGVS7q-U=@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:296672 Archived-At: the_wurfkreuz via "Bug reports for GNU Emacs, the Swiss army knife of text editors" 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.