From unknown Sun Jun 22 07:49:47 2025 X-Loop: help-debbugs@gnu.org Subject: bug#58132: 29.0.50; Tramp: not preserving remote chmod attributes when copy Resent-From: Jean Louis Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 28 Sep 2022 03:50:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 58132 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 58132@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.166433695111860 (code B ref -1); Wed, 28 Sep 2022 03:50:01 +0000 Received: (at submit) by debbugs.gnu.org; 28 Sep 2022 03:49:11 +0000 Received: from localhost ([127.0.0.1]:57961 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1odO4M-00035D-Si for submit@debbugs.gnu.org; Tue, 27 Sep 2022 23:49:11 -0400 Received: from lists.gnu.org ([209.51.188.17]:60174) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1odO4K-000355-Vi for submit@debbugs.gnu.org; Tue, 27 Sep 2022 23:49:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56098) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1odO4K-00061K-Qq for bug-gnu-emacs@gnu.org; Tue, 27 Sep 2022 23:49:08 -0400 Received: from stw1.rcdrun.com ([217.170.207.13]:55939) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1odO4I-0002Lq-Sn for bug-gnu-emacs@gnu.org; Tue, 27 Sep 2022 23:49:08 -0400 Received: from localhost ([::ffff:102.83.37.37]) (AUTH: PLAIN admin, TLS: TLS1.3,256bits,ECDHE_RSA_AES_256_GCM_SHA384) by stw1.rcdrun.com with ESMTPSA id 00000000000BA409.000000006333C42C.00007DD4; Tue, 27 Sep 2022 20:49:00 -0700 From: Jean Louis Date: Wed, 28 Sep 2022 06:25:43 +0300 Message-ID: <86sfkcxjrc.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.4 (+) 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: Normal behavior with local `copy' command is to preserve attributes of the destination file, if such file exists. Normal behavior of ssh/scp is to preserve file attributes of destination file if such file exists: Content analysis details: (1.4 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at https://www.dnswl.org/, medium trust [209.51.188.17 listed in list.dnswl.org] 0.2 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 0.9 SPF_FAIL SPF: sender does not match SPF record (fail) [SPF failed: Please see http://www.openspf.org/Why?s=mfrom; id=admin%40protected.rcdrun.com; ip=209.51.188.17; r=debbugs.gnu.org] 2.5 TO_NO_BRKTS_PCNT To: lacks brackets + percentage 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 (--) Normal behavior with local `copy' command is to preserve attributes of the destination file, if such file exists. Normal behavior of ssh/scp is to preserve file attributes of destination file if such file exists: $ ssh stw1 ls -l /home/admin/diff.sql -rwxr-xr-x 1 admin admin 6240 Sep 27 20:22 /home/admin/diff.sql ~ $ ls -l diff.sql -rw-r--r-- 1 admin admin 6240 Jun 20 2021 diff.sql ~ $ scp diff.sql stw1:~/ diff.sql 100% 6240 20.6KB/s 00:00 ~ $ ssh stw1 ls -l /home/admin/diff.sql -rwxr-xr-x 1 admin admin 6240 Sep 27 20:23 /home/admin/diff.sql ~ I have noticed that Tramp transfers file attributes from local file to remote file. This causes server errors, as it is out of the habit that file attributes on existing file are to be preserved. In GNU Emacs 29.0.50 (build 1, x86_64-pc-linux-gnu, X toolkit, cairo version 1.17.6, Xaw3d scroll bars) of 2022-09-16 built on protected.rcdrun.com Repository revision: 3c1579697ff03d3991b41ead503211cffac0998f Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12101003 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 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 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 39440 9450) (symbols 48 5118 2) (strings 32 14282 1683) (string-bytes 1 402633) (vectors 16 10393) (vector-slots 8 157935 15159) (floats 8 40 15) (intervals 56 275 0) (buffers 1000 12)) -- Jean Take action in Free Software Foundation campaigns: https://www.fsf.org/campaigns In support of Richard M. Stallman https://stallmansupport.org/ From unknown Sun Jun 22 07:49:47 2025 X-Loop: help-debbugs@gnu.org Subject: bug#58132: 29.0.50; Tramp: not preserving remote chmod attributes when copy Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 31 Oct 2022 08:34:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58132 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Jean Louis Cc: 58132@debbugs.gnu.org Received: via spool by 58132-submit@debbugs.gnu.org id=B58132.16672052131058 (code B ref 58132); Mon, 31 Oct 2022 08:34:02 +0000 Received: (at 58132) by debbugs.gnu.org; 31 Oct 2022 08:33:33 +0000 Received: from localhost ([127.0.0.1]:39453 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1opQEe-0000Gz-C7 for submit@debbugs.gnu.org; Mon, 31 Oct 2022 04:33:32 -0400 Received: from mout.gmx.net ([212.227.15.18]:47531) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1opQEU-0000GJ-KT for 58132@debbugs.gnu.org; Mon, 31 Oct 2022 04:33:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1667205166; bh=57AZbHNMqMs93+38QA8XEk8uv22HLRUBAkOcwg0E5Nk=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date; b=lpONhTvlOF2B13mE1WoG3V+KggPt/kTUnWNMFToPplZm6EyDR7JE5VRevLv8U9BSg ZaGre69cq9F+DKgC2BufdemFaEr63ZbypGgVxnSNL6XCuesZsBtFybGyZ4q6e322f8 qGRaPDjAaSro3VhDUMeqLQlB3IjoytQRBDxx6yilKxJoer4nLFNPd+9YIsd/RIzdL3 IIuGGuUTjFWi3nkjCVot8dyIQvnopI4Sq8zI83dgcuEH/xfrC4kYyjq8VbBqgxsKKq C8+jNQG/mJlC8ZvlUY3uBY7TBaR5PBBnDx+wozk5o5CyJuO666b3ktaDPHLIHD0P9B Z0GL+Ut798glw== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from gandalf.gmx.de ([213.220.151.1]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1M7sDg-1okUXv3nxS-0055Oz; Mon, 31 Oct 2022 09:32:46 +0100 From: Michael Albinus In-Reply-To: <86sfkcxjrc.fsf@protected.rcdrun.com> (Jean Louis's message of "Wed, 28 Sep 2022 06:25:43 +0300") References: <86sfkcxjrc.fsf@protected.rcdrun.com> Date: Mon, 31 Oct 2022 09:32:44 +0100 Message-ID: <87leowjsur.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:hX/mEGo6uYQoLMEl5sOmEHz2MD4w5bHy8yy7iciD3t9XS6qGVJ8 4hXOX3GMOvBctr+neBYfWSN6YojJNroIrqPtsp0g1gX4IGSJgBkl9G/hjhmUaOFoM/iphp1 StY2Rwdf/35aSPQzNmF559YbkA0Y7nZi5IcamxmKB1UxGY+B40zddpvGxaLJckMv6MncQOq 7YnzVJBihxSDHj84zHitw== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:29ohObLnBFQ=;uKeCbL16HH9v1d6MuOA9aTnEPcE TEn78aQHvU92nSPadvLa4+CXXA/w21wwHsQIgZ68pnAJkEWlmOF+ec6eYSYjsXHwstFfP9Kys Zjm5vd6X0FtyMQ/0Jg0Bll7BKT6f/ixhImX8nWA9dLuYjREmoYagqdPNHV/e8jws5lzXlFehm KqHwDjdAWU7kx56f3LqfIJQp8GBSmBKDrGwHiUo6Ye12r6fchP6qE7OGwIIWlXm+iJxh0kS+Z ckFk7xYMEz78/6/Eb3S/ZgPbPcoUhg6PGIQwU34S5ELaAM90l9FK8whaL0Za71XRlAqAp9jJg y1R4xFmxlNHWBys57AczYwug6I6xJYfMCyuFuqhZfJuE3dDte9MyqIgS+Y/JhbZU/ryU4DyRu sO93SRwI+d1vPOoj7/d4er/jjpuSeB7GiBn7S4McS1jHeewF6RCGh3tpaHkxPdpMmTXkkTVBu 4sqOTWwWQCxxBN+T84Dw6+Dgp2zmP/8/44tnCrOT6w4tfjKFzdoR+/SKinUkqCEvSG60qJiP2 HYkuuwPqSzAmjjvtmrAaeUEpcDhFsQOcfyWE2UQJp6xn6rK7FWkxziGUtCWMrSMfzqgkLxFka Yx3mfP8R/jzQSjjTJBaNVZCwttApwDgDiR2cANjc26PlejRQCTM+BfeSSgMXjAM7gBtHfPDgy LrI71ML4GQs3w6Ei+oLHsC1Ilgum34AG1CD8rNTm/dvKDU6SoYjELHuEt31zgUwB3qP7xMdH2 LNIy2URFyKzK/8mgKrQG+qFNW+TaOmDZdEasqy/dpXtDQ6IJwdTMTl1gXetBnSTYyIXfGrS9B 8AaLCm7BGm7fkuqiGid+scCCL4ixLGLK4r5WtyAKPdCLH406Bd6zP4o8weNSxd0XK0dCMIgi2 LPbe+K0MZuX5mepxBjNfOAN7PH1l2zI282Z3SXeTh5q4cJ1KZfPy7zo9r1juFmZrguruq7X/1 m3/vtw== X-Spam-Score: -0.7 (/) 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 (-) Jean Louis writes: Hi Jean, > Normal behavior with local `copy' command is to preserve attributes of > the destination file, if such file exists. > > Normal behavior of ssh/scp is to preserve file attributes of destination > file if such file exists: > > $ ssh stw1 ls -l /home/admin/diff.sql > -rwxr-xr-x 1 admin admin 6240 Sep 27 20:22 /home/admin/diff.sql > ~ > $ ls -l diff.sql > -rw-r--r-- 1 admin admin 6240 Jun 20 2021 diff.sql > ~ > $ scp diff.sql stw1:~/ > diff.sql 100% 62= 40 20.6KB/s 00:00=20=20=20=20 > ~ > $ ssh stw1 ls -l /home/admin/diff.sql > -rwxr-xr-x 1 admin admin 6240 Sep 27 20:23 /home/admin/diff.sql > ~ > > I have noticed that Tramp transfers file attributes from local file to > remote file. This causes server errors, as it is out of the habit that > file attributes on existing file are to be preserved. Tramp does what it is instructed. Copying a file is triggered by the `copy-file' function. If the argument PRESERVE-PERMISSIONS is non-nil, Tramp tries to preserve the permissions. See the docstring of `copy-file': --8<---------------cut here---------------start------------->8--- copy-file is an interactive built-in function in =E2=80=98src/fileio.c=E2= =80=99. (copy-file FILE NEWNAME &optional OK-IF-ALREADY-EXISTS KEEP-TIME PRESERVE-UID-GID PRESERVE-PERMISSIONS) Copy FILE to NEWNAME. Both args must be strings. If NEWNAME is a directory name, copy FILE to a like-named file under NEWNAME. For NEWNAME to be recognized as a directory name, it should end in a slash. This function always sets the file modes of the output file to match the input file. The optional third argument OK-IF-ALREADY-EXISTS specifies what to do if file NEWNAME already exists. If OK-IF-ALREADY-EXISTS is nil, signal a =E2=80=98file-already-exists=E2=80=99 error without overwriting. = If OK-IF-ALREADY-EXISTS is an integer, request confirmation from the user about overwriting; this is what happens in interactive use with M-x. Any other value for OK-IF-ALREADY-EXISTS means to overwrite the existing file. Fourth arg KEEP-TIME non-nil means give the output file the same last-modified time as the old one. (This works on only some systems.) A prefix arg makes KEEP-TIME non-nil. If PRESERVE-UID-GID is non-nil, try to transfer the uid and gid of FILE to NEWNAME. If PRESERVE-PERMISSIONS is non-nil, copy permissions of FILE to NEWNAME; this includes the file modes, along with ACL entries and SELinux context if present. Otherwise, if NEWNAME is created its file permission bits are those of FILE, masked by the default file permissions. --8<---------------cut here---------------end--------------->8--- So it isn't an error per se. Best regards, Michael. From unknown Sun Jun 22 07:49:47 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Jean Louis Subject: bug#58132: closed (Re: bug#58132: 29.0.50; Tramp: not preserving remote chmod attributes when copy) Message-ID: References: <87zgd3m4j8.fsf@gmx.de> <86sfkcxjrc.fsf@protected.rcdrun.com> X-Gnu-PR-Message: they-closed 58132 X-Gnu-PR-Package: emacs Reply-To: 58132@debbugs.gnu.org Date: Mon, 07 Nov 2022 10:41:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1667817662-7084-1" This is a multi-part message in MIME format... ------------=_1667817662-7084-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #58132: 29.0.50; Tramp: not preserving remote chmod attributes when copy which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 58132@debbugs.gnu.org. --=20 58132: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D58132 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1667817662-7084-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 58132-done) by debbugs.gnu.org; 7 Nov 2022 10:40:54 +0000 Received: from localhost ([127.0.0.1]:33422 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1orzYk-0001pp-6M for submit@debbugs.gnu.org; Mon, 07 Nov 2022 05:40:54 -0500 Received: from mout.gmx.net ([212.227.17.22]:43703) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1orzYg-0001pa-E3 for 58132-done@debbugs.gnu.org; Mon, 07 Nov 2022 05:40:52 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1667817613; bh=hO96cbOcjsAzPgSufMy5pdwXuVjbQA/6Djsh7D4nPhU=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date; b=SnpsJZ0fzjWOmWUQgBVI8DdRtYg4DIb59yuoYGf3T/0m1mxVz5518xDs+ig1AEuaP Sru2cFs9V078VvlX2TO8yYHeunIOPGcwZq3bt1vFZP28MPdzO0e1e+mrlfV3kkYkia MMeXGSrDoLnxUfDmkeHH6att3tAlzpza8n05CIi275u8wyD/mYZhBB7mBmwLqgK5Y1 ocMythjAgLhFh7nqfbU2nZN+4H/mMobRBxXdWsMfdM4EY4c/wbNaH03Tp0AZ5gBEAw 2ocOU6WoeMm9akD1w1AJR5SqNzFm17cojK8GkV+HIWespZ6icGyR4UalmLHp9yXnt5 kXGuQdsH+UEuA== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from gandalf.gmx.de ([212.91.242.159]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MLiCu-1oaKAn0yki-00HeuQ; Mon, 07 Nov 2022 11:40:13 +0100 From: Michael Albinus To: Jean Louis Subject: Re: bug#58132: 29.0.50; Tramp: not preserving remote chmod attributes when copy In-Reply-To: <87leowjsur.fsf@gmx.de> (Michael Albinus's message of "Mon, 31 Oct 2022 09:32:44 +0100") References: <86sfkcxjrc.fsf@protected.rcdrun.com> <87leowjsur.fsf@gmx.de> Date: Mon, 07 Nov 2022 11:40:11 +0100 Message-ID: <87zgd3m4j8.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:1YB7ckEk0luQ6qU4j51ongBzcOIrpEvhxtMPzUjgqYjYseq+Fp3 eKZQhnNth+0qEsevUC7xL3e4V1TZMlI+6q6nHUeYre57+Df8ousw0eDRNYbfe8nvphnIC9m w/HxRR7n9sBQY4bPR0e9yTw5/MSdgGpSR7KHx0uGwt5mwazozdlcnPC/zrE7Plii0Hvjils vgjmAtXFzE5OVglCPR4cQ== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:B3W2iE83nY8=;J69TODPRGXbwd4m9dIndxjjb5t+ HToyITuYpe8ye2ffongbbWWSANgW223cdqT60M1+5aXQ1et5BuRS8k52Ji0KZEWiUX1+Lv1n1 Q0Gvc/rymSKyu1HqPzfvfPSYiZQ+48y1eYadR71OHGFt7KTX7QC1yw77pQLjUOudc7dB5OG6R 4SjdJQRJvQfD2lc02q2lDf6XgDWN0gnurpUgMbLAFBwAElQB1V/ix/ebX1a55iUbgJP5IZlYH wE6XOulkwLzTUv8b4qWSh/vnirLKGTKUdzuVFisItlS3LzNnPTrn9Pm4FgxNdAx6jaxeYtFXO NFiAI2qpxNiE26F2jm5CSfju30ixIGHVi1pyzm1s6wPGHXkqe+/xa/BNt82xhy6KpFTCqR1C5 Y8JhnbALsL3ERPddyO8uKJWw/be3okmxtc4LW/euqaPi0pNA3myhN04jA8bmWnmgdjm9lWs23 cembwUerk/6ToKNsmUgxammaKxxeh0sjVXN86qQAkRKY7Q2uxJru0+To8K6TuLnKY6Zs541ae mDSAnYTNQSot6gGLqroeJ47cXm/Gwy0729zEyZuHRgSZYfR0PMfXD6sE8P3oMtB1FhCcE+dcr MqKjY80hc2FtH7+/Z4u4VkdhBDaW1Bi5unrhxb2ibfTiDhVEegh2YtwT0ZQIynb+AXzSrDnsk hAPc1gB2MGFcU+sV0ODA6RLt1DgpKGJLhrV8BptX/NDjrVUJQBkJtEf5ISdki8LC7T9KCqf2M znH7sUUEobQryBw6HHApSTOyGS9FD7cf/LzpwQ/SJXQUX+pj56CRnJWUhXxu2Kh9l9+1oRA/1 MSlmIrBMKnVPgIFluPkws5m7wE5CKgwK4qp5fYZClLYua3epR500EyKYiRlbxGYoNRvVZHWVn jG1mgIJsqsaqTE222LX5mDE2kG7PcmB9aTaVgcPwtisxWO2vD5PQ/Zu60qw33/KVnQvhydZhE Idyeb8dimTF5vujAvgvCdYm262E= Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 58132-done Cc: 58132-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: -1.7 (-) Michael Albinus writes: Hi Jean, >> Normal behavior with local `copy' command is to preserve attributes of >> the destination file, if such file exists. >> >> Normal behavior of ssh/scp is to preserve file attributes of destinatio= n >> file if such file exists: >> >> $ ssh stw1 ls -l /home/admin/diff.sql >> -rwxr-xr-x 1 admin admin 6240 Sep 27 20:22 /home/admin/diff.sql >> ~ >> $ ls -l diff.sql >> -rw-r--r-- 1 admin admin 6240 Jun 20 2021 diff.sql >> ~ >> $ scp diff.sql stw1:~/ >> diff.sql 100% = 6240 20.6KB/s 00:00 >> ~ >> $ ssh stw1 ls -l /home/admin/diff.sql >> -rwxr-xr-x 1 admin admin 6240 Sep 27 20:23 /home/admin/diff.sql >> ~ >> >> I have noticed that Tramp transfers file attributes from local file to >> remote file. This causes server errors, as it is out of the habit that >> file attributes on existing file are to be preserved. > > Tramp does what it is instructed. Copying a file is triggered by the > `copy-file' function. If the argument PRESERVE-PERMISSIONS is non-nil, > Tramp tries to preserve the permissions. See the docstring of `copy-file= ': > > So it isn't an error per se. No further comment, I'm closing the bug therefore. Best regards, Michael. ------------=_1667817662-7084-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 28 Sep 2022 03:49:11 +0000 Received: from localhost ([127.0.0.1]:57961 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1odO4M-00035D-Si for submit@debbugs.gnu.org; Tue, 27 Sep 2022 23:49:11 -0400 Received: from lists.gnu.org ([209.51.188.17]:60174) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1odO4K-000355-Vi for submit@debbugs.gnu.org; Tue, 27 Sep 2022 23:49:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56098) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1odO4K-00061K-Qq for bug-gnu-emacs@gnu.org; Tue, 27 Sep 2022 23:49:08 -0400 Received: from stw1.rcdrun.com ([217.170.207.13]:55939) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1odO4I-0002Lq-Sn for bug-gnu-emacs@gnu.org; Tue, 27 Sep 2022 23:49:08 -0400 Received: from localhost ([::ffff:102.83.37.37]) (AUTH: PLAIN admin, TLS: TLS1.3,256bits,ECDHE_RSA_AES_256_GCM_SHA384) by stw1.rcdrun.com with ESMTPSA id 00000000000BA409.000000006333C42C.00007DD4; Tue, 27 Sep 2022 20:49:00 -0700 From: Jean Louis To: bug-gnu-emacs@gnu.org Subject: 29.0.50; Tramp: not preserving remote chmod attributes when copy Date: Wed, 28 Sep 2022 06:25:43 +0300 Message-ID: <86sfkcxjrc.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.4 (+) 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: Normal behavior with local `copy' command is to preserve attributes of the destination file, if such file exists. Normal behavior of ssh/scp is to preserve file attributes of destination file if such file exists: Content analysis details: (1.4 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at https://www.dnswl.org/, medium trust [209.51.188.17 listed in list.dnswl.org] 0.2 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 0.9 SPF_FAIL SPF: sender does not match SPF record (fail) [SPF failed: Please see http://www.openspf.org/Why?s=mfrom; id=admin%40protected.rcdrun.com; ip=209.51.188.17; r=debbugs.gnu.org] 2.5 TO_NO_BRKTS_PCNT To: lacks brackets + percentage 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 (--) Normal behavior with local `copy' command is to preserve attributes of the destination file, if such file exists. Normal behavior of ssh/scp is to preserve file attributes of destination file if such file exists: $ ssh stw1 ls -l /home/admin/diff.sql -rwxr-xr-x 1 admin admin 6240 Sep 27 20:22 /home/admin/diff.sql ~ $ ls -l diff.sql -rw-r--r-- 1 admin admin 6240 Jun 20 2021 diff.sql ~ $ scp diff.sql stw1:~/ diff.sql 100% 6240 20.6KB/s 00:00 ~ $ ssh stw1 ls -l /home/admin/diff.sql -rwxr-xr-x 1 admin admin 6240 Sep 27 20:23 /home/admin/diff.sql ~ I have noticed that Tramp transfers file attributes from local file to remote file. This causes server errors, as it is out of the habit that file attributes on existing file are to be preserved. In GNU Emacs 29.0.50 (build 1, x86_64-pc-linux-gnu, X toolkit, cairo version 1.17.6, Xaw3d scroll bars) of 2022-09-16 built on protected.rcdrun.com Repository revision: 3c1579697ff03d3991b41ead503211cffac0998f Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12101003 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 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 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 39440 9450) (symbols 48 5118 2) (strings 32 14282 1683) (string-bytes 1 402633) (vectors 16 10393) (vector-slots 8 157935 15159) (floats 8 40 15) (intervals 56 275 0) (buffers 1000 12)) -- Jean Take action in Free Software Foundation campaigns: https://www.fsf.org/campaigns In support of Richard M. Stallman https://stallmansupport.org/ ------------=_1667817662-7084-1-- From debbugs-submit-bounces@debbugs.gnu.org Mon Nov 07 05:41:56 2022 Received: (at control) by debbugs.gnu.org; 7 Nov 2022 10:41:56 +0000 Received: from localhost ([127.0.0.1]:33429 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1orzZk-0001s1-JN for submit@debbugs.gnu.org; Mon, 07 Nov 2022 05:41:56 -0500 Received: from mout.gmx.net ([212.227.17.20]:32795) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1orzZh-0001ro-Cb for control@debbugs.gnu.org; Mon, 07 Nov 2022 05:41:55 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1667817707; bh=UKypq3ahPdFNcnSeJLdXit0LLB3vXkvlR0yFkfVIt2U=; h=X-UI-Sender-Class:Date:To:From:Subject; b=Yw3nhwXqO61RsABQ3dor/eDSaHsZB8VKXODZEtTEt7Vvbw3zqefZ/rGkb6SLoEMr8 FUa/QaA4MdzgRhUjmV/uBV5Ozj5RkJmh0BIg4NohqlOIg370paPKAYzhKRL0Ndqkkw ZpRbC8AJ4l+A4lc6pSuk4a5MOnqY1/mxfhNZQ2xVRSYLkO/VR4c3wgfe9JkIX0zO2z 282h6wxpuM+8Ngud9sr+K1N/WZgubCGEyPFVsI5oiWPFF5SPxnRNftVq7205ukMCFI /oQZHh1i34StKBNVirHKCECRfMXgTvpdUEdaLAXdoi/lXwrBRywAQ4KtqxDx6aE6DS qyWqvoZcGvRfQ== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from gandalf.gmx.de ([212.91.242.159]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MuDXp-1p8ZaI1RID-00uZEW for ; Mon, 07 Nov 2022 11:41:47 +0100 Date: Mon, 07 Nov 2022 11:41:46 +0100 Message-Id: <87y1snm4gl.fsf@gmx.de> To: control@debbugs.gnu.org From: Michael Albinus Subject: control message for bug #58132 X-Provags-ID: V03:K1:3HHoiEOVeACmPuM1HpTwTJFsj5CB5t+GVFKsmMyCn/nthvpHDmo DyscIbJZf55pCn3NkK9LirL8cNoUJUbpVaxpf0FIHaNEqhZA79BoyhH5YeZvEErVscSjS/J BVhuz61+vDeOf6vBZydA/Te1vYub0CtPIjqAOKHqA8gS5nVUyJdmM2J4lcZW6sHghKuG9tl GRoHS6EcoXHna1oYb7aDQ== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:gL6sGNV3tHE=;R6pM+Ag36yvRNwXo9xICDC/Kiy2 Z5AL/lquCnWgBzH1dJgzt+F8wIfjGn2zpVw2ob0cmKQA48kxn5XBNCfNk4tC+uwWfU4wMBcA6 ezSb77G/gcltqf2apR4cw/kKNM70SFkss7r/rOvTpLtHyFDzmr1kGvvK+5M5UtKceKei9hzQG m2leM6/a5eKKqDSBqIw/HDTvQWqPWFp3YnggpxyhfnslQceQ15omW7y8/wC7X63J8Q5IsSdbm 1k2gqTInNM7rkc/lem0wh78+m2qtM9HF4DeLJpTMqQj/xKrf9k9j+dGulV3diyxZxseXYSZqt RHHorEUIjm+pNnM0tBFNLUjh3Yqgrm+jk2wl8u18RZ7uB6lCGValYZTxHt6ZBHMdUEXIBHSA/ +evNHVGyhM5foTiZcp/3R+OYa6ICF7lY1O09LczW2JsrXbt9QnNd/v5tfnqlTreVkwzDbEwFc rNODbpQVwIV/6aK5t/fIPF6lrj8GdNIO5lXkKwHbIMUvfGx+A9+YXKavmBqyezYS3zyhfhS3t JCSNhtncqRdiG12eon1vhvsQoAnfivzR2t3OeDb7SLpbZk7erFmcizGks3OZ98QuircIvykvF cIFbXM6RZhek+JTSNagxc4/59O6SfI3PT0RFgtHzKfPh7oTTtqPGyYnat7DRx0OQEtBo/dC0z 1D6exD9Y0rwDWvYVsncpq9PIqYymRcBRuQtBzqU/4fY37XM/SpyjbTjA1N+hehr/Dh2ujlu6W 6I6sJTUuxqQTeX2SCRoPNyI61is2u27ZxAkfq2ZVldyQczmq7u9Btw/FFffyUSZ4+RkJP6Rto HzUVAUX1luGkmDL/MOMqok/cUlphQ3mo2jShMNNSOINkIQ/Tmph9MeQgfitV11xSPxYz1zNMk +eNyKFgyHGJCj8iDncOqkQSczzm6cCmDGyk75KQPGt8uROhRkX/96Hyo9RrDBiQuaTRIlglpu REed/pGI91M5XuuUhl+JCJmJRnU= X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: control 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 (-) tags 58132 + notabug quit