X-Loop: help-debbugs@HIDDEN Subject: bug#33155: rfe? cp from symlink -> to symlink? cp symlink meta-info(target) with "-a"? (vs. no diagnostic) Resent-From: L A Walsh <coreutils@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-coreutils@HIDDEN Resent-Date: Thu, 25 Oct 2018 19:59:02 +0000 Resent-Message-ID: <handler.33155.B.154049753023628 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: report 33155 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: 33155 <at> debbugs.gnu.org X-Debbugs-Original-To: Coreutils <bug-coreutils@HIDDEN> Received: via spool by submit <at> debbugs.gnu.org id=B.154049753023628 (code B ref -1); Thu, 25 Oct 2018 19:59:02 +0000 Received: (at submit) by debbugs.gnu.org; 25 Oct 2018 19:58:50 +0000 Received: from localhost ([127.0.0.1]:42875 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1gFlmM-000691-9z for submit <at> debbugs.gnu.org; Thu, 25 Oct 2018 15:58:50 -0400 Received: from eggs.gnu.org ([208.118.235.92]:54786) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <coreutils@HIDDEN>) id 1gFlmK-00068o-Mh for submit <at> debbugs.gnu.org; Thu, 25 Oct 2018 15:58:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <coreutils@HIDDEN>) id 1gFlmE-00069r-Ox for submit <at> debbugs.gnu.org; Thu, 25 Oct 2018 15:58:43 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:54342) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from <coreutils@HIDDEN>) id 1gFlmD-00069f-MV for submit <at> debbugs.gnu.org; Thu, 25 Oct 2018 15:58:42 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36153) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <coreutils@HIDDEN>) id 1gFlmC-0004NM-TT for bug-coreutils@HIDDEN; Thu, 25 Oct 2018 15:58:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <coreutils@HIDDEN>) id 1gFlm9-00068j-MI for bug-coreutils@HIDDEN; Thu, 25 Oct 2018 15:58:40 -0400 Received: from ishtar.tlinx.org ([173.164.175.65]:49952 helo=Ishtar.sc.tlinx.org) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from <coreutils@HIDDEN>) id 1gFlm8-00060J-IQ for bug-coreutils@HIDDEN; Thu, 25 Oct 2018 15:58:36 -0400 Received: from [192.168.3.12] (Athenae [192.168.3.12]) by Ishtar.sc.tlinx.org (8.14.7/8.14.4/SuSE Linux 0.8) with ESMTP id w9PJwKec072298 for <bug-coreutils@HIDDEN>; Thu, 25 Oct 2018 12:58:23 -0700 Message-ID: <5BD2205C.5040706@HIDDEN> Date: Thu, 25 Oct 2018 12:58:20 -0700 From: L A Walsh <coreutils@HIDDEN> User-Agent: Thunderbird MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by Ishtar.sc.tlinx.org id w9PJwKec072298 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no timestamps) [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -6.0 (------) Created following test dir (as seen by tree) in /tmp > tree mybin Ishtar:/tmp> tree mybin mybin =E2=94=9C=E2=94=80=E2=94=80 iptool -> alt-tool #broken link =E2=94=9C=E2=94=80=E2=94=80 iptool-restore -> iptool #broken link =E2=94=9C=E2=94=80=E2=94=80 iptool-save -> iptool #broken link =E2=94=94=E2=94=80=E2=94=80 usr =E2=94=94=E2=94=80=E2=94=80 mybin =E2=94=9C=E2=94=80=E2=94=80 alt-tool =E2=94=9C=E2=94=80=E2=94=80 iptool -> alt-tool =E2=94=9C=E2=94=80=E2=94=80 iptool-restore -> iptool =E2=94=9C=E2=94=80=E2=94=80 iptool-save -> iptool =E2=94=9C=E2=94=80=E2=94=80 junka =E2=94=9C=E2=94=80=E2=94=80 junkb =E2=94=94=E2=94=80=E2=94=80 junkc 3 directories, 9 files ---- So first I try copying iptool-save from mybin/usr/mybin to /tmp/mybin Ishtar:/tmp/mybin/usr/mybin> cp --preserve=3Dall iptool-save /tmp/mybin/ cp: not writing through dangling symlink '/tmp/mybin/iptool-save' then try: Ishtar:/tmp/mybin/usr/mybin> /bin/cp -r --preserve=3Dall -iptool-save=20 /tmp/mybin/ (and get no error message) It seems to have _re_copied the link (time is updated on that link) but it didn't recursively follow the link and copy the destination. (nor with -a). Why did it act as though I said "force" and recopy the link (unexpected), but didn't recursively follow the link to its target? (not entirely expected, but wanted). Especially if I use '-a', shouldn't copying a symlink also copy the material pointed to -- i.e. duplicated the symlink structure at the targe= t? One *could* consider the target file "metadata" of the symlink, so at lea= st, "-a" could cover that case. It seems odd to silence the diagnostic with "-r" and "-a", but not recursively follow the link...(I know traditionally -r has referred to directory structure, but in this case it would be more important & useful to copy the symlink structure -- ESPECIALLY, since the target symlink does not exist. Maybe only overwrite symlink target with "-af"?
Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) Content-Type: text/plain; charset=utf-8 X-Loop: help-debbugs@HIDDEN From: help-debbugs@HIDDEN (GNU bug Tracking System) To: L A Walsh <coreutils@HIDDEN> Subject: bug#33155: Acknowledgement (rfe? cp from symlink -> to symlink? cp symlink meta-info(target) with "-a"? (vs. no diagnostic)) Message-ID: <handler.33155.B.154049753023628.ack <at> debbugs.gnu.org> References: <5BD2205C.5040706@HIDDEN> X-Gnu-PR-Message: ack 33155 X-Gnu-PR-Package: coreutils Reply-To: 33155 <at> debbugs.gnu.org Date: Thu, 25 Oct 2018 19:59:02 +0000 Thank you for filing a new bug report with debbugs.gnu.org. This is an automatically generated reply to let you know your message has been received. Your message is being forwarded to the package maintainers and other interested parties for their attention; they will reply in due course. Your message has been sent to the package maintainer(s): bug-coreutils@HIDDEN If you wish to submit further information on this problem, please send it to 33155 <at> debbugs.gnu.org. Please do not send mail to help-debbugs@HIDDEN unless you wish to report a problem with the Bug-tracking system. --=20 33155: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D33155 GNU Bug Tracking System Contact help-debbugs@HIDDEN with problems
Received: (at control) by debbugs.gnu.org; 30 Oct 2018 04:10:01 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Tue Oct 30 00:10:01 2018 Received: from localhost ([127.0.0.1]:52954 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1gHLLt-0004Dh-0u for submit <at> debbugs.gnu.org; Tue, 30 Oct 2018 00:10:01 -0400 Received: from mail-pl1-f171.google.com ([209.85.214.171]:44077) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <assafgordon@HIDDEN>) id 1gHLLs-0004DP-33 for control <at> debbugs.gnu.org; Tue, 30 Oct 2018 00:10:00 -0400 Received: by mail-pl1-f171.google.com with SMTP id s5-v6so3214394plq.11 for <control <at> debbugs.gnu.org>; Mon, 29 Oct 2018 21:10:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:from:message-id:date:user-agent:mime-version:content-language :content-transfer-encoding; bh=Caf3IQR7NJXOTs+N//WJBD7jVf+1iCSyPJ7pLg/puPw=; b=RsFUHXvVI4DoQ10fisHhyWtFFOt0oyr/rSa2YnUr8A9FSW+OFXOCeBg3eDoq24lxbr Pj9xnW8oNPYsdNvoYSQvPlR72EKXcaavtCTUs3T6NY1kRD6BYEU98yoBiYa0GqNPq5NB 6RQ59jV//qsNPc8E6apW0fkxLcTTjAPaNm6oqO5Sq+do7M8/m2uEd84XWm1+LFRjvwvA artPqK1tfI+ZGILihPdPn9LjdpX2VheaEtL66yaicbbAHfvBn+rakOuyDNTUpISC28S5 1q6USPuJ9rSm/QdVeVPxf6lSWsTGbvRS5fW1BK5tN94KsR9sHNWgo0aaWNXLiTR6G9UP hF2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:message-id:date:user-agent:mime-version :content-language:content-transfer-encoding; bh=Caf3IQR7NJXOTs+N//WJBD7jVf+1iCSyPJ7pLg/puPw=; b=qJay266XgRGbkEDtZu7YGnYZjP0OfXfl7utAneHvrMyfjC43KWI8YHtMGYZtGdxFHw EdCIk87VoAZqxNLhw+dZvU5RjMEnMgzCoB20/cSAnGDXZjQu67f2l0+Yt7zFoFt/9WKP eiK8UtTeKscmYLeXgP4keJRvaVr+Pfebe1gMOS8wHU/yImDFihHKkkbC7oCOsXhskJEE oKk4DraeFb3vYEUOEI/kabVm63c2gjwRctgoYOA5vw/p5BRWw0iz/WQVTcjMMm3I43Pk jkL5WUCbgd8+c1PLmXmXEnOoumd+cczkg7TJ41586y8XVMy9dzB23cSBddp4RM0VfzLE NBgg== X-Gm-Message-State: AGRZ1gIDAzZewjvKldhJs4fcklWdV6qHGVZQOE5eT50gFSWwGXrtvvxs t2mnTs5Mc3Y2dUfZ+wbCfavIArIeb0M= X-Google-Smtp-Source: AJdET5dWgJ2DOsSfure1tckiHyhWq0Mn7dg/OslSjuaCLfxK7acPSu/xQ1Ezi6C2mM2YPokWgPVllA== X-Received: by 2002:a17:902:bb0d:: with SMTP id l13-v6mr11454571pls.202.1540872593613; Mon, 29 Oct 2018 21:09:53 -0700 (PDT) Received: from tomato.housegordon.com (moose.housegordon.com. [184.68.105.38]) by smtp.googlemail.com with ESMTPSA id m7-v6sm26861969pgq.59.2018.10.29.21.09.52 for <control <at> debbugs.gnu.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 29 Oct 2018 21:09:52 -0700 (PDT) To: control <at> debbugs.gnu.org From: Assaf Gordon <assafgordon@HIDDEN> Message-ID: <f998a7f6-8a5e-46d6-0e18-db00c14f38d2@HIDDEN> Date: Mon, 29 Oct 2018 22:09:51 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: 2.0 (++) 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: severity 33155 wishlist retitle 33155 cp: copy from symlink -> to symlink? [...] Content analysis details: (2.0 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (assafgordon[at]gmail.com) -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [209.85.214.171 listed in wl.mailspike.net] -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [209.85.214.171 listed in list.dnswl.org] 1.8 MISSING_SUBJECT Missing Subject: header 0.2 NO_SUBJECT Extra score for no subject X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: 1.0 (+) severity 33155 wishlist retitle 33155 cp: copy from symlink -> to symlink?
Received: (at control) by debbugs.gnu.org; 30 Oct 2018 04:10:01 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Tue Oct 30 00:10:01 2018 Received: from localhost ([127.0.0.1]:52954 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1gHLLt-0004Dh-0u for submit <at> debbugs.gnu.org; Tue, 30 Oct 2018 00:10:01 -0400 Received: from mail-pl1-f171.google.com ([209.85.214.171]:44077) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <assafgordon@HIDDEN>) id 1gHLLs-0004DP-33 for control <at> debbugs.gnu.org; Tue, 30 Oct 2018 00:10:00 -0400 Received: by mail-pl1-f171.google.com with SMTP id s5-v6so3214394plq.11 for <control <at> debbugs.gnu.org>; Mon, 29 Oct 2018 21:10:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:from:message-id:date:user-agent:mime-version:content-language :content-transfer-encoding; bh=Caf3IQR7NJXOTs+N//WJBD7jVf+1iCSyPJ7pLg/puPw=; b=RsFUHXvVI4DoQ10fisHhyWtFFOt0oyr/rSa2YnUr8A9FSW+OFXOCeBg3eDoq24lxbr Pj9xnW8oNPYsdNvoYSQvPlR72EKXcaavtCTUs3T6NY1kRD6BYEU98yoBiYa0GqNPq5NB 6RQ59jV//qsNPc8E6apW0fkxLcTTjAPaNm6oqO5Sq+do7M8/m2uEd84XWm1+LFRjvwvA artPqK1tfI+ZGILihPdPn9LjdpX2VheaEtL66yaicbbAHfvBn+rakOuyDNTUpISC28S5 1q6USPuJ9rSm/QdVeVPxf6lSWsTGbvRS5fW1BK5tN94KsR9sHNWgo0aaWNXLiTR6G9UP hF2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:message-id:date:user-agent:mime-version :content-language:content-transfer-encoding; bh=Caf3IQR7NJXOTs+N//WJBD7jVf+1iCSyPJ7pLg/puPw=; b=qJay266XgRGbkEDtZu7YGnYZjP0OfXfl7utAneHvrMyfjC43KWI8YHtMGYZtGdxFHw EdCIk87VoAZqxNLhw+dZvU5RjMEnMgzCoB20/cSAnGDXZjQu67f2l0+Yt7zFoFt/9WKP eiK8UtTeKscmYLeXgP4keJRvaVr+Pfebe1gMOS8wHU/yImDFihHKkkbC7oCOsXhskJEE oKk4DraeFb3vYEUOEI/kabVm63c2gjwRctgoYOA5vw/p5BRWw0iz/WQVTcjMMm3I43Pk jkL5WUCbgd8+c1PLmXmXEnOoumd+cczkg7TJ41586y8XVMy9dzB23cSBddp4RM0VfzLE NBgg== X-Gm-Message-State: AGRZ1gIDAzZewjvKldhJs4fcklWdV6qHGVZQOE5eT50gFSWwGXrtvvxs t2mnTs5Mc3Y2dUfZ+wbCfavIArIeb0M= X-Google-Smtp-Source: AJdET5dWgJ2DOsSfure1tckiHyhWq0Mn7dg/OslSjuaCLfxK7acPSu/xQ1Ezi6C2mM2YPokWgPVllA== X-Received: by 2002:a17:902:bb0d:: with SMTP id l13-v6mr11454571pls.202.1540872593613; Mon, 29 Oct 2018 21:09:53 -0700 (PDT) Received: from tomato.housegordon.com (moose.housegordon.com. [184.68.105.38]) by smtp.googlemail.com with ESMTPSA id m7-v6sm26861969pgq.59.2018.10.29.21.09.52 for <control <at> debbugs.gnu.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 29 Oct 2018 21:09:52 -0700 (PDT) To: control <at> debbugs.gnu.org From: Assaf Gordon <assafgordon@HIDDEN> Message-ID: <f998a7f6-8a5e-46d6-0e18-db00c14f38d2@HIDDEN> Date: Mon, 29 Oct 2018 22:09:51 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: 2.0 (++) 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: severity 33155 wishlist retitle 33155 cp: copy from symlink -> to symlink? [...] Content analysis details: (2.0 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (assafgordon[at]gmail.com) -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [209.85.214.171 listed in wl.mailspike.net] -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [209.85.214.171 listed in list.dnswl.org] 1.8 MISSING_SUBJECT Missing Subject: header 0.2 NO_SUBJECT Extra score for no subject X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: 1.0 (+) severity 33155 wishlist retitle 33155 cp: copy from symlink -> to symlink?
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.