From unknown Mon Aug 18 04:36:20 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#59986 <59986@debbugs.gnu.org> To: bug#59986 <59986@debbugs.gnu.org> Subject: Status: 30.0.50; Can't trash file with broken symbolic link Reply-To: bug#59986 <59986@debbugs.gnu.org> Date: Mon, 18 Aug 2025 11:36:20 +0000 retitle 59986 30.0.50; Can't trash file with broken symbolic link reassign 59986 emacs submitter 59986 Jean Louis severity 59986 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Mon Dec 12 01:52:55 2022 Received: (at submit) by debbugs.gnu.org; 12 Dec 2022 06:52:55 +0000 Received: from localhost ([127.0.0.1]:50875 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p4cgI-00014x-Sc for submit@debbugs.gnu.org; Mon, 12 Dec 2022 01:52:55 -0500 Received: from lists.gnu.org ([209.51.188.17]:42852) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p4cgG-00014q-T1 for submit@debbugs.gnu.org; Mon, 12 Dec 2022 01:52:53 -0500 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 1p4cgG-0001Fc-Ld for bug-gnu-emacs@gnu.org; Mon, 12 Dec 2022 01:52:52 -0500 Received: from stw1.rcdrun.com ([217.170.207.13]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p4cgE-0007Jh-Qj for bug-gnu-emacs@gnu.org; Mon, 12 Dec 2022 01:52:52 -0500 Received: from localhost ([::ffff:102.87.114.191]) (AUTH: PLAIN admin, TLS: TLS1.3,256bits,ECDHE_RSA_AES_256_GCM_SHA384) by stw1.rcdrun.com with ESMTPSA id 0000000000055D55.000000006396CF9E.00003126; Sun, 11 Dec 2022 23:52:13 -0700 From: Jean Louis To: bug-gnu-emacs@gnu.org Subject: 30.0.50; Can't trash file with broken symbolic link Date: Mon, 12 Dec 2022 09:51:52 +0300 Message-ID: <86cz8p15dj.fsf@protected.rcdrun.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=217.170.207.13; envelope-from=admin@protected.rcdrun.com; helo=stw1.rcdrun.com X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.25, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.1 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.1 (--) I am deleting files by using trash. My Trash is in /home/data1/protected/tmp/Trash In the directory: /home/data1/protected/.mozilla/iceweasel/rzwnn0b0.default-release-2/ I have the following file: D lrwxrwxrwx 1 20 Mar 24 2022 lock -> 217.170.207.13:+7513 which is: lock: broken symbolic link to 217.170.207.13:+7513 and by marking it for deletion and trying to delete by moving to Trash, I get the message: file-already-exists: File already exists: /home/data1/protected/tmp/Trash/lock Because in the Trash directory I have the following file: /home/data1/protected/tmp/Trash: lrwxrwxrwx 1 21 Dec 11 07:36 lock -> 217.170.207.13:+24763 which is: lock: broken symbolic link to 217.170.207.13:+24763 In GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, X toolkit, cairo version 1.17.6, Xaw3d scroll bars) of 2022-12-10 built on protected.rcdrun.com Repository revision: fbbf3610fd5b27873e13cfd7702d5b0bbb15c2f8 Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12101004 System Description: Parabola GNU/Linux-libre Configured using: 'configure --with-x-toolkit=lucid' Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG JSON LCMS2 LIBOTF LIBSYSTEMD LIBXML2 M17N_FLT MODULES NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS WEBP X11 XAW3D XDBE XIM XINPUT2 XPM LUCID ZLIB Important settings: value of $LC_ALL: en_US.UTF-8 value of $LANG: de_DE.UTF-8 value of $XMODIFIERS: @im=exwm-xim locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t line-number-mode: t indent-tabs-mode: t transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message mailcap yank-media puny dired dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg rfc6068 epg-config gnus-util text-property-search time-date subr-x mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader cl-loaddefs cl-lib sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic indonesian philippine cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting cairo x-toolkit xinput2 x multi-tty make-network-process emacs) Memory information: ((conses 16 39079 4758) (symbols 48 5192 2) (strings 32 14313 1652) (string-bytes 1 403139) (vectors 16 10438) (vector-slots 8 158928 10100) (floats 8 40 19) (intervals 56 256 0) (buffers 984 11)) -- Jean Take action in Free Software Foundation campaigns: https://www.fsf.org/campaigns In support of Richard M. Stallman https://stallmansupport.org/ From debbugs-submit-bounces@debbugs.gnu.org Mon Dec 12 22:52:07 2022 Received: (at 59986) by debbugs.gnu.org; 13 Dec 2022 03:52:07 +0000 Received: from localhost ([127.0.0.1]:57543 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p4wKt-0004DT-H7 for submit@debbugs.gnu.org; Mon, 12 Dec 2022 22:52:07 -0500 Received: from mout.web.de ([212.227.17.11]:58949) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p4wKr-0004D3-6h for 59986@debbugs.gnu.org; Mon, 12 Dec 2022 22:52:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=s29768273; t=1670903485; bh=3ZOmXErhlU3IUfBJfNHX1DTAqBgrM+kGk0vXy8UMnx0=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date; b=TuvDtCt5yB5rMzUGv1EL5a3TN+Shyb2AZ0VB+XJIU6FRRAQau2vm3Lgj1HffWihYs qmpyfwy8peVtM8xQNv2FBZZirBYNO1fRgHEZRtD6QFtEyu/EUul04Foy1Zbc5qTO2j YrDUBr0xhtx3dpDHSlKo+mbHCyzZDUvPc9+gASsr6kZTbtQioUH3xoydsSz+btKaS8 k/JTf+luA/2CKDJUoaG6DOK5ohMwhKyaYZl9aRlSNH2vXgpN2PbfoIX/K6pfy/64U/ KpSdhsBNHTmKsls3p/gW5BFK+pw37b7wpdGiT7HM20TsxkKNsUNxphAVpqVzIsn5b5 5hSZLsoofv2eA== X-UI-Sender-Class: 814a7b36-bfc1-4dae-8640-3722d8ec6cd6 Received: from drachen.dragon ([92.76.229.140]) by smtp.web.de (mrweb106 [213.165.67.124]) with ESMTPSA (Nemesis) id 1MYcll-1pPzZO2tdr-00VVZZ; Tue, 13 Dec 2022 04:51:25 +0100 From: Michael Heerdegen To: Jean Louis Subject: Re: bug#59986: 30.0.50; Can't trash file with broken symbolic link In-Reply-To: <86cz8p15dj.fsf@protected.rcdrun.com> (Jean Louis's message of "Mon, 12 Dec 2022 09:51:52 +0300") References: <86cz8p15dj.fsf@protected.rcdrun.com> Date: Tue, 13 Dec 2022 04:51:24 +0100 Message-ID: <871qp42c77.fsf@web.de> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:I8WvG7tdL71bo+Kg9sNsOgENkpEe8fpki0DJWNzqxPayLCXz6Jb mETqeV5YsDieITouGYwK01ftNo6TbBxYcBMBI1wElkJxi+2oA5zx1DzGL5JDelrVuZKCIEV WPCFa2vDYFB5hXdA0zVOlp9uQz+YiJw0HbP9briaVaTos7jCpoAw1XIyrk52OA2o5/auYUf uBzWSzgV9OOs2kpXVkaiQ== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:LdXpDJ6wvEI=;e3Cdkuy5RI8RedfRESyjKMyC8re z8Ey4I6NiU+UzSCpTNyqZIta+iQuk4NtHyWu24mcjDt1VZtZGHgvdD5zt540BuHCmsCt0G8OI VczOnq4OJMgexcvasWTIo29ufM24FnQHfgvDXP4lod72tMRN1ePmxfMVspHWpGj9C8JadKpyL Vb9N4N8r2p+ov7fyv2FQPyAYYgXu7cRyQBpYxhxE1qq1S1tCkIjapMXZ7afRg5U6tIIII46pa ClaZ0vMJINHY1uQq2+6Kynz9JBvoIKI0oLXp/xwzWSEd7lMfq9Geet7Tx2j2aqe14r2oi81vH KQAwxPEjJYa9HoiOsjbVJbi5KKOLCkLsTrkaCeGBrEpO53NDA/rNVNXeCkNy3mKNEGKWoD5SL b19rSh5pQj5WLD1pfudBAPwbwFpY2/41a0VErwAmifJJ2AV0pNInFpSOJFwlHGHyPqzKEjIjp xwEsz83RCZzia3STtARCBKzmuKtdOspv7+OcXQerJxPEtUedqZwASgywAA/kiUtX2o2EGJqKO K0GC62WIOlneoRcIvUN1KZlL7QvIUTh15Osc0KmjBn9uCKXHidKVdFbSCF+vOYmFlJNZwx/LG 5SSu6J5P5W58OEkj5l8Wn5JN6RYVVf6uiSEXr/1K1kJyiFEyUIw2mFfQdez4VYDOMMrjBGZQd 2Vqshi2jSPxGROHeHccKEysCpq2hd2qTCrJzyjC3GUBfvSnW5om/ndODmfld7qtpgqCt6CD6D zsup62fMVma53OtysO0tyqdmdk8Qw3AJti8KE0srLoHYOVFaEwiciFpcJFw+5Eo3EFj6P5Out Vg5rOxM7xH1Mm/k0zYFHimg/2saVgoSco02bLRVhlnkQgoAYJIbEq+ijqe2/wnr0K32NB7fJb gL93w1Xz7GLfwO5qKKJtLhidbQq/lzsJ59kewn3Xk7Degxs08SuAI4bH/8rwrT7DvbyWe5FHY AYsdsf0h3a73yzZS5WSYiLVjZfI= X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 59986 Cc: 59986@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Jean Louis writes: > file-already-exists: File already exists: /home/data1/protected/tmp/Trash/lock Thanks. This looks like #47135 from you: https://lists.nongnu.org/archive/html/bug-gnu-emacs/2021-03/msg01305.html Looks identical, but Lars said he had fixed that. Are you maybe able to find out why his fix doesn't work for you in your case? Michael. From debbugs-submit-bounces@debbugs.gnu.org Tue Dec 13 03:00:42 2022 Received: (at 59986) by debbugs.gnu.org; 13 Dec 2022 08:00:42 +0000 Received: from localhost ([127.0.0.1]:58761 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p50DS-0001KE-H6 for submit@debbugs.gnu.org; Tue, 13 Dec 2022 03:00:42 -0500 Received: from stw1.rcdrun.com ([217.170.207.13]:49213) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p50DP-0001K8-U4 for 59986@debbugs.gnu.org; Tue, 13 Dec 2022 03:00:40 -0500 Received: from localhost ([::ffff:197.239.7.93]) (AUTH: PLAIN admin, TLS: TLS1.3,256bits,ECDHE_RSA_AES_256_GCM_SHA384) by stw1.rcdrun.com with ESMTPSA id 0000000000055D55.0000000063983126.00006C24; Tue, 13 Dec 2022 01:00:37 -0700 Date: Tue, 13 Dec 2022 11:00:11 +0300 From: Jean Louis To: Michael Heerdegen Subject: Re: bug#59986: 30.0.50; Can't trash file with broken symbolic link Message-ID: References: <86cz8p15dj.fsf@protected.rcdrun.com> <871qp42c77.fsf@web.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline In-Reply-To: <871qp42c77.fsf@web.de> User-Agent: Mutt/2.2.9+54 (af2080d) (2022-11-21) X-Spam-Score: 2.6 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: * Michael Heerdegen [2022-12-13 06:52]: > Jean Louis writes: > > > file-already-exists: File already exists: /home/data1/protected/tmp/Trash/lock > > Than [...] Content analysis details: (2.6 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 2.6 RCVD_IN_SBL RBL: Received via a relay in Spamhaus SBL [197.239.7.93 listed in zen.spamhaus.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record X-Debbugs-Envelope-To: 59986 Cc: 59986@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.6 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: * Michael Heerdegen [2022-12-13 06:52]: > Jean Louis writes: > > > file-already-exists: File already exists: /home/data1/protected/tmp/Trash/lock > > Than [...] Content analysis details: (1.6 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 2.6 RCVD_IN_SBL RBL: Received via a relay in Spamhaus SBL [197.239.7.93 listed in zen.spamhaus.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager * Michael Heerdegen [2022-12-13 06:52]: > Jean Louis writes: > > > file-already-exists: File already exists: /home/data1/protected/tmp/Trash/lock > > Thanks. This looks like #47135 from you: > > https://lists.nongnu.org/archive/html/bug-gnu-emacs/2021-03/msg01305.html > > Looks identical, but Lars said he had fixed that. Are you maybe able to > find out why his fix doesn't work for you in your case? I cannoft (easily) find out why that does not work, and how it was fixed and where. In the bug description I have tried to describe the conditions for those who know how to debug it, to help them. -- Jean Take action in Free Software Foundation campaigns: https://www.fsf.org/campaigns In support of Richard M. Stallman https://stallmansupport.org/ From debbugs-submit-bounces@debbugs.gnu.org Tue Dec 13 07:42:42 2022 Received: (at 59986) by debbugs.gnu.org; 13 Dec 2022 12:42:42 +0000 Received: from localhost ([127.0.0.1]:60108 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p54cL-0006t9-RV for submit@debbugs.gnu.org; Tue, 13 Dec 2022 07:42:42 -0500 Received: from eggs.gnu.org ([209.51.188.92]:33918) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p54cJ-0006t3-A9 for 59986@debbugs.gnu.org; Tue, 13 Dec 2022 07:42:39 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p54c2-0007UD-Ow; Tue, 13 Dec 2022 07:42:34 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=qj5RhaHuW6QVFKGP2nkdYhTvN6RxQHVuhUXIvS+vFSM=; b=RuUWA+WgBg6f BxTX/h7QOYmWeQy3Fwf5hN4ccAMM8OLZmZjaj8UnIpNji8UKtkzs/0oF5jjEMQlfHyySaJN2obD3e FjQyKSfmvt7280hs0oh0/Kog1/QFltje+PrEkmujD0MxD186K91mgZLr7lRCCrjcE7KhjEb7ElaLq CVvv8pVRnXOJhdpmJvfNIsA6Z2VMUqgSzsWqfpb288Oedr/POzQOylU5I0G/BDlXLlgYq3j6G1G+F 5fB2whkRWRiAx9mE66nmHUIGwKlIIYZ/FYvIPOqOk4MO2YUlJf0dCbKFPbflF8PjMny8K6w/osaho WwbouI8YQ6pbT+La0BjzUA==; Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p54c2-0007N1-5V; Tue, 13 Dec 2022 07:42:22 -0500 Date: Tue, 13 Dec 2022 14:42:27 +0200 Message-Id: <83lenbpj9o.fsf@gnu.org> From: Eli Zaretskii To: Jean Louis In-Reply-To: (message from Jean Louis on Tue, 13 Dec 2022 11:00:11 +0300) Subject: Re: bug#59986: 30.0.50; Can't trash file with broken symbolic link References: <86cz8p15dj.fsf@protected.rcdrun.com> <871qp42c77.fsf@web.de> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 59986 Cc: michael_heerdegen@web.de, 59986@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Cc: 59986@debbugs.gnu.org > Date: Tue, 13 Dec 2022 11:00:11 +0300 > From: Jean Louis > > * Michael Heerdegen [2022-12-13 06:52]: > > Jean Louis writes: > > > > > file-already-exists: File already exists: /home/data1/protected/tmp/Trash/lock > > > > Thanks. This looks like #47135 from you: > > > > https://lists.nongnu.org/archive/html/bug-gnu-emacs/2021-03/msg01305.html > > > > Looks identical, but Lars said he had fixed that. Are you maybe able to > > find out why his fix doesn't work for you in your case? > > I cannoft (easily) find out why that does not work, and how it was > fixed and where. In the bug description I have tried to describe the > conditions for those who know how to debug it, to help them. Is the recipe of bug#47135 working for you now? Or does it still fail? From debbugs-submit-bounces@debbugs.gnu.org Tue Dec 13 08:51:34 2022 Received: (at 59986) by debbugs.gnu.org; 13 Dec 2022 13:51:34 +0000 Received: from localhost ([127.0.0.1]:60574 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p55h0-00045W-Ch for submit@debbugs.gnu.org; Tue, 13 Dec 2022 08:51:34 -0500 Received: from stw1.rcdrun.com ([217.170.207.13]:59211) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p55gy-00045O-I4 for 59986@debbugs.gnu.org; Tue, 13 Dec 2022 08:51:33 -0500 Received: from localhost ([::ffff:197.239.7.93]) (AUTH: PLAIN admin, TLS: TLS1.3,256bits,ECDHE_RSA_AES_256_GCM_SHA384) by stw1.rcdrun.com with ESMTPSA id 0000000000055D58.0000000063988363.00001507; Tue, 13 Dec 2022 06:51:31 -0700 Date: Tue, 13 Dec 2022 16:49:55 +0300 From: Jean Louis To: Eli Zaretskii Subject: Re: bug#59986: 30.0.50; Can't trash file with broken symbolic link Message-ID: References: <86cz8p15dj.fsf@protected.rcdrun.com> <871qp42c77.fsf@web.de> <83lenbpj9o.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline In-Reply-To: <83lenbpj9o.fsf@gnu.org> User-Agent: Mutt/2.2.9+54 (af2080d) (2022-11-21) X-Spam-Score: 2.6 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: * Eli Zaretskii [2022-12-13 15:43]: > > Cc: 59986@debbugs.gnu.org > > Date: Tue, 13 Dec 2022 11:00:11 +0300 > > From: Jean Louis > > > > * Michael Heerdegen List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.6 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: * Eli Zaretskii [2022-12-13 15:43]: > > Cc: 59986@debbugs.gnu.org > > Date: Tue, 13 Dec 2022 11:00:11 +0300 > > From: Jean Louis > > > > * Michael Heerdegen [2022-12-13 15:43]: > > Cc: 59986@debbugs.gnu.org > > Date: Tue, 13 Dec 2022 11:00:11 +0300 > > From: Jean Louis > > > > * Michael Heerdegen [2022-12-13 06:52]: > > > Jean Louis writes: > > > > > > > file-already-exists: File already exists: /home/data1/protected/tmp/Trash/lock > > > > > > Thanks. This looks like #47135 from you: > > > > > > https://lists.nongnu.org/archive/html/bug-gnu-emacs/2021-03/msg01305.html > > > > > > Looks identical, but Lars said he had fixed that. Are you maybe able to > > > find out why his fix doesn't work for you in your case? > > > > I cannoft (easily) find out why that does not work, and how it was > > fixed and where. In the bug description I have tried to describe the > > conditions for those who know how to debug it, to help them. > > Is the recipe of bug#47135 working for you now? Or does it still > fail? https://debbugs.gnu.org/cgi/bugreport.cgi?bug=47135 I can't locate on that page what you mean with recipe? Which one? Jean Take action in Free Software Foundation campaigns: https://www.fsf.org/campaigns In support of Richard M. Stallman https://stallmansupport.org/ From debbugs-submit-bounces@debbugs.gnu.org Tue Dec 13 09:44:41 2022 Received: (at 59986) by debbugs.gnu.org; 13 Dec 2022 14:44:42 +0000 Received: from localhost ([127.0.0.1]:60855 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p56WP-0004fv-IU for submit@debbugs.gnu.org; Tue, 13 Dec 2022 09:44:41 -0500 Received: from eggs.gnu.org ([209.51.188.92]:48770) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p56WN-0004fp-Iu for 59986@debbugs.gnu.org; Tue, 13 Dec 2022 09:44:40 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p56WI-0001Da-7W; Tue, 13 Dec 2022 09:44:34 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=YUtOVHvw1diH1jxASn07x5tMaSu8xDPfOfIf3zw1sdw=; b=LzwdUN5IId3h GoWvx9nMMfkofxbieB5UazizJjm5jntw7QMmGHexgqKyua+RHmwfO0cad7L41X/wmsSAG4aUVpxNE I+FIVRDX3z/sdCEJKVshKaVuwkNHpu1XeZjy393ap4hMlepNzNxyf3bVKmKPEgo+8PnemJZ7jV9bV 6I1JIBZ9Px4DV8rhW0ncikmXl9cDRdG6Fh772zUxjjQt7y+dH+RWea/gVwWiFm8fqIZcn5U7Sovv6 4YYcjodCA4fa5BsWiIS5Obo3CQJSQ+RxXNwSZgGtAns8dwtWD6RDg5axvUbTFmrT3i/cIKRi2Rc2p p1IPLPW8POByU//taPKnrg==; Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p56WH-00082L-M6; Tue, 13 Dec 2022 09:44:33 -0500 Date: Tue, 13 Dec 2022 16:44:38 +0200 Message-Id: <83359jpdm1.fsf@gnu.org> From: Eli Zaretskii To: Jean Louis In-Reply-To: (message from Jean Louis on Tue, 13 Dec 2022 16:49:55 +0300) Subject: Re: bug#59986: 30.0.50; Can't trash file with broken symbolic link References: <86cz8p15dj.fsf@protected.rcdrun.com> <871qp42c77.fsf@web.de> <83lenbpj9o.fsf@gnu.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 59986 Cc: michael_heerdegen@web.de, 59986@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Date: Tue, 13 Dec 2022 16:49:55 +0300 > From: Jean Louis > Cc: michael_heerdegen@web.de, 59986@debbugs.gnu.org > > * Eli Zaretskii [2022-12-13 15:43]: > > > Cc: 59986@debbugs.gnu.org > > > Date: Tue, 13 Dec 2022 11:00:11 +0300 > > > From: Jean Louis > > > > > > * Michael Heerdegen [2022-12-13 06:52]: > > > > Jean Louis writes: > > > > > > > > > file-already-exists: File already exists: /home/data1/protected/tmp/Trash/lock > > > > > > > > Thanks. This looks like #47135 from you: > > > > > > > > https://lists.nongnu.org/archive/html/bug-gnu-emacs/2021-03/msg01305.html > > > > > > > > Looks identical, but Lars said he had fixed that. Are you maybe able to > > > > find out why his fix doesn't work for you in your case? > > > > > > I cannoft (easily) find out why that does not work, and how it was > > > fixed and where. In the bug description I have tried to describe the > > > conditions for those who know how to debug it, to help them. > > > > Is the recipe of bug#47135 working for you now? Or does it still > > fail? > > https://debbugs.gnu.org/cgi/bugreport.cgi?bug=47135 > > I can't locate on that page what you mean with recipe? Which one? I mean your original description that opened the bug. From debbugs-submit-bounces@debbugs.gnu.org Wed Dec 14 02:45:35 2022 Received: (at 59986) by debbugs.gnu.org; 14 Dec 2022 07:45:35 +0000 Received: from localhost ([127.0.0.1]:37401 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p5MSM-0003nt-UX for submit@debbugs.gnu.org; Wed, 14 Dec 2022 02:45:35 -0500 Received: from stw1.rcdrun.com ([217.170.207.13]:42833) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p5MSK-0003nl-Se for 59986@debbugs.gnu.org; Wed, 14 Dec 2022 02:45:33 -0500 Received: from localhost ([::ffff:197.239.12.90]) (AUTH: PLAIN admin, TLS: TLS1.3,256bits,ECDHE_RSA_AES_256_GCM_SHA384) by stw1.rcdrun.com with ESMTPSA id 0000000000055D7C.0000000063997F1C.000079A6; Wed, 14 Dec 2022 00:45:31 -0700 Date: Tue, 13 Dec 2022 22:24:52 +0300 From: Jean Louis To: Eli Zaretskii Subject: Re: bug#59986: 30.0.50; Can't trash file with broken symbolic link Message-ID: References: <86cz8p15dj.fsf@protected.rcdrun.com> <871qp42c77.fsf@web.de> <83lenbpj9o.fsf@gnu.org> <83359jpdm1.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline In-Reply-To: <83359jpdm1.fsf@gnu.org> User-Agent: Mutt/2.2.9+54 (af2080d) (2022-11-21) X-Spam-Score: 0.8 (/) X-Debbugs-Envelope-To: 59986 Cc: michael_heerdegen@web.de, 59986@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.2 (/) * Eli Zaretskii [2022-12-13 17:45]: > > https://debbugs.gnu.org/cgi/bugreport.cgi?bug=47135 > > > > I can't locate on that page what you mean with recipe? Which one? > > I mean your original description that opened the bug. For original one, I cannot know. Now I see that if symbolic link exists in Trash, such as: 1661195272884.jpg -> hyperscope/7/3/9/8/7/2022/11/2022-11-27/1661195272884.jpg then the same symbolic link from ~/ cannot be deleted by moving to Trash because it will say that file already exists. Jean Take action in Free Software Foundation campaigns: https://www.fsf.org/campaigns In support of Richard M. Stallman https://stallmansupport.org/ From debbugs-submit-bounces@debbugs.gnu.org Wed Dec 14 07:29:19 2022 Received: (at 59986) by debbugs.gnu.org; 14 Dec 2022 12:29:19 +0000 Received: from localhost ([127.0.0.1]:38867 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p5Qsw-0005sO-Vy for submit@debbugs.gnu.org; Wed, 14 Dec 2022 07:29:19 -0500 Received: from eggs.gnu.org ([209.51.188.92]:40014) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p5Qsu-0005sG-I6 for 59986@debbugs.gnu.org; Wed, 14 Dec 2022 07:29:17 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p5Qsl-0000c9-BU; Wed, 14 Dec 2022 07:29:11 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=6sawtWSzuuzxQWyfeY1a74NOWAVD/Jmu8ho3TRYyPz0=; b=RBy+askrfhJS fP1fNRUUV2rotn9KrV9f/CLKw6+RuGn8G2bOi6PIg8/eRLuwbn5MHu5p5bmmJsCh1HpAkRt9jAmA0 JcMhDzwpBXd7QIsJ83LhsdCfekP1mWyXSYcGvNMUYeYGXRvm6peV7/K1dik+CuRR3GoKGCPEmdRbT E3/M6EhZTW6OWMO4Ag2WQYKSK6Qniodx79ayYaLUYVlB/dG/MnKjJjLZodEB9diT5h83f2sv+OIVh RyEB6i5KFxhkgqvffK9KCWO6egxH/rTQjE5dwfJPziv9/bYHBt2mYr9kLXITotj+tWzByw5p11MXi QTEgMkWtdN/jBnD5EZgAtA==; Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p5Qsj-0001zF-25; Wed, 14 Dec 2022 07:29:06 -0500 Date: Wed, 14 Dec 2022 14:29:02 +0200 Message-Id: <837cyunp81.fsf@gnu.org> From: Eli Zaretskii To: Jean Louis In-Reply-To: (message from Jean Louis on Tue, 13 Dec 2022 22:24:52 +0300) Subject: Re: bug#59986: 30.0.50; Can't trash file with broken symbolic link References: <86cz8p15dj.fsf@protected.rcdrun.com> <871qp42c77.fsf@web.de> <83lenbpj9o.fsf@gnu.org> <83359jpdm1.fsf@gnu.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 59986 Cc: michael_heerdegen@web.de, 59986@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Date: Tue, 13 Dec 2022 22:24:52 +0300 > From: Jean Louis > Cc: michael_heerdegen@web.de, 59986@debbugs.gnu.org > > * Eli Zaretskii [2022-12-13 17:45]: > > > https://debbugs.gnu.org/cgi/bugreport.cgi?bug=47135 > > > > > > I can't locate on that page what you mean with recipe? Which one? > > > > I mean your original description that opened the bug. > > For original one, I cannot know. Meaning that you don't remember whether the file which was already in Trash in bug#47135 was or wasn't a symlink? From debbugs-submit-bounces@debbugs.gnu.org Wed Dec 14 19:13:46 2022 Received: (at 59986) by debbugs.gnu.org; 15 Dec 2022 00:13:46 +0000 Received: from localhost ([127.0.0.1]:42176 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p5bsg-0002iH-Hz for submit@debbugs.gnu.org; Wed, 14 Dec 2022 19:13:46 -0500 Received: from mout.web.de ([212.227.15.14]:47479) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p5bsd-0002i9-8R for 59986@debbugs.gnu.org; Wed, 14 Dec 2022 19:13:44 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=s29768273; t=1671063185; bh=UfLq5yooPYNA/rQMfJmcnSh6G9HHHe/zXs50XZj0Rlk=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date; b=PQxZPfy8y2G95hozuzd4dDf6+haBWbFzbyFk0aBN3p+Sc6YylJSZtm3PgJK5rGhup ZPTCzWjpyJItMlriA1M78mhyTG0iz+jCxPPHL2wtsVLuldq0GzXCDPogwvwmMesV6s w+qs2tu26IqeTc9t1FEtOqx9WtF4ZCAoq5PrIgV6Oe6UWOVOjp0UOVBzKymlBsCAS7 73GWL/A3makKFgPhw+pckIoKkNSuxLOXrlT6Lifse3bG0orW+0O4wDDCEEwcpPFBKd UDJGuejTioB7Pr6e5qc0ibrUeXKKb2DmgGFMYkFPK0dMOQrcNYc4mMk3DBS2Fqgw4w z7YhT0/mgmVkg== X-UI-Sender-Class: 814a7b36-bfc1-4dae-8640-3722d8ec6cd6 Received: from drachen.dragon ([92.76.229.140]) by smtp.web.de (mrweb005 [213.165.67.108]) with ESMTPSA (Nemesis) id 1MIc7N-1pBMdY268z-00EbWG; Thu, 15 Dec 2022 01:13:05 +0100 From: Michael Heerdegen To: Eli Zaretskii Subject: Re: bug#59986: 30.0.50; Can't trash file with broken symbolic link In-Reply-To: <837cyunp81.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 14 Dec 2022 14:29:02 +0200") References: <86cz8p15dj.fsf@protected.rcdrun.com> <871qp42c77.fsf@web.de> <83lenbpj9o.fsf@gnu.org> <83359jpdm1.fsf@gnu.org> <837cyunp81.fsf@gnu.org> Date: Thu, 15 Dec 2022 01:13:04 +0100 Message-ID: <87tu1xttgv.fsf@web.de> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:mTM1V7kaTbvBB1tSsHEjX++SBuMVvCk5Q9LzEuE035VRtyyWZc9 erVenK/YxJLykSpMZWz5hisn6zXlm4K7SgMuDsKJ6DHqOycyYscI1oWRwttitCKYzDx20lO doyWsjzK9i0Sdqth4x4d7gxg95VyZhNVfyhTyhRP8v6H2+IPGieX8WKWeFchi2ZnXVZOag1 0a8vLmHxS6SleUbUJ60Rw== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:G81ZQA4juD0=;HLBUKoEy7ITdbb7lVXHXDMnEmgU HlGuFsUkHrFLCy6IuWFRFMW8A4heounq5e3g2fOCZQ8Zcc6QRdvsCKDPev9P499qeZIIb7hVD zyNH4nq3p5vMt8W+ZWnSXZ+OH7ZdSJs9El1JeJR7DHOmcTXclTWGuOU0rMtt0f6HZHQSy796F EyHsvJRIT/DII+l3MK2G2P8DI4Css2K80ROx1gqj+KevjaRR56nXc1RpOrYsZSfHZ1NOvnnbA +f1GvO4VZTpq3auQwQ18GB9pED6SOCT0+JoC8vtpzwEkZ79x2xwx0GryJYiROivcCsrJAHRyK Mdlld9+9P73qwj6MetUF0btVx1uz+pfaxNMg2ZbzDHtqHCcJN00GlD6PavtrdIX3BeO/Rhkg4 KjFuZZC9oarvgudR+ALggC7DpHraFNOGHfhOIDrQAfNR9Tsqhm7Hscq9CdQs37Xz8hY5Y61go vCU3eiK851Ss//YcT2JiyKYQZ6rloZS76rfGS6hmOwOOcmpAhHOTuPs+NoOIX2ybq7kk7w1xa Nc2HtGhjGpD4UbUt572O2AXxHOjXZe16XLF2xxyzq73CwTxi+CNHgbRIL1FnIpYP84/S0jp3o 03wucvmRxMnnFvPT4daCADRbV1K6MucNvj625C8/hiUHqReSqAwqWfhQWxPQQntzcrPVq27FO eW4aeZUHz/vz90MnCIFRQtJqYh0KWpTEKM9YUB7E/Sn3Mr6D12LvJNVNEo8RJB0bbqU7PO0o4 DYNMM4JdUEhRwdsWNyCtv60iKelEdM9BBQ+aJDuXZZeIBl+y61DWjvu99tNhgpJznfHI8Ak6l dJfqWRQWNKpxDlfjzAkvBweX+uDkjNy65FrOoIY+ihkh8ejtoOMqRVpN5UTQdNgdmTfK0Ycf+ UWeykYzeVRNkrmF40m/SNO6lTj+be27FT6QzNG1StT/PqKbnvGwvn1RHMqCZXiyS7hHdJEmuk Bnei4Q== Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 59986 Cc: 59986@debbugs.gnu.org, Jean Louis X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Eli Zaretskii writes: > Meaning that you don't remember whether the file which was already in > Trash in bug#47135 was or wasn't a symlink? AFAIU it had been - the original report says: | In my trash there is this file: | | lrwxrwxrwx 1 175 Jun 18 2019 Rock-and-Mineral-Identification.pdf -> = /home/... I think there is indeed a problem with those `file-exists-p' tests in `move-file-to-trash' that check whether the file name to add (in the trash) already exists: when that name is the existing name of a broken symlink the result is `nil'. Those tests probably need to handle symlinks specially (using file-symlink-p I guess). Michael. From debbugs-submit-bounces@debbugs.gnu.org Thu Dec 15 02:12:32 2022 Received: (at 59986) by debbugs.gnu.org; 15 Dec 2022 07:12:32 +0000 Received: from localhost ([127.0.0.1]:42423 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p5iPw-0007TI-ER for submit@debbugs.gnu.org; Thu, 15 Dec 2022 02:12:32 -0500 Received: from eggs.gnu.org ([209.51.188.92]:59728) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p5iPr-0007TB-Sk for 59986@debbugs.gnu.org; Thu, 15 Dec 2022 02:12:31 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p5iPk-0000HN-EU; Thu, 15 Dec 2022 02:12:21 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=w6aM3OjpWwiFVfo0OhRcKYymyi9nhgd8mn+AaZBXz7s=; b=byyTuY0b+6ld WDtnveNPA7KWsTW55AB1WgaJzHZ4CwBUhlQy7zFRYyHVGcPQHI2Z5QHc0DrFeKE/vGouU97yQZHp6 420cnljrEEvVBKGz0hjnX3UpvXbAKCOVUUC2RPPiemb0/SKJtoLxsyLSPiE4FW4aLt3VzA4OSb49I 6c4kAY8/xeaC7IVYBKZuy3iWoFWS82o8aimoMMhORCp2Njkpi1Ff2jGQk3e7wZcYc1Q8QTKu86grA Sh52cSko40k6j+2wis+HbIsyHHa2bxzhevpO521OLqEv8Up6ZMWSgyRHGq304MC1YJJzfMRt78FkC GcmlNCtFQlE6XkmuYO2Gww==; Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p5iPh-0003W5-Fs; Thu, 15 Dec 2022 02:12:19 -0500 Date: Thu, 15 Dec 2022 09:12:16 +0200 Message-Id: <83v8mdkunj.fsf@gnu.org> From: Eli Zaretskii To: Michael Heerdegen In-Reply-To: <87tu1xttgv.fsf@web.de> (message from Michael Heerdegen on Thu, 15 Dec 2022 01:13:04 +0100) Subject: Re: bug#59986: 30.0.50; Can't trash file with broken symbolic link References: <86cz8p15dj.fsf@protected.rcdrun.com> <871qp42c77.fsf@web.de> <83lenbpj9o.fsf@gnu.org> <83359jpdm1.fsf@gnu.org> <837cyunp81.fsf@gnu.org> <87tu1xttgv.fsf@web.de> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 59986 Cc: 59986@debbugs.gnu.org, bugs@gnu.support X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Michael Heerdegen > Cc: Jean Louis , 59986@debbugs.gnu.org > Date: Thu, 15 Dec 2022 01:13:04 +0100 > > Eli Zaretskii writes: > > > Meaning that you don't remember whether the file which was already in > > Trash in bug#47135 was or wasn't a symlink? > > AFAIU it had been - the original report says: > > | In my trash there is this file: > | > | lrwxrwxrwx 1 175 Jun 18 2019 Rock-and-Mineral-Identification.pdf -> /home/... Sorry, I was confused when I wrote the question: I was actually interested in the file being moved to trash, not the file already in the trash. From debbugs-submit-bounces@debbugs.gnu.org Thu Dec 15 09:55:09 2022 Received: (at 59986) by debbugs.gnu.org; 15 Dec 2022 14:55:09 +0000 Received: from localhost ([127.0.0.1]:43128 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p5pdd-00077Y-8V for submit@debbugs.gnu.org; Thu, 15 Dec 2022 09:55:09 -0500 Received: from stw1.rcdrun.com ([217.170.207.13]:36367) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p5pdb-00077S-J3 for 59986@debbugs.gnu.org; Thu, 15 Dec 2022 09:55:08 -0500 Received: from localhost ([::ffff:102.85.142.63]) (AUTH: PLAIN admin, TLS: TLS1.3,256bits,ECDHE_RSA_AES_256_GCM_SHA384) by stw1.rcdrun.com with ESMTPSA id 000000000005611E.00000000639B354C.00004D13; Thu, 15 Dec 2022 07:55:07 -0700 Date: Thu, 15 Dec 2022 17:54:32 +0300 From: Jean Louis To: Eli Zaretskii Subject: Re: bug#59986: 30.0.50; Can't trash file with broken symbolic link Message-ID: References: <86cz8p15dj.fsf@protected.rcdrun.com> <871qp42c77.fsf@web.de> <83lenbpj9o.fsf@gnu.org> <83359jpdm1.fsf@gnu.org> <837cyunp81.fsf@gnu.org> <87tu1xttgv.fsf@web.de> <83v8mdkunj.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline In-Reply-To: <83v8mdkunj.fsf@gnu.org> User-Agent: Mutt/2.2.9+54 (af2080d) (2022-11-21) X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 59986 Cc: Michael Heerdegen , 59986@debbugs.gnu.org, bugs@gnu.support X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) * Eli Zaretskii [2022-12-15 10:12]: > Sorry, I was confused when I wrote the question: I was actually > interested in the file being moved to trash, not the file already in > the trash. If there is dangling symlink in Trash then even if the file to be deleted to Trash exists and is not symlink, I get the same error message: To reproduce: 1. Create dangling symlink: $ ln -s something more 2. Delete the file `more' to Trash by using Emacs 3. Create new file $ touch more 4. Try deleting file `more' by moving to Trash, there is error: file-already-exists: File already exists: /home/data1/protected/tmp/Trash/more -- Jean Take action in Free Software Foundation campaigns: https://www.fsf.org/campaigns In support of Richard M. Stallman https://stallmansupport.org/ From debbugs-submit-bounces@debbugs.gnu.org Thu Dec 15 11:07:56 2022 Received: (at 59986) by debbugs.gnu.org; 15 Dec 2022 16:07:56 +0000 Received: from localhost ([127.0.0.1]:43508 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p5qm4-00085w-5u for submit@debbugs.gnu.org; Thu, 15 Dec 2022 11:07:56 -0500 Received: from eggs.gnu.org ([209.51.188.92]:46188) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p5qlz-00085g-RD for 59986@debbugs.gnu.org; Thu, 15 Dec 2022 11:07:54 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p5qlu-0000HX-3a; Thu, 15 Dec 2022 11:07:46 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=TH6iL7NXYsA2k7M+CvlHUhNlMV4rpf5caJLzr8CF1Dk=; b=eE9gDEEZ41Oj GNcCwWhZWnigLKKZe+tZZSLkWvHnGu/Ef9jNt1uTa3iEPpyMZ2mXmWAySrYzAVK3Rjm4DMz9Eo+rO TQ/i+q204Y0U5Z+ISPMFuX/tZTrhGQ5ax2TjxtxL5IjoB0cAqRQH92X48JtU/zeajudfxXsqLFuoq asMGgLX+T9tnnExys4QJhERGnJut4W3OMOUqUo5fykZRQGXT76Pa/v3RnDoL+0TDG0BZlEfT9SBqW S+8Ryt7mPz9IeclzwAbsPHBYkufjGI/5GUaKWSHFZjVu90tXOqd0xSoVdvvpQYC39gKYzGYVRt1Do AsB5vv/7y4b7bNeBVnVTNQ==; Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p5qlt-0000Be-E6; Thu, 15 Dec 2022 11:07:45 -0500 Date: Thu, 15 Dec 2022 18:07:45 +0200 Message-Id: <83y1r8k5v2.fsf@gnu.org> From: Eli Zaretskii To: Jean Louis In-Reply-To: (message from Jean Louis on Thu, 15 Dec 2022 17:54:32 +0300) Subject: Re: bug#59986: 30.0.50; Can't trash file with broken symbolic link References: <86cz8p15dj.fsf@protected.rcdrun.com> <871qp42c77.fsf@web.de> <83lenbpj9o.fsf@gnu.org> <83359jpdm1.fsf@gnu.org> <837cyunp81.fsf@gnu.org> <87tu1xttgv.fsf@web.de> <83v8mdkunj.fsf@gnu.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 59986 Cc: michael_heerdegen@web.de, 59986@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Date: Thu, 15 Dec 2022 17:54:32 +0300 > From: Jean Louis > Cc: Michael Heerdegen , bugs@gnu.support, > 59986@debbugs.gnu.org > > If there is dangling symlink in Trash then even if the file to be > deleted to Trash exists and is not symlink, I get the same error > message: Can you try the patch below and see if it solves the problem? diff --git a/lisp/files.el b/lisp/files.el index d785d4f..c74e7e8 100644 --- a/lisp/files.el +++ b/lisp/files.el @@ -8467,6 +8467,14 @@ trash--hexify-table (declare-function system-move-file-to-trash "w32fns.c" (filename)) +(defun file-exists-in-trash-p (filename) + "Return non-nil if FILENAME exists in the trash. + +This is like `file-exists-p', but it also returns non-nil +if FILENAME is a dangling symlink, to allow trashing such files." + (or (file-exists-p filename) + (file-symlink-p filename))) + (defun move-file-to-trash (filename) "Move the file (or directory) named FILENAME to the trash. When `delete-by-moving-to-trash' is non-nil, this function is @@ -8497,7 +8505,7 @@ move-file-to-trash (unless (file-directory-p trash-dir) (make-directory trash-dir t)) ;; Ensure that the trashed file-name is unique. - (if (file-exists-p new-fn) + (if (file-exists-in-trash-p new-fn) (let ((version-control t) (backup-directory-alist nil)) (setq new-fn (car (find-backup-file-name new-fn))))) @@ -8574,7 +8582,7 @@ move-file-to-trash ;; We're checking further down whether the info file ;; exists, but the file name may exist in the trash ;; directory even if there is no info file for it. - (when (file-exists-p + (when (file-exists-in-trash-p (file-name-concat trash-files-dir files-base)) (setq overwrite t files-base (file-name-nondirectory @@ -8612,7 +8620,7 @@ move-file-to-trash (let ((delete-by-moving-to-trash nil) (new-fn (file-name-concat trash-files-dir files-base))) (if (or (not is-directory) - (not (file-exists-p new-fn))) + (not (file-exists-in-trash-p new-fn))) (rename-file fn new-fn overwrite) (copy-directory fn (file-name-as-directory new-fn) From debbugs-submit-bounces@debbugs.gnu.org Fri Dec 16 01:41:04 2022 Received: (at 59986) by debbugs.gnu.org; 16 Dec 2022 06:41:04 +0000 Received: from localhost ([127.0.0.1]:47458 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p64P1-0004gE-Ud for submit@debbugs.gnu.org; Fri, 16 Dec 2022 01:41:04 -0500 Received: from stw1.rcdrun.com ([217.170.207.13]:33633) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p64Oz-0004fi-PA for 59986@debbugs.gnu.org; Fri, 16 Dec 2022 01:41:02 -0500 Received: from localhost ([::ffff:197.239.4.25]) (AUTH: PLAIN admin, TLS: TLS1.3,256bits,ECDHE_RSA_AES_256_GCM_SHA384) by stw1.rcdrun.com with ESMTPSA id 0000000000103837.00000000639C12FD.000077C8; Thu, 15 Dec 2022 23:41:00 -0700 Date: Fri, 16 Dec 2022 09:39:31 +0300 From: Jean Louis To: Eli Zaretskii Subject: Re: bug#59986: 30.0.50; Can't trash file with broken symbolic link Message-ID: References: <83lenbpj9o.fsf@gnu.org> <83359jpdm1.fsf@gnu.org> <837cyunp81.fsf@gnu.org> <87tu1xttgv.fsf@web.de> <83v8mdkunj.fsf@gnu.org> <83y1r8k5v2.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline In-Reply-To: <83y1r8k5v2.fsf@gnu.org> User-Agent: Mutt/2.2.9+54 (af2080d) (2022-11-21) X-Spam-Score: 2.6 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: I have manually applied that patch as I do not know how to apply it directly. Am I supposed to use `patch' command? I have tested your patch and it can delete dangling symlinks and moves them to Trash. And I could observe it adds ~N~ to file names, so it works well. Content analysis details: (2.6 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 2.6 RCVD_IN_SBL RBL: Received via a relay in Spamhaus SBL [197.239.4.25 listed in zen.spamhaus.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record X-Debbugs-Envelope-To: 59986 Cc: michael_heerdegen@web.de, 59986@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.6 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: I have manually applied that patch as I do not know how to apply it directly. Am I supposed to use `patch' command? I have tested your patch and it can delete dangling symlinks and moves them to Trash. And I could observe it adds ~N~ to file names, so it works well. Content analysis details: (1.6 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 2.6 RCVD_IN_SBL RBL: Received via a relay in Spamhaus SBL [197.239.4.25 listed in zen.spamhaus.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager I have manually applied that patch as I do not know how to apply it directly. Am I supposed to use `patch' command? I have tested your patch and it can delete dangling symlinks and moves them to Trash. And I could observe it adds ~N~ to file names, so it works well. lrwxrwxrwx 1 9 Dec 15 17:51 more -> something lrwxrwxrwx 1 9 Dec 16 09:37 more.~1~ -> something lrwxrwxrwx 1 9 Dec 16 09:37 more.~2~ -> something -rwxr-xr-x 1 1.5K Sep 15 2018 Thanks much. Jean Take action in Free Software Foundation campaigns: https://www.fsf.org/campaigns In support of Richard M. Stallman https://stallmansupport.org/ From debbugs-submit-bounces@debbugs.gnu.org Fri Dec 16 10:56:31 2022 Received: (at 59986-done) by debbugs.gnu.org; 16 Dec 2022 15:56:31 +0000 Received: from localhost ([127.0.0.1]:50132 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p6D4Z-00019v-JW for submit@debbugs.gnu.org; Fri, 16 Dec 2022 10:56:31 -0500 Received: from eggs.gnu.org ([209.51.188.92]:52352) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p6D4X-00019n-Nc for 59986-done@debbugs.gnu.org; Fri, 16 Dec 2022 10:56:30 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p6D4S-0000je-7d; Fri, 16 Dec 2022 10:56:24 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=2sDWXQjfVOdpV17AnKAJfnArk2j16Eo/RvM6YR+JCyI=; b=WB/WJZZYSAyZ 0TwOtlq8ZPV5FGsuBsJA0ctjCE4tH4NEjDnGtZmb3JNACcbifzeTxfhIlNXbNSyxcFqoXkZClox+y ok0P7zaLBW9Xa9ASDCWL1+29dKKCtV2qq5gfSGduIhwRsK3E1P1cWQ0KmEYVMTcCRRZLL3LMmivA1 s396cDKyuEEIvHapiJe7aJsNBfpuTTz+JJaaCi398t67qnUb6/i1sbW1WN19VrGVw4VxywCRDPDFN drDLxBYeMJOB6SCB1Meb8W3tdOtiahktgdBBMYbyjvmhU4Qi9KKiVheu83Npj6RyJ+Hvyfe1fwFsd K3bmgSKN4XRBWu0OfnY8rA==; Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p6D4R-0000qj-Iq; Fri, 16 Dec 2022 10:56:23 -0500 Date: Fri, 16 Dec 2022 17:56:25 +0200 Message-Id: <837cyrjqae.fsf@gnu.org> From: Eli Zaretskii To: Jean Louis In-Reply-To: (message from Jean Louis on Fri, 16 Dec 2022 09:39:31 +0300) Subject: Re: bug#59986: 30.0.50; Can't trash file with broken symbolic link References: <83lenbpj9o.fsf@gnu.org> <83359jpdm1.fsf@gnu.org> <837cyunp81.fsf@gnu.org> <87tu1xttgv.fsf@web.de> <83v8mdkunj.fsf@gnu.org> <83y1r8k5v2.fsf@gnu.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 59986-done Cc: michael_heerdegen@web.de, 59986-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Date: Fri, 16 Dec 2022 09:39:31 +0300 > From: Jean Louis > Cc: michael_heerdegen@web.de, 59986@debbugs.gnu.org > > I have manually applied that patch as I do not know how to > apply it directly. Am I supposed to use `patch' command? > > I have tested your patch and it can delete dangling symlinks > and moves them to Trash. And I could observe it adds ~N~ to > file names, so it works well. > > lrwxrwxrwx 1 9 Dec 15 17:51 more -> something > lrwxrwxrwx 1 9 Dec 16 09:37 more.~1~ -> something > lrwxrwxrwx 1 9 Dec 16 09:37 more.~2~ -> something > -rwxr-xr-x 1 1.5K Sep 15 2018 > > Thanks much. Thanks for testing. I've now installed the fix on the emacs-29 branch, and I'm therefore closing this bug. From unknown Mon Aug 18 04:36:20 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 14 Jan 2023 12:24:11 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator