From unknown Fri Sep 05 08:43:37 2025 X-Loop: help-debbugs@gnu.org Subject: bug#8767: cp: --preserve=all doesn't work for the parents when --parent is used Resent-From: Christoph Anton Mitterer Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-coreutils@gnu.org Resent-Date: Mon, 30 May 2011 22:50:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 8767 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: 8767@debbugs.gnu.org X-Debbugs-Original-To: Received: via spool by submit@debbugs.gnu.org id=B.130679578415385 (code B ref -1); Mon, 30 May 2011 22:50:03 +0000 Received: (at submit) by debbugs.gnu.org; 30 May 2011 22:49:44 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QRBHL-000406-FM for submit@debbugs.gnu.org; Mon, 30 May 2011 18:49:43 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QRBBX-0003re-Cf for submit@debbugs.gnu.org; Mon, 30 May 2011 18:43:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QRBBR-0003bs-FO for submit@debbugs.gnu.org; Mon, 30 May 2011 18:43:38 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([140.186.70.17]:58461) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QRBBR-0003bn-DY for submit@debbugs.gnu.org; Mon, 30 May 2011 18:43:37 -0400 Received: from eggs.gnu.org ([140.186.70.92]:60608) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QRBBQ-0002y7-GR for bug-coreutils@gnu.org; Mon, 30 May 2011 18:43:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QRBBP-0003bU-Ih for bug-coreutils@gnu.org; Mon, 30 May 2011 18:43:36 -0400 Received: from mailgw01.dd24.net ([193.46.215.41]:58607) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QRBBP-0003bP-9p for bug-coreutils@gnu.org; Mon, 30 May 2011 18:43:35 -0400 Received: from localhost (amavis02.dd24.net [192.168.1.113]) by mailgw01.dd24.net (Postfix) with ESMTP id 34DDE7CC220 for ; Mon, 30 May 2011 22:43:33 +0000 (GMT) X-Virus-Scanned: domaindiscount24.com mail filter gateway Received: from mailgw01.dd24.net ([192.168.1.191]) by localhost (amavis02.dd24.net [192.168.1.106]) (amavisd-new, port 10191) with ESMTP id Evse9rWUy42c for ; Mon, 30 May 2011 22:43:29 +0000 (GMT) Received: from webmail.dd24.net (webmail01.dd24.net [193.46.215.65]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mailgw01.dd24.net (Postfix) with ESMTPSA id 1DD827CC21D for ; Mon, 30 May 2011 22:43:29 +0000 (GMT) MIME-Version: 1.0 Date: Mon, 30 May 2011 22:43:02 +0000 From: Christoph Anton Mitterer Message-ID: <0a5e6cb1023223631a18aef353cefd09@imap.dd24.net> X-Sender: calestyo@scientia.net User-Agent: RoundCube Webmail/0.3.1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -6.6 (------) X-Mailman-Approved-At: Mon, 30 May 2011 18:49:41 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.6 (------) Hi. When doing something like: cp --no-dereference --preserve=3Dall --parents --no-clobber "${pathname}" "${destination}" Then the file (if it's not a directory) will be copied to ${destination}/${pathname} including all the directories within ${pathnam= e} (e.g. ./foo/bar/file). While the owner (user/group) and file permission bits of foo and bar seem to be preserved, the XATTRs are not (maybe the other preserve-classes are also not preserved). Doubt that this is desired, so I guess it's a bug. Cheers, Chris. From unknown Fri Sep 05 08:43:37 2025 X-Loop: help-debbugs@gnu.org Subject: bug#8767: cp: --preserve=all doesn't work for the parents when --parent is used Resent-From: Ondrej Vasik Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-coreutils@gnu.org Resent-Date: Tue, 31 May 2011 07:43:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8767 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: Christoph Anton Mitterer Cc: 8767@debbugs.gnu.org Reply-To: ovasik@redhat.com Received: via spool by 8767-submit@debbugs.gnu.org id=B8767.130682776226800 (code B ref 8767); Tue, 31 May 2011 07:43:01 +0000 Received: (at 8767) by debbugs.gnu.org; 31 May 2011 07:42:42 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QRJb8-0006yD-GH for submit@debbugs.gnu.org; Tue, 31 May 2011 03:42:42 -0400 Received: from mx1.redhat.com ([209.132.183.28]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QRJb5-0006y0-UK for 8767@debbugs.gnu.org; Tue, 31 May 2011 03:42:41 -0400 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p4V7gXDs019257 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 31 May 2011 03:42:33 -0400 Received: from [10.34.24.196] (dhcp-24-196.brq.redhat.com [10.34.24.196]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p4V7gVeO029825; Tue, 31 May 2011 03:42:32 -0400 From: Ondrej Vasik In-Reply-To: <0a5e6cb1023223631a18aef353cefd09@imap.dd24.net> References: <0a5e6cb1023223631a18aef353cefd09@imap.dd24.net> Content-Type: text/plain; charset="UTF-8" Organization: Red Hat, Inc. Date: Tue, 31 May 2011 09:42:38 +0200 Message-ID: <1306827758.23382.14.camel@dhcp-24-196.brq.redhat.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.68 on 10.5.11.22 X-Spam-Score: -9.8 (---------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -9.8 (---------) On Mon, 2011-05-30 at 22:43 +0000, Christoph Anton Mitterer wrote: > Hi. > > When doing something like: > cp --no-dereference --preserve=all --parents --no-clobber "${pathname}" > "${destination}" > > Then the file (if it's not a directory) will be copied to > ${destination}/${pathname} including all the directories within ${pathname} > (e.g. ./foo/bar/file). > While the owner (user/group) and file permission bits of foo and bar seem > to be preserved, the XATTRs are not (maybe the other preserve-classes are > also not preserved). > > > Doubt that this is desired, so I guess it's a bug. Could you please specify coreutils version where you experience the issue? --preserve=all tries to preserve all possible things which could be preserved with --preserve , but in the case of extended attributes and SELinux context possible failure of preserving these attributes doesn't change exit status. This is described in info documentation. If it doesn't show any error message, please try if using --preserve=xattr shows an error. Additionally, strace of the failed preservation and information about destination filesystem might help too. Greetings, Ondrej Vasik From unknown Fri Sep 05 08:43:37 2025 X-Loop: help-debbugs@gnu.org Subject: bug#8767: cp: --preserve=all doesn't work for the parents when --parent is used Resent-From: Christoph Anton Mitterer Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-coreutils@gnu.org Resent-Date: Tue, 31 May 2011 13:21:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8767 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: ovasik@redhat.com Cc: 8767@debbugs.gnu.org Received: via spool by 8767-submit@debbugs.gnu.org id=B8767.130684803632069 (code B ref 8767); Tue, 31 May 2011 13:21:02 +0000 Received: (at 8767) by debbugs.gnu.org; 31 May 2011 13:20:36 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QROs7-0008LA-DT for submit@debbugs.gnu.org; Tue, 31 May 2011 09:20:35 -0400 Received: from mailgw02.dd24.net ([193.46.215.43]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QROs4-0008Kw-DW for 8767@debbugs.gnu.org; Tue, 31 May 2011 09:20:33 -0400 Received: from localhost (amavis02.dd24.net [192.168.1.113]) by mailgw02.dd24.net (Postfix) with ESMTP id 90B053542D5; Tue, 31 May 2011 13:20:26 +0000 (GMT) X-Virus-Scanned: domaindiscount24.com mail filter gateway Received: from mailgw02.dd24.net ([192.168.1.197]) by localhost (amavis02.dd24.net [192.168.1.106]) (amavisd-new, port 10197) with ESMTP id q0R-RIBsKVzV; Tue, 31 May 2011 13:20:22 +0000 (GMT) Received: from [192.168.0.101] (ppp-93-104-107-116.dynamic.mnet-online.de [93.104.107.116]) by mailgw02.dd24.net (Postfix) with ESMTPA id 2F21D3541F3; Tue, 31 May 2011 13:20:04 +0000 (GMT) From: Christoph Anton Mitterer In-Reply-To: <1306827758.23382.14.camel@dhcp-24-196.brq.redhat.com> References: <0a5e6cb1023223631a18aef353cefd09@imap.dd24.net> <1306827758.23382.14.camel@dhcp-24-196.brq.redhat.com> Content-Type: multipart/signed; micalg="sha1"; protocol="application/x-pkcs7-signature"; boundary="=-u5TNpFdfs0RujSP0WDgw" Date: Tue, 31 May 2011 15:20:03 +0200 Message-ID: <1306848003.3323.170.camel@fermat.scientia.net> Mime-Version: 1.0 X-Mailer: Evolution 2.32.3 X-Spam-Score: -3.6 (---) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.6 (---) --=-u5TNpFdfs0RujSP0WDgw Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, 2011-05-31 at 09:42 +0200, Ondrej Vasik wrote: > Could you please specify coreutils version where you experience the > issue? Sorry, forgot that. This was the corutils from Debian sid, which is currently 8.5. > but in the case of extended attributes and > SELinux context possible failure of preserving these attributes doesn't > change exit status. Oh that's bad,.. why? Can I get this behavious by using --preserve=3Dcontext,xattr,all to REALLY preserve everything and get errors if this didn't work. > please try if using --preserve=3Dxattr > shows an error. I did, but no error, no preservation. Also it's on the same filesystem (with user_xattr enabled,.. so there should be no problem). --=-u5TNpFdfs0RujSP0WDgw Content-Type: application/x-pkcs7-signature; name="smime.p7s" Content-Disposition: attachment; filename="smime.p7s" Content-Transfer-Encoding: base64 MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIITMjCCBggw ggPwoAMCAQICAQEwDQYJKoZIhvcNAQEEBQAweTEQMA4GA1UEChMHUm9vdCBDQTEeMBwGA1UECxMV aHR0cDovL3d3dy5jYWNlcnQub3JnMSIwIAYDVQQDExlDQSBDZXJ0IFNpZ25pbmcgQXV0aG9yaXR5 MSEwHwYJKoZIhvcNAQkBFhJzdXBwb3J0QGNhY2V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sTFWh0 dHA6Ly93d3cuQ0FjZXJ0Lm9yZzEcMBoGA1UEAxMTQ0FjZXJ0IENsYXNzIDMgUm9vdAIDALIdMAkG BSsOAwIaBQCgggE3MBgGCSqGSIb3DQEJAzELBgkqhkiG9w0BBwEwHAYJKoZIhvcNAQkFMQ8XDTEx MDUzMTEzMjAwM1owIwYJKoZIhvcNAQkEMRYEFL9v+V60GLteU4U5WlBR/NFGYk8BMGoGCSsGAQQB gjcQBDFdMFswVDEUMBIGA1UEChMLQ0FjZXJ0IEluYy4xHjAcBgNVBAsTFWh0dHA6Ly93d3cuQ0Fj ZXJ0Lm9yZzEcMBoGA1UEAxMTQ0FjZXJ0IENsYXNzIDMgUm9vdAIDALIdMGwGCyqGSIb3DQEJEAIL MV2gWzBUMRQwEgYDVQQKEwtDQWNlcnQgSW5jLjEeMBwGA1UECxMVaHR0cDovL3d3dy5DQWNlcnQu b3JnMRwwGgYDVQQDExNDQWNlcnQgQ2xhc3MgMyBSb290AgMAsh0wDQYJKoZIhvcNAQEBBQAEggEA GT//6koqH80+lnWM/Lg9ixu6A29UCWX+jE9lZ63peOXl6pdDB2gYnlOSEMIyyij9GuIgW0OUqPwA 4Jw6iofU7rPuLAFqpwSrl/yLybBqE/TsoK3aprKn/BN8OR5QnR9pwSlL3N6JX/eDulOsWfSmo7bU Yt6/Dd8YeHThx9ZDnHir3jQBJe1iFVO6aY/O3PQpGrvpWSvfU31cTtWxpgupJmIs64qqBlbSi6qd eCFGk1FkkgWljZoUEWxkAWBzCT0rLzo+44Q7IFaxSho0pTdheT/7CLLZxTa9D/gwkDLjeho73FHd kMX76Se8mdOipFCdD6E0WWKZotWwOK9DgSjsQQAAAAAAAA== --=-u5TNpFdfs0RujSP0WDgw-- From unknown Fri Sep 05 08:43:37 2025 X-Loop: help-debbugs@gnu.org Subject: bug#8767: cp: --preserve=all doesn't work for the parents when --parent is used Resent-From: Ondrej Vasik Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-coreutils@gnu.org Resent-Date: Tue, 31 May 2011 14:43:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8767 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: Christoph Anton Mitterer Cc: 8767@debbugs.gnu.org Reply-To: ovasik@redhat.com Received: via spool by 8767-submit@debbugs.gnu.org id=B8767.13068529296902 (code B ref 8767); Tue, 31 May 2011 14:43:01 +0000 Received: (at 8767) by debbugs.gnu.org; 31 May 2011 14:42:09 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QRQ8z-0001nE-4P for submit@debbugs.gnu.org; Tue, 31 May 2011 10:42:09 -0400 Received: from mx1.redhat.com ([209.132.183.28]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QRQ8s-0001mg-Pj for 8767@debbugs.gnu.org; Tue, 31 May 2011 10:42:03 -0400 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p4VEfqg6012172 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 31 May 2011 10:41:53 -0400 Received: from [10.36.5.8] (vpn1-5-8.ams2.redhat.com [10.36.5.8]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p4VEfpRt016579; Tue, 31 May 2011 10:41:52 -0400 From: Ondrej Vasik In-Reply-To: <1306848003.3323.170.camel@fermat.scientia.net> References: <0a5e6cb1023223631a18aef353cefd09@imap.dd24.net> <1306827758.23382.14.camel@dhcp-24-196.brq.redhat.com> <1306848003.3323.170.camel@fermat.scientia.net> Content-Type: text/plain; charset="UTF-8" Organization: Red Hat, Inc. Date: Tue, 31 May 2011 16:41:53 +0200 Message-ID: <1306852913.3574.43.camel@dhcp-24-196.brq.redhat.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.68 on 10.5.11.23 X-Spam-Score: -9.8 (---------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -9.9 (---------) On Tue, 2011-05-31 at 15:20 +0200, Christoph Anton Mitterer wrote: > On Tue, 2011-05-31 at 09:42 +0200, Ondrej Vasik wrote: > > Could you please specify coreutils version where you experience the > > issue? > Sorry, forgot that. > This was the corutils from Debian sid, which is currently 8.5. Thanks for specifying that ... current version is 8.12, but I think the support in 8.5 was ready enough. > > but in the case of extended attributes and > > SELinux context possible failure of preserving these attributes doesn't > > change exit status. > Oh that's bad,.. why? Because preserve=all and -a is too general and some filesystems might not have support for it. Therefore failure might break old scripts. Failures might be quite wordy, in addition. So cp -a / cp --preserve=all /mv just tries to preserve as much as possible. http://lists.gnu.org/archive/html/bug-coreutils/2009-04/msg00174.html http://lists.gnu.org/archive/html/bug-coreutils/2010-03/msg00268.html http://lists.gnu.org/archive/html/bug-coreutils/2010-04/msg00039.html When you explicitly mention the attribute, you probably really want it, so failure changes the exit status. > Can I get this behavious by using --preserve=context,xattr,all to REALLY > preserve everything and get errors if this didn't work. Yes, preserve=context,xattr,all should make these attributes required. > > please try if using --preserve=xattr > > shows an error. > I did, but no error, no preservation. > Also it's on the same filesystem (with user_xattr enabled,.. so there > should be no problem). Ok, so it should not be caused by filesystem... could you please check the strace of the cp for (f/l)getxattr? Greetings, Ondrej From unknown Fri Sep 05 08:43:37 2025 X-Loop: help-debbugs@gnu.org Subject: bug#8767: cp: --preserve=all doesn't work for the parents when --parent is used Resent-From: Jim Meyering Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-coreutils@gnu.org Resent-Date: Tue, 13 Sep 2011 12:33:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8767 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: Christoph Anton Mitterer Cc: 8767@debbugs.gnu.org, ovasik@redhat.com Received: via spool by 8767-submit@debbugs.gnu.org id=B8767.13159171279480 (code B ref 8767); Tue, 13 Sep 2011 12:33:01 +0000 Received: (at 8767) by debbugs.gnu.org; 13 Sep 2011 12:32:07 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R3S9j-0002Sl-7E for submit@debbugs.gnu.org; Tue, 13 Sep 2011 08:32:07 -0400 Received: from mx1.redhat.com ([209.132.183.28]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R3S9c-0002SI-Bh for 8767@debbugs.gnu.org; Tue, 13 Sep 2011 08:32:00 -0400 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p8DCRSa8030913 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 13 Sep 2011 08:27:28 -0400 Received: from mx.meyering.net (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id p8DCRQnY003882; Tue, 13 Sep 2011 08:27:27 -0400 Received: from rho.meyering.net (localhost.localdomain [127.0.0.1]) by rho.meyering.net (Acme Bit-Twister) with ESMTP id 58CDF6004E; Tue, 13 Sep 2011 14:27:26 +0200 (CEST) From: Jim Meyering In-Reply-To: <1306852913.3574.43.camel@dhcp-24-196.brq.redhat.com> (Ondrej Vasik's message of "Tue, 31 May 2011 16:41:53 +0200") References: <0a5e6cb1023223631a18aef353cefd09@imap.dd24.net> <1306827758.23382.14.camel@dhcp-24-196.brq.redhat.com> <1306848003.3323.170.camel@fermat.scientia.net> <1306852913.3574.43.camel@dhcp-24-196.brq.redhat.com> Date: Tue, 13 Sep 2011 14:27:26 +0200 Message-ID: <87vcsw4ogh.fsf@rho.meyering.net> Lines: 53 MIME-Version: 1.0 Content-Type: text/plain X-Scanned-By: MIMEDefang 2.67 on 10.5.11.11 X-Spam-Score: -10.5 (----------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -10.5 (----------) tags 8767 + moreinfo thanks Ondrej Vasik wrote: > On Tue, 2011-05-31 at 15:20 +0200, Christoph Anton Mitterer wrote: >> On Tue, 2011-05-31 at 09:42 +0200, Ondrej Vasik wrote: >> > Could you please specify coreutils version where you experience the >> > issue? >> Sorry, forgot that. >> This was the corutils from Debian sid, which is currently 8.5. > > Thanks for specifying that ... current version is 8.12, but I think the > support in 8.5 was ready enough. > >> > but in the case of extended attributes and >> > SELinux context possible failure of preserving these attributes doesn't >> > change exit status. >> Oh that's bad,.. why? > > Because preserve=all and -a is too general and some filesystems might > not have support for it. Therefore failure might break old scripts. > Failures might be quite wordy, in addition. So cp -a / cp > --preserve=all /mv just tries to preserve as much as possible. > > http://lists.gnu.org/archive/html/bug-coreutils/2009-04/msg00174.html > http://lists.gnu.org/archive/html/bug-coreutils/2010-03/msg00268.html > http://lists.gnu.org/archive/html/bug-coreutils/2010-04/msg00039.html > > When you explicitly mention the attribute, you probably really want it, > so failure changes the exit status. > >> Can I get this behavious by using --preserve=context,xattr,all to REALLY >> preserve everything and get errors if this didn't work. > > Yes, preserve=context,xattr,all should make these attributes required. > >> > please try if using --preserve=xattr >> > shows an error. >> I did, but no error, no preservation. >> Also it's on the same filesystem (with user_xattr enabled,.. so there >> should be no problem). > > Ok, so it should not be caused by filesystem... could you please check > the strace of the cp for (f/l)getxattr? > > Greetings, > Ondrej Hi Christoph, If this is still a problem for you, would you please provide strace output? If not, please let us know (and why!) and I'll close this ticket. From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 11 18:34:30 2018 Received: (at control) by debbugs.gnu.org; 11 Oct 2018 22:34:30 +0000 Received: from localhost ([127.0.0.1]:45702 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gAjXK-0004zX-B8 for submit@debbugs.gnu.org; Thu, 11 Oct 2018 18:34:30 -0400 Received: from mail-pg1-f182.google.com ([209.85.215.182]:45621) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gAjXI-0004zL-9d for control@debbugs.gnu.org; Thu, 11 Oct 2018 18:34:28 -0400 Received: by mail-pg1-f182.google.com with SMTP id t70-v6so4828541pgd.12 for ; Thu, 11 Oct 2018 15:34:28 -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=7apBCEYAVn0WRPO0lUXyhbI1fmL5j8ewFFZTMWbq3yI=; b=toL8k7fQ5KxcbpSCAnSstHi4BG3qCcxWJcN/bt/seLilla0Ue8MSoU9J1v5V6iO3fg Amtg9kpyXCz6IczP+2B5sJYJK3YfFfjxTAGmOxtTrod4ghSW0k15rGSpYxYDiFSlcAsB b+vq/HbVS9N7uvE1FMp1P3qbiMEIDsfLl6k4ET6Al2IcPeFzjjrZ9zwHGa2VJe/ExfXe 3jQYK+A79YMNLDdZUC61eJzXCsccw+t/vFb+7hJkDSgoB+YVi3OxSUwg8JCeiJ7OQyWV 5ZoV8ucVi7kf21B9kSPfhOsY9gPJXdQIdN2I3zwzq+DrwthawKhrBWKjm3NgJcH/itND ft5g== 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=7apBCEYAVn0WRPO0lUXyhbI1fmL5j8ewFFZTMWbq3yI=; b=nuSXC9XJQrXagjzp9W7BnUZ1ommpMMtThBjiA0K4nSj9o4WjsFR3A+T1I38yKP0Fzo a80GuqT/kmd2gJ88NlNpMrUnhTux+WSOZT6sFbPjHet1qbxR/kyeBG+9D3hrvi5hSWA0 tPvm9ZgUek97jmNo/HTOyGsYT7L9WvOcTvbZmJCQO76Uela8KzNPYaRgVOQJVzz465na sR7y8GEOE2qoVSBsmVUSe1wlUlBo3OI4XiIlKUgqew8ofHkd3Hl+Mbbx5l67NR2KDA57 ZddvDznKsR+vGLbgzftMTy7UXhlrFIOgqUwKS/fIz34hApKzdH3ed7ALT7sbC92Nk5DQ euZw== X-Gm-Message-State: ABuFfoizOr8B6DzumAK7s/Z8zthjLcrY02/3IwhW8rDQY8Q2vWkcMPwY fJKVbts5ENDLCy3pJZy+ho5ZQXpS X-Google-Smtp-Source: ACcGV60Jjf/wOacofqXbjwl8/obHA6hjNflkUrX7x5s0ygRZTEYhAlGGdhz8FbeEIziWm+tOq6xQvQ== X-Received: by 2002:a62:8910:: with SMTP id v16-v6mr3401359pfd.106.1539297261732; Thu, 11 Oct 2018 15:34:21 -0700 (PDT) Received: from tomato.housegordon.com (moose.housegordon.com. [184.68.105.38]) by smtp.googlemail.com with ESMTPSA id o12-v6sm12147564pgv.7.2018.10.11.15.34.19 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 11 Oct 2018 15:34:20 -0700 (PDT) To: control@debbugs.gnu.org From: Assaf Gordon Message-ID: <9feaab7a-6767-723b-785a-b9e39fa507c7@gmail.com> Date: Thu, 11 Oct 2018 16:34:19 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.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: close 12656 tags 8824 moreinfo close 8824 tags 8767 + moreinfo close 8767 [...] Content analysis details: (2.0 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [209.85.215.182 listed in list.dnswl.org] -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_H3 RBL: Good reputation (+3) [209.85.215.182 listed in wl.mailspike.net] 1.8 MISSING_SUBJECT Missing Subject: header 0.2 NO_SUBJECT Extra score for no subject 0.0 RCVD_IN_MSPIKE_WL Mailspike good senders 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.0 (+) close 12656 tags 8824 moreinfo close 8824 tags 8767 + moreinfo close 8767 tags 8736 wontfix close 8736 tags 8700 wontfix close 8700 close 8616 tags 9101 fixed close 9101 retitle 9129 printf: RFE: reject field width larger than INT_MAX tags 9129 notabug close 9129 tags 9140 fixed close 9140 tags 9207 wontfix close 9207