From unknown Tue Aug 19 02:59:31 2025 X-Loop: help-debbugs@gnu.org Subject: bug#63245: Potential regression: cp --preserve=mode or --preserve=all fails to copy files from subdirectory Resent-From: Schlomo Schapiro Original-Sender: "Debbugs-submit" Resent-CC: bug-coreutils@gnu.org Resent-Date: Wed, 03 May 2023 12:49:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 63245 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: 63245@debbugs.gnu.org X-Debbugs-Original-To: bug-coreutils@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.168311810410093 (code B ref -1); Wed, 03 May 2023 12:49:02 +0000 Received: (at submit) by debbugs.gnu.org; 3 May 2023 12:48:24 +0000 Received: from localhost ([127.0.0.1]:45891 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1puBuB-0002cY-AL for submit@debbugs.gnu.org; Wed, 03 May 2023 08:48:24 -0400 Received: from lists.gnu.org ([209.51.188.17]:51588) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pu8lb-00022k-7T for submit@debbugs.gnu.org; Wed, 03 May 2023 05:27:22 -0400 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 1pu8la-0006TN-N4 for bug-coreutils@gnu.org; Wed, 03 May 2023 05:27:18 -0400 Received: from mail-pl1-x629.google.com ([2607:f8b0:4864:20::629]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pu8lY-00059a-0d for bug-coreutils@gnu.org; Wed, 03 May 2023 05:27:18 -0400 Received: by mail-pl1-x629.google.com with SMTP id d9443c01a7336-1aad5245632so31328485ad.3 for ; Wed, 03 May 2023 02:27:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=schapiro.org; s=google; t=1683106033; x=1685698033; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=M2lBpHFsIgfhXahWE5xYuczlKn/alW0W38TYjURp3sM=; b=Q6R46P4leahXzd1IrQHpmR2nOIQtA91c1LEbJ6tRmDpsCwSXh+yNyihl4o0ihNU7HL +1TU1xIxCNeMQeNTG0L6Ny+S64DuyVdfusLO1ToVQ0EXng+XTl/cGxojYC2luh/vgpww EPknnXD+Nf2XVS44K7jiZcvDSf3eK/1mMPtv4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683106033; x=1685698033; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=M2lBpHFsIgfhXahWE5xYuczlKn/alW0W38TYjURp3sM=; b=Sp9MWUddilHJ0zqSfcceCebIf1qsREwUctVoEpN3J0GaNAi0qzv9Yok4KUkr959b4Z 6koKMDYXHx/z7ZtY/Dt32ZOzVQWfMjf99AVMPBBJnLnjMPjgecYJIJHzgS3KUyOvQ1yb 2FWB8IUwQPTRHjAb8Q5R4TghwruRp4RwsVRhtSUDY1YnYq2piohin81+/GULd6jDW/vc 3C5i6KvPrdCw6Q5D6hdG7agsDvEFxnslj4Ig1hCbzsWUzZCZPcjii7dWvwsna0Yknudo Qb+DdaEIIkAt0DMb8l0IkxaW/JSk0aQB/WJr4JYzIyN5I0uGhZjKL/dYt9HnBRI5ua43 Shlw== X-Gm-Message-State: AC+VfDx0+iFazYq3g0G0hfYUjwycidnvb1ex3LS+poz9io0wir5+BZht 64OkXsuNHFlTvOaK1KRebP+5UWpcPx68gWzNC7hKMpeE+HUafYJxoHHlLQ== X-Google-Smtp-Source: ACHHUZ4NeyP8kueEzQ5TZZlfYS4FNxibsYup0YiSGPrYsKTE0jGm5GqzKGZ1euDEkMRHN4okBtNYBCj6QX28R2RvKJU= X-Received: by 2002:a17:902:ab8c:b0:1a9:9d00:8c92 with SMTP id f12-20020a170902ab8c00b001a99d008c92mr1366582plr.42.1683106033094; Wed, 03 May 2023 02:27:13 -0700 (PDT) MIME-Version: 1.0 From: Schlomo Schapiro Date: Wed, 3 May 2023 11:27:01 +0200 Message-ID: Content-Type: multipart/alternative; boundary="00000000000038ec8405fac6a96d" Received-SPF: pass client-ip=2607:f8b0:4864:20::629; envelope-from=schlomo@schapiro.org; helo=mail-pl1-x629.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-Mailman-Approved-At: Wed, 03 May 2023 08:48:18 -0400 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.4 (--) --00000000000038ec8405fac6a96d Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello, I'm a maintainer of the Relax-and-Recover (https://relax-and-recover.org/) Open Source project and think that I might have found a major regression in cp, starting somewhere with version 9. Please see https://bugs.launchpad.net/ubuntu/+source/coreutils/+bug/2017414 and https://github.com/rear/rear/issues/2972 for how I found out about this= . Problem: We use a cp call like the following to copy various files and directory into a destination path with preserving the structure: cp --verbose -t DESTINATION -L --preserve=3Dall --parents SOURCE... Over the last 10+ years that worked well on all Linux distros (ReaR is build for and tested on nearly all distros), but I recently found out that on Ubuntu 23.04 this fails like this: # rm -Rf /tmp/f && mkdir /tmp/f && cp --verbose -t /tmp/f -L --preserve=3Da= ll --parents /etc/apt/sources.list && echo yes ; ls -lR /tmp/f/etc/apt/sources.list /etc/apt/sources.list /etc -> /tmp/f/etc /etc/apt -> /tmp/f/etc/apt '/etc/apt/sources.list' -> '/tmp/f/etc/apt/sources.list' cp: =E2=80=98etc/apt=E2=80=99: No such file or directory -rw-r--r-- 1 root root 2437 Apr 23 09:53 /etc/apt/sources.list -rw-r--r-- 1 root root 2437 Apr 23 09:53 /tmp/f/etc/apt/sources.list # Ubuntu 23.04 uses cp (GNU coreutils) 9.1 On Ubuntu 22.04 there is cp (GNU coreutils) 8.32 and the same example works as expected: # rm -Rf /tmp/f && mkdir /tmp/f && cp --verbose -t /tmp/f -L --preserve=3Da= ll --parents /etc/apt/sources.list && echo yes ; ls -lR /tmp/f/etc/apt/sources.list /etc/apt/sources.list /etc -> /tmp/f/etc /etc/apt -> /tmp/f/etc/apt '/etc/apt/sources.list' -> '/tmp/f/etc/apt/sources.list' yes -rw-r--r-- 1 root root 263 M=C3=A4r 26 15:20 /etc/apt/sources.list -rw-r--r-- 1 root root 263 M=C3=A4r 26 15:20 /tmp/f/etc/apt/sources.list # BTW, I checked also on many other distros that ReaR supports and all distros with cp version 9.1 fail in the same way. Can you please have a look and advise how to proceed? We at the ReaR project can of course change our code to use tar for example, but I won't be surprised if other users will also meet this changed behaviour and maybe it is indeed a bug. Kind regards, Schlomo Schapiro --00000000000038ec8405fac6a96d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hel= lo,

<= div class=3D"gmail_default" style=3D"font-size:small">I'm a maintainer = of the Relax-and-Recover (https:= //relax-and-recover.org/) Open Source project and think that I might ha= ve found a major regression in cp, starting somewhere with version 9.
=


Problem:

We use a cp call like the following to copy various files and direct= ory into a destination path with preserving the structure:

cp --verbose -t DESTINATION -L --preserv= e=3Dall --parents SOURCE...

Over the last 10+ years that worked well on all Linux distros (ReaR = is build for and tested on nearly all distros), but I recently found out th= at on Ubuntu 23.04 this fails like this:

# rm -Rf /tmp/f && mkdir /tmp/f && cp --verbo= se -t /tmp/f -L --preserve=3Dall --parents /etc/apt/sources.list = && echo yes ; ls -lR /tmp/f/etc/apt/sources.list /et= c/apt/sources.list
/etc -> /tmp/f/etc
/etc/apt -> /tmp/f/et= c/apt
'/etc/apt/sources.list' -> '/tmp/f/etc/= apt/sources.list'
cp: =E2=80=98etc/apt=E2=80=99: No such file= or directory
-rw-r--r-- 1 root root 2437 Apr 23 09:53 /etc/apt/source= s.list
-rw-r--r-- 1 root root 2437 Apr 23 09:53 /tmp/f/etc/apt/sources.list
#

Ubuntu 23.04 uses=C2=A0cp (GNU coreutils) 9.1

On Ubuntu 22.04 there is=C2=A0cp (GNU coreu= tils) 8.32 and the same example works as expected:

# rm -Rf /tmp/f && mkdir /tmp/f &&= ; cp --verbose -t /tmp/f -L --preserve=3Dall --parents /etc/apt/sources.lis= t && echo yes ; ls -lR /tmp/f/etc/apt/sources.list /etc/apt/sources= .list
/etc -> /tmp/f/etc
/etc/apt -> /tmp/f/etc/apt
'/et= c/apt/sources.list' -> '/tmp/f/etc/apt/sources.list'
yes<= br>-rw-r--r-- 1 root root 263 M=C3=A4r 26 15:20 /etc/apt/sources.list
-r= w-r--r-- 1 root root 263 M=C3=A4r 26 15:20 /tmp/f/etc/apt/sources.list
#=

=
BTW, I checked also= =C2=A0on many other=C2=A0distros that=C2=A0ReaR supports and all distros wi= th cp version 9.1 fail in the same way.

Can you please have a look and advise how to proceed? We at = the ReaR project can of course change our code to use tar for example, but = I won't be surprised if other users will also meet this changed behavio= ur and maybe it is indeed a bug.

Kind regards,
Schlomo Schapiro
--00000000000038ec8405fac6a96d-- From unknown Tue Aug 19 02:59:31 2025 X-Loop: help-debbugs@gnu.org Subject: bug#63245: Potential regression: cp --preserve=mode or --preserve=all fails to copy files from subdirectory Resent-From: =?UTF-8?Q?P=C3=A1draig?= Brady Original-Sender: "Debbugs-submit" Resent-CC: bug-coreutils@gnu.org Resent-Date: Wed, 03 May 2023 16:41:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63245 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: Schlomo Schapiro , 63245@debbugs.gnu.org Received: via spool by 63245-submit@debbugs.gnu.org id=B63245.16831320105302 (code B ref 63245); Wed, 03 May 2023 16:41:02 +0000 Received: (at 63245) by debbugs.gnu.org; 3 May 2023 16:40:10 +0000 Received: from localhost ([127.0.0.1]:47575 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1puFWT-0001NP-Pe for submit@debbugs.gnu.org; Wed, 03 May 2023 12:40:10 -0400 Received: from mail-wr1-f54.google.com ([209.85.221.54]:50222) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1puFWP-0001Mg-Ab for 63245@debbugs.gnu.org; Wed, 03 May 2023 12:40:08 -0400 Received: by mail-wr1-f54.google.com with SMTP id ffacd0b85a97d-3062678861fso3152648f8f.0 for <63245@debbugs.gnu.org>; Wed, 03 May 2023 09:40:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1683131999; x=1685723999; h=in-reply-to:from:references:to:content-language:subject:user-agent :mime-version:date:message-id:sender:from:to:cc:subject:date :message-id:reply-to; bh=NUbH+DrDYUBGwq9nR47mJJRF9Dn2aSBNHP3qGoVRdXE=; b=LzeMW1gSA7tUGGl6C8ThyAKMWwcWVnQkBE699TrMsRrlXmJ4vMvvSr36h26oy1Q3wM wMyScByg7SgWiGLQIrVqOrpmSRRaLmlajSZVUOTBKiFMzDGj9dJQUulYclKlSoJ9cJj7 bmzbpMDfbAb2f1aVxw+pzOnPlQc1fdDODx1NSaLpNWMQ1VNpXjRsZ0qhO7gjv7Us0QI7 ekhO/M/QUHG5j965oPRg+Oy+maBP12XnmiLnl5oTr8rCK7SXKKHwJKwFnV/TrxAKuidV XzyTH7sVtgcBbZokPgfr2etvh61vsw8xkawqqM0DSoYHjtVyIjjqQzeeWL+AP9fqelWG AQgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683131999; x=1685723999; h=in-reply-to:from:references:to:content-language:subject:user-agent :mime-version:date:message-id:sender:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=NUbH+DrDYUBGwq9nR47mJJRF9Dn2aSBNHP3qGoVRdXE=; b=c5kUX2A0oK0Coo6g3u0VsBA02HUKK514l+lsI+kb408rVqRh6lPmTQEaPhOFKv1BkE OvhR9AjsuJ9ndbBfyOYHasKeQrQUIfjNCw3qQt/EGBYRbDuKdYiGqHMOjZvpK2TVt8mq cqikeO6lGM7l8MT5kLczzpZ8YUGxCevzC3eiyOZSkkXv5WwHBYTzze6E2c1qAxDqPeDf /F5S96hOA72PYbjIMueYqa7mu7GhX99Wvp2o/7NShwHiLyEbTIdCob/Cr6tH1B43QXy3 kRAkWb1Yd18/QyiTGqMCFyUeCQYTLx1FDtvMeME0Yr7WMZFet6ls6kkgUq57PWiraNHw Qliw== X-Gm-Message-State: AC+VfDzr0TIv+ehf3hXEPL4l1BRF5TbJ+xT7HF2BzeX5ZL0OtpDAaFXb TB5cgG154HWh42xTRto2nygXnrqn+9k= X-Google-Smtp-Source: ACHHUZ4BO2yswMx5nweDPLH2qMld87ywN/NglMI21tR/LhVdnp0FPLPMPgrrqXW/fnkSO3bMQhVWTA== X-Received: by 2002:a5d:4a86:0:b0:306:3286:69a2 with SMTP id o6-20020a5d4a86000000b00306328669a2mr552459wrq.48.1683131999317; Wed, 03 May 2023 09:39:59 -0700 (PDT) Received: from [192.168.1.9] (95-44-90-175-dynamic.agg2.lod.rsl-rtd.eircom.net. [95.44.90.175]) by smtp.googlemail.com with ESMTPSA id b14-20020a05600010ce00b0030627f58325sm10987462wrx.25.2023.05.03.09.39.58 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 03 May 2023 09:39:58 -0700 (PDT) Content-Type: multipart/mixed; boundary="------------FIbTs2Uy3xJ8oLaSkAP1W35h" Message-ID: <103477d8-86a2-0360-f6e6-3faa5fb266b2@draigBrady.com> Date: Wed, 3 May 2023 17:39:57 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Thunderbird/109.0 Content-Language: en-US References: From: =?UTF-8?Q?P=C3=A1draig?= Brady In-Reply-To: X-Spam-Score: -0.9 (/) 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.9 (-) This is a multi-part message in MIME format. --------------FIbTs2Uy3xJ8oLaSkAP1W35h Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 03/05/2023 10:27, Schlomo Schapiro wrote: > Hello, > > I'm a maintainer of the Relax-and-Recover (https://relax-and-recover.org/) > Open Source project and think that I might have found a major regression in > cp, starting somewhere with version 9. > > Please see https://bugs.launchpad.net/ubuntu/+source/coreutils/+bug/2017414 > and https://github.com/rear/rear/issues/2972 for how I found out about this. > > Problem: > > We use a cp call like the following to copy various files and directory > into a destination path with preserving the structure: > > cp --verbose -t DESTINATION -L --preserve=all --parents SOURCE... > > Over the last 10+ years that worked well on all Linux distros (ReaR is > build for and tested on nearly all distros), but I recently found out that > on Ubuntu 23.04 this fails like this: > > # rm -Rf /tmp/f && mkdir /tmp/f && cp --verbose -t /tmp/f -L --preserve=all > --parents /etc/apt/sources.list && echo yes ; ls -lR > /tmp/f/etc/apt/sources.list > /etc/apt/sources.list > /etc -> /tmp/f/etc > /etc/apt -> /tmp/f/etc/apt > '/etc/apt/sources.list' -> '/tmp/f/etc/apt/sources.list' > cp: ‘etc/apt’: No such file or directory > -rw-r--r-- 1 root root 2437 Apr 23 09:53 /etc/apt/sources.list > -rw-r--r-- 1 root root 2437 Apr 23 09:53 /tmp/f/etc/apt/sources.list > # > > Ubuntu 23.04 uses cp (GNU coreutils) 9.1 > > On Ubuntu 22.04 there is cp (GNU coreutils) 8.32 and the same example works > as expected: > > # rm -Rf /tmp/f && mkdir /tmp/f && cp --verbose -t /tmp/f -L --preserve=all > --parents /etc/apt/sources.list && echo yes ; ls -lR > /tmp/f/etc/apt/sources.list /etc/apt/sources.list > /etc -> /tmp/f/etc > /etc/apt -> /tmp/f/etc/apt > '/etc/apt/sources.list' -> '/tmp/f/etc/apt/sources.list' > yes > -rw-r--r-- 1 root root 263 Mär 26 15:20 /etc/apt/sources.list > -rw-r--r-- 1 root root 263 Mär 26 15:20 /tmp/f/etc/apt/sources.list > # > > BTW, I checked also on many other distros that ReaR supports and all > distros with cp version 9.1 fail in the same way. > > Can you please have a look and advise how to proceed? We at the ReaR > project can of course change our code to use tar for example, but I won't > be surprised if other users will also meet this changed behaviour and maybe > it is indeed a bug. Looks like a bug indeed. The attached patch should address this in coreutils. Any deployments of coreutils 9.1-9.3 inclusive would need to apply this. thanks, Pádraig --------------FIbTs2Uy3xJ8oLaSkAP1W35h Content-Type: text/x-patch; charset=UTF-8; name="cp-abs-parents.patch" Content-Disposition: attachment; filename="cp-abs-parents.patch" Content-Transfer-Encoding: base64 RnJvbSA4YWQ0YTQ4NmZlMDMyMDNlMDBmMzEyNjJjZDEwNmU1ODM4NWRhMGY2IE1vbiBTZXAg MTcgMDA6MDA6MDAgMjAwMQpGcm9tOiA9P1VURi04P3E/UD1DMz1BMWRyYWlnPTIwQnJhZHk/ PSA8UEBkcmFpZ0JyYWR5LmNvbT4KRGF0ZTogV2VkLCAzIE1heSAyMDIzIDE3OjAxOjM3ICsw MTAwClN1YmplY3Q6IFtQQVRDSF0gY3A6IC1wIC0tcGFyZW50czogZml4IGZhaWx1cmUgdG8g cHJlc2VydmUgcGVybWlzc2lvbnMgZm9yCiBhYnNvbHV0ZS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ICAgICAgY2hhciAqZnVsbF9hcmdfaW5fY29uY2F0 ID0gTlVMTDsKICAgICAgICAgICBjaGFyICphcmcgPSBmaWxlW2ldOwogCiAgICAgICAgICAg LyogVHJhaWxpbmcgc2xhc2hlcyBhcmUgbWVhbmluZ2Z1bCAoaS5lLiwgbWF5YmUgd29ydGgg cHJlc2VydmluZykKQEAgLTcxOSw2ICs3MjQsNyBAQCBkb19jb3B5IChpbnQgbl9maWxlcywg Y2hhciAqKmZpbGUsIGNoYXIgY29uc3QgKnRhcmdldF9kaXJlY3RvcnksCiAgICAgICAgICAg ICAgICAgICAoeC0+dmVyYm9zZSA/ICIlcyAtPiAlc1xuIiA6IE5VTEwpLAogICAgICAgICAg ICAgICAgICAgJmF0dHJfbGlzdCwgJm5ld19kc3QsIHgpKTsKIAorICAgICAgICAgICAgICBm dWxsX2FyZ19pbl9jb25jYXQgPSBhcmdfaW5fY29uY2F0OwogICAgICAgICAgICAgICB3aGls ZSAoKmFyZ19pbl9jb25jYXQgPT0gJy8nKQogICAgICAgICAgICAgICAgIGFyZ19pbl9jb25j YXQrKzsKICAgICAgICAgICAgIH0KQEAgLTc0Nyw3ICs3NTMsNyBAQCBkb19jb3B5IChpbnQg bl9maWxlcywgY2hhciAqKmZpbGUsIGNoYXIgY29uc3QgKnRhcmdldF9kaXJlY3RvcnksCiAg ICAgICAgICAgICAgICAgICAgICAgICAgIG5ld19kc3QsIHgsICZjb3B5X2ludG9fc2VsZiwg TlVMTCk7CiAKICAgICAgICAgICAgICAgaWYgKHBhcmVudHNfb3B0aW9uKQotICAgICAgICAg ICAgICAgIG9rICY9IHJlX3Byb3RlY3QgKGRzdF9uYW1lLCB0YXJnZXRfZGlyZmQsIGFyZ19p bl9jb25jYXQsCisgICAgICAgICAgICAgICAgb2sgJj0gcmVfcHJvdGVjdCAoZHN0X25hbWUs IHRhcmdldF9kaXJmZCwgZnVsbF9hcmdfaW5fY29uY2F0LAogICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgIGF0dHJfbGlzdCwgeCk7CiAgICAgICAgICAgICB9CiAKZGlmZiAt LWdpdCBhL3Rlc3RzL2NwL2NwLXBhcmVudHMuc2ggYi90ZXN0cy9jcC9jcC1wYXJlbnRzLnNo CmluZGV4IDIwOTYzZWFjZS4uODRkYTI4YWU3IDEwMDc1NQotLS0gYS90ZXN0cy9jcC9jcC1w YXJlbnRzLnNoCisrKyBiL3Rlc3RzL2NwL2NwLXBhcmVudHMuc2gKQEAgLTY2LDQgKzY2LDEw IEBAIHA9JChscyAtbGQgZy9zeW0vYi9jfGN1dCAtYi0xMCk7IGNhc2UgJHAgaW4gZHJ3eHIt eHIteCk7OyAqKSBmYWlsPTE7OyBlc2FjCiBjcCAtLXBhcmVudHMgLS1uby1wcmVzZXJ2ZT1t b2RlIG5wL2IvZmlsZSBucF9kZXN0LyB8fCBmYWlsPTEKIHA9JChscyAtbGQgbnBfZGVzdC9u cHxjdXQgLWItMTApOyBjYXNlICRwIGluIGRyd3hyLXhyLXgpOzsgKikgZmFpbD0xOzsgZXNh YwogCisjIGNvcmV1dGlscyA5LjEtOS4zIGluY2x1c2l2ZSB3b3VsZCBmYWlsIHRvIGNvcHkg YWNscyBmb3IgYWJzb2x1dGUgZmlsZXMKK21rZGlyIGRlc3QgfHwgZnJhbWV3b3JrX2ZhaWx1 cmVfCitpZiB0ZXN0IC1mIC9iaW4vbHM7IHRoZW4KKyAgY3AgLXQgZGVzdCAtTCAtLXByZXNl cnZlPWFsbCAtLXBhcmVudHMgL2Jpbi9scyB8fCBmYWlsPTEKK2ZpCisKIEV4aXQgJGZhaWwK LS0gCjIuMjYuMgoK --------------FIbTs2Uy3xJ8oLaSkAP1W35h-- From unknown Tue Aug 19 02:59:31 2025 X-Loop: help-debbugs@gnu.org Subject: bug#63245: Potential regression: cp --preserve=mode or --preserve=all fails to copy files from subdirectory Resent-From: Schlomo Schapiro Original-Sender: "Debbugs-submit" Resent-CC: bug-coreutils@gnu.org Resent-Date: Wed, 03 May 2023 17:47:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63245 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: =?UTF-8?Q?P=C3=A1draig?= Brady Cc: 63245@debbugs.gnu.org Received: via spool by 63245-submit@debbugs.gnu.org id=B63245.168313597122874 (code B ref 63245); Wed, 03 May 2023 17:47:02 +0000 Received: (at 63245) by debbugs.gnu.org; 3 May 2023 17:46:11 +0000 Received: from localhost ([127.0.0.1]:47681 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1puGYM-0005wr-Na for submit@debbugs.gnu.org; Wed, 03 May 2023 13:46:11 -0400 Received: from mail-pf1-f171.google.com ([209.85.210.171]:56410) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1puGYH-0005vw-5r for 63245@debbugs.gnu.org; Wed, 03 May 2023 13:46:08 -0400 Received: by mail-pf1-f171.google.com with SMTP id d2e1a72fcca58-63b7b54642cso3996609b3a.0 for <63245@debbugs.gnu.org>; Wed, 03 May 2023 10:46:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=schapiro.org; s=google; t=1683135959; x=1685727959; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=e2T7EyGtgLyYCZMxazbJ46Cm/Ftqvu6ymSnnFrs5fTI=; b=VIk/wf8wABGNMNjzqQnNq/69pcHOoVM6yUJY6wmNm3avdsoNPS+Nclc0+yyyjGiEgL RofmwCGabUwIitYe1JasQ3/4uF2YrReuG0ygsqTLvhBwQsKaGumO2Q0NGefePRkb+jQn sEfqNhddym08G5FWGXjLFU0BtmrVHGTujz9lM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683135959; x=1685727959; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=e2T7EyGtgLyYCZMxazbJ46Cm/Ftqvu6ymSnnFrs5fTI=; b=DsJpb/QRYK+Fngw0AeB9VUt8SfDA3rasegZmR/qpH1OUKiSsXJabuh2wnuRI8XJVP+ o+oYKjfFkqY87ZZyEA9333aI4RAXm72sZXNrI8dxrAO4YwKGPr7QOazi6S43dnxhJt5F ZMBk4J8GPMhp8sfVy4ODYfHwDQczNhTNR2MdBF4pmbTwQOpXV/iy//l75ayTBaJzcHbe qTyGN1cW357YtL1BSygPuWLeZDbS6AQc/beeeWSDmRTWiEWjKPMP0y2pUocYMfDCrTtc AhOzhzwWPCZ3+8HvWUDGGvN8wvwHQfticm67Fw+i4TkLG8QNBFeHH7tcB+RTR2L6HJAx NDjg== X-Gm-Message-State: AC+VfDyzFdfwK+5mwejV9Qo9pDH4XHQhw4z+97EU3Q+c8Pw093y5yNiy MbcEv96fVBjdK3CtTYEub4ntaLOSMOJVep89MfmFfceiPREWXaebRHv0EA== X-Google-Smtp-Source: ACHHUZ7QSJO4q4YZBR7XlyZFH+KlF26CDgI9EOTevTEHMbq9ZEl156sxCH05nDCtMUV0zICpA/3b+pySzphK8KJR2gI= X-Received: by 2002:a05:6a00:2e0f:b0:63f:1037:cc24 with SMTP id fc15-20020a056a002e0f00b0063f1037cc24mr30119049pfb.32.1683135958638; Wed, 03 May 2023 10:45:58 -0700 (PDT) MIME-Version: 1.0 References: <103477d8-86a2-0360-f6e6-3faa5fb266b2@draigBrady.com> In-Reply-To: <103477d8-86a2-0360-f6e6-3faa5fb266b2@draigBrady.com> From: Schlomo Schapiro Date: Wed, 3 May 2023 19:45:47 +0200 Message-ID: Content-Type: multipart/alternative; boundary="000000000000ec72e205facda076" X-Spam-Score: 0.0 (/) 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 (-) --000000000000ec72e205facda076 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi P=C3=A1draig, Wow, nice! That was really quick! how would this patch get into the affected distros as a bugfix? Then it would actually help me as I can't ship a patched coreutils with ReaR. Kind regards, Schlomo On Wed, 3 May 2023 at 18:40, P=C3=A1draig Brady wrote: > On 03/05/2023 10:27, Schlomo Schapiro wrote: > > Hello, > > > > I'm a maintainer of the Relax-and-Recover ( > https://relax-and-recover.org/) > > Open Source project and think that I might have found a major regressio= n > in > > cp, starting somewhere with version 9. > > > > Please see > https://bugs.launchpad.net/ubuntu/+source/coreutils/+bug/2017414 > > and https://github.com/rear/rear/issues/2972 for how I found out about > this. > > > > Problem: > > > > We use a cp call like the following to copy various files and directory > > into a destination path with preserving the structure: > > > > cp --verbose -t DESTINATION -L --preserve=3Dall --parents SOURCE... > > > > Over the last 10+ years that worked well on all Linux distros (ReaR is > > build for and tested on nearly all distros), but I recently found out > that > > on Ubuntu 23.04 this fails like this: > > > > # rm -Rf /tmp/f && mkdir /tmp/f && cp --verbose -t /tmp/f -L > --preserve=3Dall > > --parents /etc/apt/sources.list && echo yes ; ls -lR > > /tmp/f/etc/apt/sources.list > > /etc/apt/sources.list > > /etc -> /tmp/f/etc > > /etc/apt -> /tmp/f/etc/apt > > '/etc/apt/sources.list' -> '/tmp/f/etc/apt/sources.list' > > cp: =E2=80=98etc/apt=E2=80=99: No such file or directory > > -rw-r--r-- 1 root root 2437 Apr 23 09:53 /etc/apt/sources.list > > -rw-r--r-- 1 root root 2437 Apr 23 09:53 /tmp/f/etc/apt/sources.list > > # > > > > Ubuntu 23.04 uses cp (GNU coreutils) 9.1 > > > > On Ubuntu 22.04 there is cp (GNU coreutils) 8.32 and the same example > works > > as expected: > > > > # rm -Rf /tmp/f && mkdir /tmp/f && cp --verbose -t /tmp/f -L > --preserve=3Dall > > --parents /etc/apt/sources.list && echo yes ; ls -lR > > /tmp/f/etc/apt/sources.list /etc/apt/sources.list > > /etc -> /tmp/f/etc > > /etc/apt -> /tmp/f/etc/apt > > '/etc/apt/sources.list' -> '/tmp/f/etc/apt/sources.list' > > yes > > -rw-r--r-- 1 root root 263 M=C3=A4r 26 15:20 /etc/apt/sources.list > > -rw-r--r-- 1 root root 263 M=C3=A4r 26 15:20 /tmp/f/etc/apt/sources.lis= t > > # > > > > BTW, I checked also on many other distros that ReaR supports and all > > distros with cp version 9.1 fail in the same way. > > > > Can you please have a look and advise how to proceed? We at the ReaR > > project can of course change our code to use tar for example, but I won= 't > > be surprised if other users will also meet this changed behaviour and > maybe > > it is indeed a bug. > > Looks like a bug indeed. > The attached patch should address this in coreutils. > Any deployments of coreutils 9.1-9.3 inclusive would need to apply this. > > thanks, > P=C3=A1draig > --000000000000ec72e205facda076 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi= =C2=A0P=C3=A1draig,

Wow, = nice! That was really quick!

how would this patch get into the affected distros as a bugfix? Then it= would actually help me as I can't ship a patched coreutils with ReaR.<= /div>

Kind regards,
Schlomo

On Wed, 3 May= 2023 at 18:40, P=C3=A1draig Brady <= P@draigbrady.com> wrote:
On 03/05/2023 10:27, Schlomo Schapiro wrote:
> Hello,
>
> I'm a maintainer of the Relax-and-Recover (https://relax-and-= recover.org/)
> Open Source project and think that I might have found a major regressi= on in
> cp, starting somewhere with version 9.
>
> Please see https://bugs.launchp= ad.net/ubuntu/+source/coreutils/+bug/2017414
> and https://github.com/rear/rear/issues/2972 for ho= w I found out about this.
>
> Problem:
>
> We use a cp call like the following to copy various files and director= y
> into a destination path with preserving the structure:
>
> cp --verbose -t DESTINATION -L --preserve=3Dall --parents SOURCE... >
> Over the last 10+ years that worked well on all Linux distros (ReaR is=
> build for and tested on nearly all distros), but I recently found out = that
> on Ubuntu 23.04 this fails like this:
>
> # rm -Rf /tmp/f && mkdir /tmp/f && cp --verbose -t /tm= p/f -L --preserve=3Dall
> --parents /etc/apt/sources.list && echo yes ; ls -lR
> /tmp/f/etc/apt/sources.list
> /etc/apt/sources.list
> /etc -> /tmp/f/etc
> /etc/apt -> /tmp/f/etc/apt
> '/etc/apt/sources.list' -> '/tmp/f/etc/apt/sources.list= '
> cp: =E2=80=98etc/apt=E2=80=99: No such file or directory
> -rw-r--r-- 1 root root 2437 Apr 23 09:53 /etc/apt/sources.list
> -rw-r--r-- 1 root root 2437 Apr 23 09:53 /tmp/f/etc/apt/sources.list > #
>
> Ubuntu 23.04 uses cp (GNU coreutils) 9.1
>
> On Ubuntu 22.04 there is cp (GNU coreutils) 8.32 and the same example = works
> as expected:
>
> # rm -Rf /tmp/f && mkdir /tmp/f && cp --verbose -t /tm= p/f -L --preserve=3Dall
> --parents /etc/apt/sources.list && echo yes ; ls -lR
> /tmp/f/etc/apt/sources.list /etc/apt/sources.list
> /etc -> /tmp/f/etc
> /etc/apt -> /tmp/f/etc/apt
> '/etc/apt/sources.list' -> '/tmp/f/etc/apt/sources.list= '
> yes
> -rw-r--r-- 1 root root 263 M=C3=A4r 26 15:20 /etc/apt/sources.list
> -rw-r--r-- 1 root root 263 M=C3=A4r 26 15:20 /tmp/f/etc/apt/sources.li= st
> #
>
> BTW, I checked also on many other distros that ReaR supports and all > distros with cp version 9.1 fail in the same way.
>
> Can you please have a look and advise how to proceed? We at the ReaR > project can of course change our code to use tar for example, but I wo= n't
> be surprised if other users will also meet this changed behaviour and = maybe
> it is indeed a bug.

Looks like a bug indeed.
The attached patch should address this in coreutils.
Any deployments of coreutils 9.1-9.3 inclusive would need to apply this.
thanks,
P=C3=A1draig
--000000000000ec72e205facda076-- From unknown Tue Aug 19 02:59:31 2025 X-Loop: help-debbugs@gnu.org Subject: bug#63245: Potential regression: cp --preserve=mode or --preserve=all fails to copy files from subdirectory Resent-From: =?UTF-8?Q?P=C3=A1draig?= Brady Original-Sender: "Debbugs-submit" Resent-CC: bug-coreutils@gnu.org Resent-Date: Wed, 03 May 2023 20:06:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63245 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: Schlomo Schapiro Cc: Michael Stone , 63245@debbugs.gnu.org Received: via spool by 63245-submit@debbugs.gnu.org id=B63245.16831443457134 (code B ref 63245); Wed, 03 May 2023 20:06:02 +0000 Received: (at 63245) by debbugs.gnu.org; 3 May 2023 20:05:45 +0000 Received: from localhost ([127.0.0.1]:47812 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1puIjR-0001qv-Aw for submit@debbugs.gnu.org; Wed, 03 May 2023 16:05:45 -0400 Received: from mail-wr1-f43.google.com ([209.85.221.43]:60507) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1puIj9-0001q9-7t for 63245@debbugs.gnu.org; Wed, 03 May 2023 16:05:28 -0400 Received: by mail-wr1-f43.google.com with SMTP id ffacd0b85a97d-2f939bea9ebso5630521f8f.0 for <63245@debbugs.gnu.org>; Wed, 03 May 2023 13:05:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1683144321; x=1685736321; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :sender:from:to:cc:subject:date:message-id:reply-to; bh=X8kPrjJH4+E7/XhwppMBN16Ae3LBmD01qjrVuBb6nAY=; b=UyN0vAEK9hcfTAbS3ayCyorVpY+khs9g+fGT6R6WFNEmsNP1pBMeJAAxsu1X/4p8V6 +nY4WBO3Xgd5EA6VHb3dPMiqzi6w+wPuRGYNKPA3xwKiIdFyCAI2wtsuJE1io2KpKo2g q7xFi1LZf30RqzRQIYQxwJS33t6hcq0U9h2E+cu+oWDMMrolkaSpmF7cy/3YmLDMFLV/ sMK6USjYLMJGzaTSbqmFgG48OVZfbA0EmMZDV9SaRMAhIgakF89vo+N+vFy47oePsqFx g5Qi4kUgsD1JlKPa/er+Z7TxNWMKcj/PBV6Jvnp1nxiFvgnY26dwKKXV+DbSRaCjCime AZCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683144321; x=1685736321; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :sender:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=X8kPrjJH4+E7/XhwppMBN16Ae3LBmD01qjrVuBb6nAY=; b=fQOfoAtFnem0FXapnecXVhommeb8CDAOcuqgT5i8y9QMDVSsknH5SQEa4L30Pw+YOq 98BNgKzZaqXuBKO9Nm4HosxNFoUNRMC52eA3W8Gkj93Qk/dEx/7vxpGKRDSQHQd5Sxgh ry9+4H/LWXjpwxDWEeXP8v3wfp9/Fw4MRNvD7T4niWzY1YwbBHgF22SZ8ULSNhdbewqI EKO+S9PaWpSJgdUpBn8ECdZQFD1zD8Zp4XwnZ9qPQ2f9Y+AMraTKvNRqxvGH6gXF40fV 6Z0yan9us64pZvYCqsZQFy+wNZT+wwRgPtLohbSSU7bZdxGxy107mqKdJmVk0JVS69gr Dvyg== X-Gm-Message-State: AC+VfDwYOa0pZDTDoSCRaPHHow7ZZeXvLrDwqcAAAhm7yUKUuDTowX8l F9bgSTAgO5KvlvM3qtv3ip4= X-Google-Smtp-Source: ACHHUZ67+KjEq6dHqJ2yGJTOSe60kBaPLBW4ENhMDSq3rifHZ2fm8Wtj3/N2Mvbe4m92uhArsj9UBQ== X-Received: by 2002:adf:fc06:0:b0:306:484e:e568 with SMTP id i6-20020adffc06000000b00306484ee568mr929713wrr.40.1683144321186; Wed, 03 May 2023 13:05:21 -0700 (PDT) Received: from [192.168.1.9] (95-44-90-175-dynamic.agg2.lod.rsl-rtd.eircom.net. [95.44.90.175]) by smtp.googlemail.com with ESMTPSA id q11-20020a5d574b000000b003049d7b9f4csm20663688wrw.32.2023.05.03.13.05.20 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 03 May 2023 13:05:20 -0700 (PDT) Message-ID: Date: Wed, 3 May 2023 21:05:19 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Thunderbird/109.0 Content-Language: en-US References: <103477d8-86a2-0360-f6e6-3faa5fb266b2@draigBrady.com> From: =?UTF-8?Q?P=C3=A1draig?= Brady In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Score: -0.9 (/) 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.9 (-) On 03/05/2023 18:45, Schlomo Schapiro wrote: > Hi Pádraig, > > Wow, nice! That was really quick! > > how would this patch get into the affected distros as a bugfix? Then it would actually help me as I can't ship a patched coreutils with ReaR. I expect the process would be something like: 1. merge this change to upstream coreutils (probably tomorrow). 2. apply this change to debian bookworm I'd also apply this related patch to bookworm: https://github.com/coreutils/coreutils/commit/b54da709a.patch 3. propagate those changes to ubuntu lunar cheers, Pádraig From unknown Tue Aug 19 02:59:31 2025 X-Loop: help-debbugs@gnu.org Subject: bug#63245: Potential regression: cp --preserve=mode or --preserve=all fails to copy files from subdirectory Resent-From: Schlomo Schapiro Original-Sender: "Debbugs-submit" Resent-CC: bug-coreutils@gnu.org Resent-Date: Thu, 04 May 2023 06:28:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63245 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: =?UTF-8?Q?P=C3=A1draig?= Brady Cc: Michael Stone , 63245@debbugs.gnu.org Received: via spool by 63245-submit@debbugs.gnu.org id=B63245.168318167021956 (code B ref 63245); Thu, 04 May 2023 06:28:01 +0000 Received: (at 63245) by debbugs.gnu.org; 4 May 2023 06:27:50 +0000 Received: from localhost ([127.0.0.1]:48259 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1puSRS-0005i4-1u for submit@debbugs.gnu.org; Thu, 04 May 2023 02:27:50 -0400 Received: from mail-pf1-f176.google.com ([209.85.210.176]:53492) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1puSRP-0005hq-WC for 63245@debbugs.gnu.org; Thu, 04 May 2023 02:27:49 -0400 Received: by mail-pf1-f176.google.com with SMTP id d2e1a72fcca58-63b4bf2d74aso112819b3a.2 for <63245@debbugs.gnu.org>; Wed, 03 May 2023 23:27:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=schapiro.org; s=google; t=1683181662; x=1685773662; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=oxeIH6uL4zsV503vV6ftJAkjvWb7qJxGtTEn69XM9IQ=; b=OdpQU2TZVaIgEUqBxS5cJ7mbcq9QQliM0XMBkUzvwQl8QbtyA3S60TSHf/qSFByz/u a1A298BeU4hk8yf1daoYUBZEiGJkQ4uckJrRLlzOd9639ugAquDeOFxPq+OPWMK21bG3 RzqZqcNUaXbDl5fQe49u/sOPuSGSFUuylMMS0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683181662; x=1685773662; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=oxeIH6uL4zsV503vV6ftJAkjvWb7qJxGtTEn69XM9IQ=; b=S0Jkd1JEKddd4nY1owJo0PRQ7yv3QM6BRrkloUrPR8idVmLb5CViDFi54+ymY0IFcS Lqo59dkM0vak3wGngJ67PWo5IthSVMABThJTfpxi1LLaQ10B1cKu+cBW9f42a4g6ILqg /XCuQ2YmrwysgrVHe1sS6o+9kD4cEIun2WUG5jPFM3VqVuM6yrK8S4QXiYGnCT/4dMFV N/dTL7a59nwA5wQW6euk+vsngpmAPJEf8A7QCamvK2XM4JJnLkCB8psE989fUfCflLG3 t8B2MMKADuEGMBvUT/FnxH18UJ2cH2qMDUleZCM/OCsaMiwnxJCR8zJgpp4tboUw8Qzv PDVg== X-Gm-Message-State: AC+VfDwbb/s8bUYc7WqpVchm8qxhfVz4dCr65TmwMJ8CtQ7Jd/FNvmYm kijiJkJ60DIhHF1p0sXYlX5pNQMwqbGvtikdXLa2ZA== X-Google-Smtp-Source: ACHHUZ7yT3lPLQxi90GxBewNpJYXI10XawIMgywn+r/3mFXCAL7Cqk/uxirBaNaHQO6HICM2YLwEi0m7hF2ryh4PX7U= X-Received: by 2002:a05:6a00:150e:b0:63b:6933:a328 with SMTP id q14-20020a056a00150e00b0063b6933a328mr1353667pfu.28.1683181660744; Wed, 03 May 2023 23:27:40 -0700 (PDT) MIME-Version: 1.0 References: <103477d8-86a2-0360-f6e6-3faa5fb266b2@draigBrady.com> In-Reply-To: From: Schlomo Schapiro Date: Thu, 4 May 2023 08:27:30 +0200 Message-ID: Content-Type: multipart/alternative; boundary="000000000000fb482105fad844c8" X-Spam-Score: 0.0 (/) 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 (-) --000000000000fb482105fad844c8 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi P=C3=A1draig, thank you, that will not yet fix the problem in the older distros? What about the RPM world with Fedora/RHEL and Archlinux? As far as I can tell all cp version 9.x are affected by this. Kind regards, Schlomo On Wed, 3 May 2023 at 22:05, P=C3=A1draig Brady wrote: > On 03/05/2023 18:45, Schlomo Schapiro wrote: > > Hi P=C3=A1draig, > > > > Wow, nice! That was really quick! > > > > how would this patch get into the affected distros as a bugfix? Then it > would actually help me as I can't ship a patched coreutils with ReaR. > > I expect the process would be something like: > > 1. merge this change to upstream coreutils (probably tomorrow). > 2. apply this change to debian bookworm > I'd also apply this related patch to bookworm: > https://github.com/coreutils/coreutils/commit/b54da709a.patch > 3. propagate those changes to ubuntu lunar > > cheers, > P=C3=A1draig > --000000000000fb482105fad844c8 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi = P=C3=A1draig,
<= br>
thank you, = that will not yet fix the problem in the older distros? What about the RPM = world with Fedora/RHEL and Archlinux? As far as I can tell all cp version 9= .x are affected by this.

= Kind regards,
S= chlomo

On Wed, 3 May 2023 at 22:05, P=C3=A1draig Brady <P@draigbrady.com> wrote:
On 03/05/2023 18:45, Schlomo Schap= iro wrote:
> Hi=C2=A0P=C3=A1draig,
>
> Wow, nice! That was really quick!
>
> how would this patch get into the affected distros as a bugfix? Then i= t would actually help me as I can't ship a patched coreutils with ReaR.=

I expect the process would be something like:

1. merge this change to upstream coreutils (probably tomorrow).
2. apply this change to debian bookworm
=C2=A0 =C2=A0 I'd also apply this related patch to bookworm:
=C2=A0 =C2=A0 https://github.com/coreut= ils/coreutils/commit/b54da709a.patch
3. propagate those changes to ubuntu lunar

cheers,
P=C3=A1draig
--000000000000fb482105fad844c8-- From unknown Tue Aug 19 02:59:31 2025 X-Loop: help-debbugs@gnu.org Subject: bug#63245: Potential regression: cp --preserve=mode or --preserve=all fails to copy files from subdirectory Resent-From: =?UTF-8?Q?P=C3=A1draig?= Brady Original-Sender: "Debbugs-submit" Resent-CC: bug-coreutils@gnu.org Resent-Date: Thu, 04 May 2023 11:29:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63245 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: Schlomo Schapiro Cc: Michael Stone , 63245@debbugs.gnu.org Received: via spool by 63245-submit@debbugs.gnu.org id=B63245.168319968424238 (code B ref 63245); Thu, 04 May 2023 11:29:01 +0000 Received: (at 63245) by debbugs.gnu.org; 4 May 2023 11:28:04 +0000 Received: from localhost ([127.0.0.1]:48737 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1puX7z-0006Ir-NJ for submit@debbugs.gnu.org; Thu, 04 May 2023 07:28:03 -0400 Received: from mail-wr1-f42.google.com ([209.85.221.42]:51315) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1puX7x-0006IM-4g for 63245@debbugs.gnu.org; Thu, 04 May 2023 07:28:02 -0400 Received: by mail-wr1-f42.google.com with SMTP id ffacd0b85a97d-2f7db354092so212336f8f.2 for <63245@debbugs.gnu.org>; Thu, 04 May 2023 04:28:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1683199675; x=1685791675; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :sender:from:to:cc:subject:date:message-id:reply-to; bh=mhqi+dnL+eI1hXN0uwZj5rMAiwjSnRb4Q2HkuJAObAo=; b=qNZvRQeLAD3go6HMBGgc9OjEZ6dRlIRGQOH4oiqwpNu3bsQLB1ghXG1HgnPR9Jy5JW FigQLJat2/j+REfic3SzV9Ama+/mKDKGvIDvyIjfGLH0Xq4LrNQXno7EbiG6vvLgb5KG CKeC3nlPugvtoeeTO/4X1PdcqlKupNN4BQl9kcWQsm+iVEDmXTxyDFeALFL8yUit3EQo 4zM25kHfCzfONwbDZ4qDzfJU9VVTKZgnr45xFxgIrYLv3s9OKdcEHievaZYAR8Dx0XJz UZIPtW0hbDm7clNYQDXyEKYvWS2hfoWmqVhqI0ROgRanV13NnhfUgR5QIy6rqsGLG6ZJ 9K2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683199675; x=1685791675; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :sender:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=mhqi+dnL+eI1hXN0uwZj5rMAiwjSnRb4Q2HkuJAObAo=; b=NQp51fnu+r/BOgoL+jGUdLzUVs5NbbHcIEQys5drTzDdMdZ6kUHr7DTp99MmG4hVRh nH4tIgWTha9sjUMI927ieAcF7GUnPTjByeZxueuQLr03rYboT8oadiYrKWCEkvKW+5Lm ppwuTgcpGzK0O/pSHIk48MOlM2XTa0TycMalCdVGoZUGZJGwNodoc7M16t5y9nLDXBfE mpDTow84Cb2kjkAM7ZleVNopAd5yUa4c7LBZnDlUINRF5rZjQmrjrksXpN5PUd5VQEbR eSktSSJJ617hqhvFFBjh8oiodueTqLa4GD8sy2HOpsIGssRn9ZqpdawoyhNPNQ/EFWfW SnaQ== X-Gm-Message-State: AC+VfDwZ1rnjzqY5Fh197tBl2nNvm/N9BOWdMHqogV8RnuR4egWrsimb 9Qr2qv2lwV/WuQLmcKyhugs= X-Google-Smtp-Source: ACHHUZ7Fp815OHc98HVxhBgLpIzTZ+9hyGQx5GfL06rJ5B2oRjl+1Yj1dIwniynxyBjr+kFQi/frNQ== X-Received: by 2002:a5d:4391:0:b0:306:8477:85d0 with SMTP id i17-20020a5d4391000000b00306847785d0mr1663200wrq.33.1683199675022; Thu, 04 May 2023 04:27:55 -0700 (PDT) Received: from [192.168.1.9] (95-44-90-175-dynamic.agg2.lod.rsl-rtd.eircom.net. [95.44.90.175]) by smtp.googlemail.com with ESMTPSA id x2-20020a5d60c2000000b00306c5900c10sm1684334wrt.9.2023.05.04.04.27.54 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 04 May 2023 04:27:54 -0700 (PDT) Message-ID: <3dc14250-c013-2fc8-0d3a-442a9baf0dab@draigBrady.com> Date: Thu, 4 May 2023 12:27:53 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Thunderbird/109.0 Content-Language: en-US References: <103477d8-86a2-0360-f6e6-3faa5fb266b2@draigBrady.com> From: =?UTF-8?Q?P=C3=A1draig?= Brady In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Score: -0.9 (/) 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.9 (-) On 04/05/2023 07:27, Schlomo Schapiro wrote: > Hi Pádraig, > > thank you, that will not yet fix the problem in the older distros? What > about the RPM world with Fedora/RHEL and Archlinux? As far as I can tell > all cp version 9.x are affected by this. I'll handle the Fedora 37/38 fixes. RHEL/Centos and current Archlinux are not affected AFAICS. cheers, Pádraig From unknown Tue Aug 19 02:59:31 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: Schlomo Schapiro Subject: bug#63245: closed (Re: bug#63245: Potential regression: cp --preserve=mode or --preserve=all fails to copy files from subdirectory) Message-ID: References: <9535bf5d-f794-13da-b53b-49d518e36b03@draigBrady.com> X-Gnu-PR-Message: they-closed 63245 X-Gnu-PR-Package: coreutils Reply-To: 63245@debbugs.gnu.org Date: Thu, 04 May 2023 22:30:03 +0000 Content-Type: multipart/mixed; boundary="----------=_1683239403-15314-1" This is a multi-part message in MIME format... ------------=_1683239403-15314-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #63245: Potential regression: cp --preserve=3Dmode or --preserve=3Dall fail= s to copy files from subdirectory which was filed against the coreutils package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 63245@debbugs.gnu.org. --=20 63245: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D63245 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1683239403-15314-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 63245-done) by debbugs.gnu.org; 4 May 2023 22:29:29 +0000 Received: from localhost ([127.0.0.1]:52289 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1puhS5-0003xQ-A5 for submit@debbugs.gnu.org; Thu, 04 May 2023 18:29:29 -0400 Received: from mail-wm1-f54.google.com ([209.85.128.54]:47282) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1puhRz-0003x4-Sw; Thu, 04 May 2023 18:29:27 -0400 Received: by mail-wm1-f54.google.com with SMTP id 5b1f17b1804b1-3f19ab99540so10848875e9.2; Thu, 04 May 2023 15:29:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1683239358; x=1685831358; h=content-transfer-encoding:in-reply-to:references:cc:to:from :content-language:subject:user-agent:mime-version:date:message-id :sender:from:to:cc:subject:date:message-id:reply-to; bh=fG6HHKalBVj80gExLpcA6HRfSs3KvhRh6o7KO/oz+0M=; b=iGhX9OnBO8DYfi43w5Hbyh5bDnETeCvTAzPQuu02lFzPivExtahMsKGlz/yfCT6bqL jftnBh4Ch8i0wSP9GaZdjN2vE7v2WlcaTaISWvYvySlvCMhP00DxddhquiFNP7/gtpik 3QcB9B8co+gPVXk8A/kxG3VIEw1Q78NvJmEXM8c4XXZAav70i2imQDpNdrR0ws8itk/1 ezJr9eexT2Ls1Xv8qyQZkX6kpxVcTw8x6WQSG2GvZzeXkT+VJSnTZiyCv6VLA9nt94W6 q8mOoJK+Mf1rsA/zJrAyMZ2LukgryAcSPc8HcEV8gKEKL3RbKzcmbqAwvm4vdNNe7vng /gkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683239358; x=1685831358; h=content-transfer-encoding:in-reply-to:references:cc:to:from :content-language:subject:user-agent:mime-version:date:message-id :sender:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=fG6HHKalBVj80gExLpcA6HRfSs3KvhRh6o7KO/oz+0M=; b=WXHYfJeWBcHVz6ApvBXUwX/6pWTgzgiUDCdIHJ5vhHftW3rILkvtvxM5Hqo66ZWB0x 6lQNwPp7UMnB5Buteuml+BSxLtsdIftMq4IjSOieEZVnfoM8SwUmhFSRyIVOM81D+HzW QSjeSQXu0sD+XtJ/j3DwzdJRdvu+qktqL1+p8qJ2ze2MHgU9uqELn1Ks9XHWKSgrHiUs rD6etzpiBhaogelQfDNcBfjvDGY4nc70ueE2gH3lvSZk5xXzvVFwirPI5M5e8HjGYxuD p7MPp3+cfQbZsNEPCEM0ZkO1JIchADh4OkxiVqY+RHigk3BscEGN60UeHckj5ebuPV3p wcNw== X-Gm-Message-State: AC+VfDxMDwncY3qJDvsh9oFKaQcXkiakbcW4+QJhaa/Hw4WJUSVM/m7l P87iGet3AyiRcTMjEyNs8hU= X-Google-Smtp-Source: ACHHUZ5nqK0dx0FOct9Vq1N03BI6+znI0fpItLIdxS6h0/gKOgm5X5sTxNnzJtd/Yoki14DIF62oUQ== X-Received: by 2002:a5d:458f:0:b0:306:287c:7106 with SMTP id p15-20020a5d458f000000b00306287c7106mr3322182wrq.54.1683239357762; Thu, 04 May 2023 15:29:17 -0700 (PDT) Received: from [192.168.1.9] (95-44-90-175-dynamic.agg2.lod.rsl-rtd.eircom.net. [95.44.90.175]) by smtp.googlemail.com with ESMTPSA id o23-20020a05600c511700b003f07ef4e3e0sm5025059wms.0.2023.05.04.15.29.17 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 04 May 2023 15:29:17 -0700 (PDT) Message-ID: <9535bf5d-f794-13da-b53b-49d518e36b03@draigBrady.com> Date: Thu, 4 May 2023 23:29:16 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Thunderbird/109.0 Subject: Re: bug#63245: Potential regression: cp --preserve=mode or --preserve=all fails to copy files from subdirectory Content-Language: en-US From: =?UTF-8?Q?P=C3=A1draig_Brady?= To: Schlomo Schapiro References: <103477d8-86a2-0360-f6e6-3faa5fb266b2@draigBrady.com> <3dc14250-c013-2fc8-0d3a-442a9baf0dab@draigBrady.com> In-Reply-To: <3dc14250-c013-2fc8-0d3a-442a9baf0dab@draigBrady.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Score: -0.9 (/) X-Debbugs-Envelope-To: 63245-done Cc: 63245-done@debbugs.gnu.org, Kamil Dudka , Michael Stone 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.9 (-) On 04/05/2023 12:27, Pádraig Brady wrote: > On 04/05/2023 07:27, Schlomo Schapiro wrote: >> Hi Pádraig, >> >> thank you, that will not yet fix the problem in the older distros? What >> about the RPM world with Fedora/RHEL and Archlinux? As far as I can tell >> all cp version 9.x are affected by this. > > I'll handle the Fedora 37/38 fixes. > RHEL/Centos and current Archlinux are not affected AFAICS. Fedora 37 and 38 updates are now pending (cc Kamil): https://bodhi.fedoraproject.org/updates/FEDORA-2023-65365355b3 https://bodhi.fedoraproject.org/updates/FEDORA-2023-4beb422aac The Fedora patches should also apply to the debian bookworm package, so I've opened bugs accordingly at: https://bugs.debian.org/1035530 https://bugs.debian.org/1035531 Schlomo, the second one is the one you're particularly interested in. Marking this bug as completed upstream. cheers, Pádraig ------------=_1683239403-15314-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 3 May 2023 12:48:24 +0000 Received: from localhost ([127.0.0.1]:45891 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1puBuB-0002cY-AL for submit@debbugs.gnu.org; Wed, 03 May 2023 08:48:24 -0400 Received: from lists.gnu.org ([209.51.188.17]:51588) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pu8lb-00022k-7T for submit@debbugs.gnu.org; Wed, 03 May 2023 05:27:22 -0400 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 1pu8la-0006TN-N4 for bug-coreutils@gnu.org; Wed, 03 May 2023 05:27:18 -0400 Received: from mail-pl1-x629.google.com ([2607:f8b0:4864:20::629]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pu8lY-00059a-0d for bug-coreutils@gnu.org; Wed, 03 May 2023 05:27:18 -0400 Received: by mail-pl1-x629.google.com with SMTP id d9443c01a7336-1aad5245632so31328485ad.3 for ; Wed, 03 May 2023 02:27:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=schapiro.org; s=google; t=1683106033; x=1685698033; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=M2lBpHFsIgfhXahWE5xYuczlKn/alW0W38TYjURp3sM=; b=Q6R46P4leahXzd1IrQHpmR2nOIQtA91c1LEbJ6tRmDpsCwSXh+yNyihl4o0ihNU7HL +1TU1xIxCNeMQeNTG0L6Ny+S64DuyVdfusLO1ToVQ0EXng+XTl/cGxojYC2luh/vgpww EPknnXD+Nf2XVS44K7jiZcvDSf3eK/1mMPtv4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683106033; x=1685698033; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=M2lBpHFsIgfhXahWE5xYuczlKn/alW0W38TYjURp3sM=; b=Sp9MWUddilHJ0zqSfcceCebIf1qsREwUctVoEpN3J0GaNAi0qzv9Yok4KUkr959b4Z 6koKMDYXHx/z7ZtY/Dt32ZOzVQWfMjf99AVMPBBJnLnjMPjgecYJIJHzgS3KUyOvQ1yb 2FWB8IUwQPTRHjAb8Q5R4TghwruRp4RwsVRhtSUDY1YnYq2piohin81+/GULd6jDW/vc 3C5i6KvPrdCw6Q5D6hdG7agsDvEFxnslj4Ig1hCbzsWUzZCZPcjii7dWvwsna0Yknudo Qb+DdaEIIkAt0DMb8l0IkxaW/JSk0aQB/WJr4JYzIyN5I0uGhZjKL/dYt9HnBRI5ua43 Shlw== X-Gm-Message-State: AC+VfDx0+iFazYq3g0G0hfYUjwycidnvb1ex3LS+poz9io0wir5+BZht 64OkXsuNHFlTvOaK1KRebP+5UWpcPx68gWzNC7hKMpeE+HUafYJxoHHlLQ== X-Google-Smtp-Source: ACHHUZ4NeyP8kueEzQ5TZZlfYS4FNxibsYup0YiSGPrYsKTE0jGm5GqzKGZ1euDEkMRHN4okBtNYBCj6QX28R2RvKJU= X-Received: by 2002:a17:902:ab8c:b0:1a9:9d00:8c92 with SMTP id f12-20020a170902ab8c00b001a99d008c92mr1366582plr.42.1683106033094; Wed, 03 May 2023 02:27:13 -0700 (PDT) MIME-Version: 1.0 From: Schlomo Schapiro Date: Wed, 3 May 2023 11:27:01 +0200 Message-ID: Subject: Potential regression: cp --preserve=mode or --preserve=all fails to copy files from subdirectory To: bug-coreutils@gnu.org Content-Type: multipart/alternative; boundary="00000000000038ec8405fac6a96d" Received-SPF: pass client-ip=2607:f8b0:4864:20::629; envelope-from=schlomo@schapiro.org; helo=mail-pl1-x629.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Wed, 03 May 2023 08:48:18 -0400 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.4 (--) --00000000000038ec8405fac6a96d Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello, I'm a maintainer of the Relax-and-Recover (https://relax-and-recover.org/) Open Source project and think that I might have found a major regression in cp, starting somewhere with version 9. Please see https://bugs.launchpad.net/ubuntu/+source/coreutils/+bug/2017414 and https://github.com/rear/rear/issues/2972 for how I found out about this= . Problem: We use a cp call like the following to copy various files and directory into a destination path with preserving the structure: cp --verbose -t DESTINATION -L --preserve=3Dall --parents SOURCE... Over the last 10+ years that worked well on all Linux distros (ReaR is build for and tested on nearly all distros), but I recently found out that on Ubuntu 23.04 this fails like this: # rm -Rf /tmp/f && mkdir /tmp/f && cp --verbose -t /tmp/f -L --preserve=3Da= ll --parents /etc/apt/sources.list && echo yes ; ls -lR /tmp/f/etc/apt/sources.list /etc/apt/sources.list /etc -> /tmp/f/etc /etc/apt -> /tmp/f/etc/apt '/etc/apt/sources.list' -> '/tmp/f/etc/apt/sources.list' cp: =E2=80=98etc/apt=E2=80=99: No such file or directory -rw-r--r-- 1 root root 2437 Apr 23 09:53 /etc/apt/sources.list -rw-r--r-- 1 root root 2437 Apr 23 09:53 /tmp/f/etc/apt/sources.list # Ubuntu 23.04 uses cp (GNU coreutils) 9.1 On Ubuntu 22.04 there is cp (GNU coreutils) 8.32 and the same example works as expected: # rm -Rf /tmp/f && mkdir /tmp/f && cp --verbose -t /tmp/f -L --preserve=3Da= ll --parents /etc/apt/sources.list && echo yes ; ls -lR /tmp/f/etc/apt/sources.list /etc/apt/sources.list /etc -> /tmp/f/etc /etc/apt -> /tmp/f/etc/apt '/etc/apt/sources.list' -> '/tmp/f/etc/apt/sources.list' yes -rw-r--r-- 1 root root 263 M=C3=A4r 26 15:20 /etc/apt/sources.list -rw-r--r-- 1 root root 263 M=C3=A4r 26 15:20 /tmp/f/etc/apt/sources.list # BTW, I checked also on many other distros that ReaR supports and all distros with cp version 9.1 fail in the same way. Can you please have a look and advise how to proceed? We at the ReaR project can of course change our code to use tar for example, but I won't be surprised if other users will also meet this changed behaviour and maybe it is indeed a bug. Kind regards, Schlomo Schapiro --00000000000038ec8405fac6a96d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hel= lo,

<= div class=3D"gmail_default" style=3D"font-size:small">I'm a maintainer = of the Relax-and-Recover (https:= //relax-and-recover.org/) Open Source project and think that I might ha= ve found a major regression in cp, starting somewhere with version 9.
=


Problem:

We use a cp call like the following to copy various files and direct= ory into a destination path with preserving the structure:

cp --verbose -t DESTINATION -L --preserv= e=3Dall --parents SOURCE...

Over the last 10+ years that worked well on all Linux distros (ReaR = is build for and tested on nearly all distros), but I recently found out th= at on Ubuntu 23.04 this fails like this:

# rm -Rf /tmp/f && mkdir /tmp/f && cp --verbo= se -t /tmp/f -L --preserve=3Dall --parents /etc/apt/sources.list = && echo yes ; ls -lR /tmp/f/etc/apt/sources.list /et= c/apt/sources.list
/etc -> /tmp/f/etc
/etc/apt -> /tmp/f/et= c/apt
'/etc/apt/sources.list' -> '/tmp/f/etc/= apt/sources.list'
cp: =E2=80=98etc/apt=E2=80=99: No such file= or directory
-rw-r--r-- 1 root root 2437 Apr 23 09:53 /etc/apt/source= s.list
-rw-r--r-- 1 root root 2437 Apr 23 09:53 /tmp/f/etc/apt/sources.list
#

Ubuntu 23.04 uses=C2=A0cp (GNU coreutils) 9.1

On Ubuntu 22.04 there is=C2=A0cp (GNU coreu= tils) 8.32 and the same example works as expected:

# rm -Rf /tmp/f && mkdir /tmp/f &&= ; cp --verbose -t /tmp/f -L --preserve=3Dall --parents /etc/apt/sources.lis= t && echo yes ; ls -lR /tmp/f/etc/apt/sources.list /etc/apt/sources= .list
/etc -> /tmp/f/etc
/etc/apt -> /tmp/f/etc/apt
'/et= c/apt/sources.list' -> '/tmp/f/etc/apt/sources.list'
yes<= br>-rw-r--r-- 1 root root 263 M=C3=A4r 26 15:20 /etc/apt/sources.list
-r= w-r--r-- 1 root root 263 M=C3=A4r 26 15:20 /tmp/f/etc/apt/sources.list
#=

=
BTW, I checked also= =C2=A0on many other=C2=A0distros that=C2=A0ReaR supports and all distros wi= th cp version 9.1 fail in the same way.

Can you please have a look and advise how to proceed? We at = the ReaR project can of course change our code to use tar for example, but = I won't be surprised if other users will also meet this changed behavio= ur and maybe it is indeed a bug.

Kind regards,
Schlomo Schapiro
--00000000000038ec8405fac6a96d-- ------------=_1683239403-15314-1-- From unknown Tue Aug 19 02:59:31 2025 X-Loop: help-debbugs@gnu.org Subject: bug#63245: Potential regression: cp --preserve=mode or --preserve=all fails to copy files from subdirectory Resent-From: Sam James Original-Sender: "Debbugs-submit" Resent-CC: bug-coreutils@gnu.org Resent-Date: Fri, 05 May 2023 01:41:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63245 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: =?UTF-8?Q?P=C3=A1draig?= Brady Cc: 63245-done@debbugs.gnu.org, kdudka@redhat.com, 63245@debbugs.gnu.org, schlomo@schapiro.org, mstone@debian.org X-Debbugs-Original-Cc: 63245-done@debbugs.gnu.org, Kamil Dudka , bug-coreutils@gnu.org, Schlomo Schapiro , Michael Stone Received: via spool by 63245-done@debbugs.gnu.org id=D63245.168325084515187 (code D ref 63245); Fri, 05 May 2023 01:41:01 +0000 Received: (at 63245-done) by debbugs.gnu.org; 5 May 2023 01:40:45 +0000 Received: from localhost ([127.0.0.1]:52485 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pukRB-0003wm-09 for submit@debbugs.gnu.org; Thu, 04 May 2023 21:40:45 -0400 Received: from woodpecker.gentoo.org ([140.211.166.183]:41004 helo=smtp.gentoo.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pukR8-0003wU-Ub for 63245-done@debbugs.gnu.org; Thu, 04 May 2023 21:40:43 -0400 References: <103477d8-86a2-0360-f6e6-3faa5fb266b2@draigBrady.com> <3dc14250-c013-2fc8-0d3a-442a9baf0dab@draigBrady.com> <9535bf5d-f794-13da-b53b-49d518e36b03@draigBrady.com> User-agent: mu4e 1.10.3; emacs 29.0.90 From: Sam James Date: Fri, 05 May 2023 02:39:04 +0100 In-reply-to: <9535bf5d-f794-13da-b53b-49d518e36b03@draigBrady.com> Message-ID: <87wn1na73j.fsf@gentoo.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -2.3 (--) 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 (---) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable P=C3=A1draig Brady writes: > On 04/05/2023 12:27, P=C3=A1draig Brady wrote: >> On 04/05/2023 07:27, Schlomo Schapiro wrote: >>> Hi P=C3=A1draig, >>> >>> thank you, that will not yet fix the problem in the older distros? What >>> about the RPM world with Fedora/RHEL and Archlinux? As far as I can tell >>> all cp version 9.x are affected by this. >> I'll handle the Fedora 37/38 fixes. >> RHEL/Centos and current Archlinux are not affected AFAICS. > > Fedora 37 and 38 updates are now pending (cc Kamil): > https://bodhi.fedoraproject.org/updates/FEDORA-2023-65365355b3 > https://bodhi.fedoraproject.org/updates/FEDORA-2023-4beb422aac > > The Fedora patches should also apply to the debian bookworm package, > so I've opened bugs accordingly at: > > https://bugs.debian.org/1035530 > https://bugs.debian.org/1035531 > > Schlomo, the second one is the one you're particularly interested in. This is relevant to coreutils-9.3, right? In that case, the only way I found out Gentoo was affected was by reading bug-coreutils by chance. It's not feasible for all package maintainers to read all bug trackers regularly for all software in their distributions. If it's worth filing bug reports in each distro for, it's either worth a new release, or at least an email to the distributions@lists.linux.dev mailing list. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iOUEARYKAI0WIQQlpruI3Zt2TGtVQcJzhAn1IN+RkAUCZFRekF8UgAAAAAAuAChp c3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0MjVB NkJCODhERDlCNzY0QzZCNTU0MUMyNzM4NDA5RjUyMERGOTE5MA8cc2FtQGdlbnRv by5vcmcACgkQc4QJ9SDfkZD1bQD9EuoW3YXE3CMVlimGNwx/kzwjcTY6t4KhHfLz a/T3PqQBAI2By5tNrx//vpEEhRNZptnhMQyxtVVKTXuIYeY7bh0A =lCvk -----END PGP SIGNATURE----- --=-=-=-- From unknown Tue Aug 19 02:59:31 2025 X-Loop: help-debbugs@gnu.org Subject: bug#63245: Potential regression: cp --preserve=mode or --preserve=all fails to copy files from subdirectory Resent-From: Kamil Dudka Original-Sender: "Debbugs-submit" Resent-CC: bug-coreutils@gnu.org Resent-Date: Fri, 05 May 2023 06:38:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63245 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: =?UTF-8?Q?P=C3=A1draig?= Brady Cc: 63245-done@debbugs.gnu.org, Schlomo Schapiro , Michael Stone Received: via spool by 63245-done@debbugs.gnu.org id=D63245.168326867931067 (code D ref 63245); Fri, 05 May 2023 06:38:03 +0000 Received: (at 63245-done) by debbugs.gnu.org; 5 May 2023 06:37:59 +0000 Received: from localhost ([127.0.0.1]:52997 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pup4o-000850-ML for submit@debbugs.gnu.org; Fri, 05 May 2023 02:37:59 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]:20356) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pup4m-00084p-Nl for 63245-done@debbugs.gnu.org; Fri, 05 May 2023 02:37:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1683268676; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=nn1JDknXm6amnXrcDAyd6dFHlnBTxgNnwzHZv+Gouto=; b=PDTUMQl/McUXdIyROSClwtRgKvbUckGbPN9gvC1RjpC0XPTfzq/n9L1XNDpbJH3d/Ie9sD vtNi5KBmdtYcxvxNTIgyg0oeb1JgYISpuRaCjnCbRgsNU2Hs6hn1w+TrQ4QJL/0WzGF5qZ N2Ao8bwpA7Z/yQX9ELC62uxJGL+oju4= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-669-MBdJEMTkN1qpiTiA2WP2Mw-1; Fri, 05 May 2023 02:37:52 -0400 X-MC-Unique: MBdJEMTkN1qpiTiA2WP2Mw-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 6161A280D582; Fri, 5 May 2023 06:37:52 +0000 (UTC) Received: from nbkamil.localnet (unknown [10.45.226.123]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 7FB6314171B6; Fri, 5 May 2023 06:37:51 +0000 (UTC) From: Kamil Dudka Date: Fri, 05 May 2023 08:37:50 +0200 Message-ID: <2078432.PYKUYFuaPT@nbkamil> In-Reply-To: <9535bf5d-f794-13da-b53b-49d518e36b03@draigBrady.com> References: <3dc14250-c013-2fc8-0d3a-442a9baf0dab@draigBrady.com> <9535bf5d-f794-13da-b53b-49d518e36b03@draigBrady.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.7 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-1" X-Spam-Score: -0.0 (/) 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 (-) On Friday, May 5, 2023 12:29:16 AM CEST P=E1draig Brady wrote: > On 04/05/2023 12:27, P=E1draig Brady wrote: > > On 04/05/2023 07:27, Schlomo Schapiro wrote: > >> Hi P=E1draig, > >> > >> thank you, that will not yet fix the problem in the older distros? Wha= t > >> about the RPM world with Fedora/RHEL and Archlinux? As far as I can te= ll > >> all cp version 9.x are affected by this. > >=20 > > I'll handle the Fedora 37/38 fixes. > > RHEL/Centos and current Archlinux are not affected AFAICS. >=20 > Fedora 37 and 38 updates are now pending (cc Kamil): > https://bodhi.fedoraproject.org/updates/FEDORA-2023-65365355b3 > https://bodhi.fedoraproject.org/updates/FEDORA-2023-4beb422aac Thank you for taking care of it, P=E1draig! Kamil > The Fedora patches should also apply to the debian bookworm package, > so I've opened bugs accordingly at: >=20 > https://bugs.debian.org/1035530 > https://bugs.debian.org/1035531 >=20 > Schlomo, the second one is the one you're particularly interested in. >=20 > Marking this bug as completed upstream. >=20 > cheers, > P=E1draig From unknown Tue Aug 19 02:59:31 2025 X-Loop: help-debbugs@gnu.org Subject: bug#63245: Potential regression: cp --preserve=mode or --preserve=all fails to copy files from subdirectory Resent-From: =?UTF-8?Q?P=C3=A1draig?= Brady Original-Sender: "Debbugs-submit" Resent-CC: bug-coreutils@gnu.org Resent-Date: Fri, 05 May 2023 08:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63245 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: Sam James Cc: 63245-done@debbugs.gnu.org, kdudka@redhat.com, schlomo@schapiro.org Received: via spool by 63245-done@debbugs.gnu.org id=D63245.168327634224336 (code D ref 63245); Fri, 05 May 2023 08:46:02 +0000 Received: (at 63245-done) by debbugs.gnu.org; 5 May 2023 08:45:42 +0000 Received: from localhost ([127.0.0.1]:53112 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pur4P-0006KR-Tr for submit@debbugs.gnu.org; Fri, 05 May 2023 04:45:42 -0400 Received: from mail-wr1-f48.google.com ([209.85.221.48]:45426) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pur4L-0006KA-KY for 63245-done@debbugs.gnu.org; Fri, 05 May 2023 04:45:41 -0400 Received: by mail-wr1-f48.google.com with SMTP id ffacd0b85a97d-3077d134028so258569f8f.3 for <63245-done@debbugs.gnu.org>; Fri, 05 May 2023 01:45:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1683276332; x=1685868332; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :sender:from:to:cc:subject:date:message-id:reply-to; bh=FcoswiikR0meG1fI1RE4dH015AvtXY1ot84BKro40dc=; b=Ly0JeJ7J1rg7YXSY7QK4mT9Mo+D21GLA7kLfaLZCqS82A6BhaI4WgQuuy6yTaiyTID Gz5j9qif9WygXC1F5o7SGLrbK+CnZAYu1bV5cRtTLL90YPK/teuBpe4Yp+JaA4njeMQq q+diNR5Av6BolAhBK8aq+lVOLrodX9rPpRYc4qEGTO2ktKCwE+7S6hyBvd8HfiKYTjXL rUQjNtHZNLGvrrjT6FAwMwjAtm/28PZPTtzlIwiCCvTxJtbkaGzFlrcJAJlUOmrg2NJq tyh9lOt5zDoWoOefq/mZvp+H94p8s5UIiEYHJkrUcPFjfoOLxviJthOHO19mintQOOXQ 7lgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683276332; x=1685868332; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :sender:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=FcoswiikR0meG1fI1RE4dH015AvtXY1ot84BKro40dc=; b=Uk9Yx1/mMzokbptGe/xOelFTJMDkMAMxmUzIQBe1hJucM1y5xGICum10Crvu4YEvVl moO3nHOpr8A2R1DL0iVIk7rS/77PDxDXiu322vUqFmphq/+Kzb1/NN4BUX2M2ZnnsY0O Oo2LPNFq/SccLpiqGJrVm3L7y9+xB6vn8TybuA49VPh/TyNb9NQ32G6EHYzmkB1HCXQ8 ePRoCu9zDZGukNJ1FTMQATkdaokY86ILfPXFw898cHGHmOaUqpsbNhoOnRT67GrUysbV sI9gRy3A0F5TOd7zenpZkvQWwPummVSicw3dYyq5o7cvFmkMkHohYbg3TMY9U7yIeQfX 9s/w== X-Gm-Message-State: AC+VfDxObFbRbnHBPU2SMbK5fZynRn+gJPLMdyMGHNGB8djnhlSC8F1j hnJIudtLmwyg1jUHgU9A46s= X-Google-Smtp-Source: ACHHUZ7R+QBcoMU/euaqQZE1ITxdPZRK/EyLyBfpzK8KU6mbILIBTZ1xbrJSKX8A2MwtssYJmYJAiw== X-Received: by 2002:a05:6000:192:b0:306:489b:3c6 with SMTP id p18-20020a056000019200b00306489b03c6mr777760wrx.58.1683276331600; Fri, 05 May 2023 01:45:31 -0700 (PDT) Received: from [192.168.1.9] (95-44-90-175-dynamic.agg2.lod.rsl-rtd.eircom.net. [95.44.90.175]) by smtp.googlemail.com with ESMTPSA id e3-20020adff343000000b002fefe2edb72sm1686356wrp.17.2023.05.05.01.45.30 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 05 May 2023 01:45:31 -0700 (PDT) Message-ID: Date: Fri, 5 May 2023 09:45:30 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Thunderbird/109.0 Content-Language: en-US References: <103477d8-86a2-0360-f6e6-3faa5fb266b2@draigBrady.com> <3dc14250-c013-2fc8-0d3a-442a9baf0dab@draigBrady.com> <9535bf5d-f794-13da-b53b-49d518e36b03@draigBrady.com> <87wn1na73j.fsf@gentoo.org> From: =?UTF-8?Q?P=C3=A1draig?= Brady In-Reply-To: <87wn1na73j.fsf@gentoo.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Score: -0.9 (/) 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.9 (-) On 05/05/2023 02:39, Sam James wrote: > > Pádraig Brady writes: > >> On 04/05/2023 12:27, Pádraig Brady wrote: >>> On 04/05/2023 07:27, Schlomo Schapiro wrote: >>>> Hi Pádraig, >>>> >>>> thank you, that will not yet fix the problem in the older distros? What >>>> about the RPM world with Fedora/RHEL and Archlinux? As far as I can tell >>>> all cp version 9.x are affected by this. >>> I'll handle the Fedora 37/38 fixes. >>> RHEL/Centos and current Archlinux are not affected AFAICS. >> >> Fedora 37 and 38 updates are now pending (cc Kamil): >> https://bodhi.fedoraproject.org/updates/FEDORA-2023-65365355b3 >> https://bodhi.fedoraproject.org/updates/FEDORA-2023-4beb422aac >> >> The Fedora patches should also apply to the debian bookworm package, >> so I've opened bugs accordingly at: >> >> https://bugs.debian.org/1035530 >> https://bugs.debian.org/1035531 >> >> Schlomo, the second one is the one you're particularly interested in. > > This is relevant to coreutils-9.3, right? Right. Specifically only this bug applies to 9.3. I.e.: https://github.com/coreutils/coreutils/commit/c6b1fe434 > In that case, the only way > I found out Gentoo was affected was by reading bug-coreutils by chance. > > It's not feasible for all package maintainers to read all bug trackers > regularly for all software in their distributions. > > If it's worth filing bug reports in each distro for, it's either worth > a new release Right. I didn't inform distros that generally go with the latest coreutils (including Fedora rawhide), as I was planning to do a 9.4 release soonish to address this (and other bugs), and so it would get picked up automatically. > or at least an email to the distributions@lists.linux.dev mailing list. TIL thanks! Pádraig From unknown Tue Aug 19 02:59:31 2025 X-Loop: help-debbugs@gnu.org Subject: bug#63245: Potential regression: cp --preserve=mode or --preserve=all fails to copy files from subdirectory Resent-From: Paul Eggert Original-Sender: "Debbugs-submit" Resent-CC: bug-coreutils@gnu.org Resent-Date: Fri, 05 May 2023 18:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63245 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: =?UTF-8?Q?P=C3=A1draig?= Brady , 63245@debbugs.gnu.org Cc: Schlomo Schapiro Received: via spool by 63245-submit@debbugs.gnu.org id=B63245.168331025310048 (code B ref 63245); Fri, 05 May 2023 18:11:02 +0000 Received: (at 63245) by debbugs.gnu.org; 5 May 2023 18:10:53 +0000 Received: from localhost ([127.0.0.1]:57449 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1puztM-0002c0-Kl for submit@debbugs.gnu.org; Fri, 05 May 2023 14:10:53 -0400 Received: from mail.cs.ucla.edu ([131.179.128.66]:34120) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1puztJ-0002bk-Tx for 63245@debbugs.gnu.org; Fri, 05 May 2023 14:10:51 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.cs.ucla.edu (Postfix) with ESMTP id 7477B3C097AFD; Fri, 5 May 2023 11:10:43 -0700 (PDT) Received: from mail.cs.ucla.edu ([127.0.0.1]) by localhost (mail.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id UAzDl2boDvYe; Fri, 5 May 2023 11:10:43 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by mail.cs.ucla.edu (Postfix) with ESMTP id E440B3C097AFF; Fri, 5 May 2023 11:10:42 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.cs.ucla.edu E440B3C097AFF DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cs.ucla.edu; s=9D0B346E-2AEB-11ED-9476-E14B719DCE6C; t=1683310242; bh=Jjn13v+23jrsx9xiy3rNPRgf9kXnAnKiDYdtyCVe5oI=; h=Message-ID:Date:MIME-Version:To:From; b=DTXJDWHU4NFe0pRlawAonhR9XMpvlRHg73fWKjPCA0NvFAaH5yA9ifRDm5/UJ8zET ZkeFMIAcEebE7gwwgZMytoHaRUfYqKKet+bfuwyLoHUqP2qYEoLcVuCD0mWn5t6Ejy se2nBJKVJz68/aA/9TEgx91dqjUDmIMeLBboY4LWDQOYyrB/GTJVkQGiyHqy2ZgGKc yc4QIJiWi/jp/pssdpayZVPM+nrCtoVySCorRPHyZIfQ/5fpyYwBwydX+rDUBc7V8t aWdSkF+3LekIQjzpT+K19MvXNhKfIu4wIj/J20082n89c79E+ihrGojginCX7POAjF Ukn6ZQsOIIxuA== X-Virus-Scanned: amavisd-new at mail.cs.ucla.edu Received: from mail.cs.ucla.edu ([127.0.0.1]) by localhost (mail.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id FNyh7Sj_b6pg; Fri, 5 May 2023 11:10:42 -0700 (PDT) Received: from [192.168.1.9] (cpe-172-91-119-151.socal.res.rr.com [172.91.119.151]) by mail.cs.ucla.edu (Postfix) with ESMTPSA id BBDC53C097AFD; Fri, 5 May 2023 11:10:42 -0700 (PDT) Content-Type: multipart/mixed; boundary="------------oxGYiTW9QV7F5GDyQtXh9F6n" Message-ID: Date: Fri, 5 May 2023 11:10:41 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 References: <103477d8-86a2-0360-f6e6-3faa5fb266b2@draigBrady.com> Content-Language: en-US From: Paul Eggert Organization: UCLA Computer Science Department In-Reply-To: <103477d8-86a2-0360-f6e6-3faa5fb266b2@draigBrady.com> X-Spam-Score: -1.1 (-) 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 (--) This is a multi-part message in MIME format. --------------oxGYiTW9QV7F5GDyQtXh9F6n Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable On 2023-05-03 09:39, P=C3=A1draig Brady wrote: > The attached patch should address this in coreutils. Thanks for fixing that. This area of the code is confusing, and I=20 attempted to simplify/clarify slightly by installing the attached=20 cleanup patch. This shouldn't affect behavior. --------------oxGYiTW9QV7F5GDyQtXh9F6n Content-Type: text/x-patch; charset=UTF-8; name="0001-cp-p-parents-minor-cleanup-of-previous-patch.patch" Content-Disposition: attachment; filename="0001-cp-p-parents-minor-cleanup-of-previous-patch.patch" Content-Transfer-Encoding: base64 RnJvbSAzMDBhZjc4NjkxNjFhMzYxOGUyOGNiYWUzZGFlZmMyNWM4MjY3ZWZlIE1vbiBTZXAg MTcgMDA6MDA6MDAgMjAwMQpGcm9tOiBQYXVsIEVnZ2VydCA8ZWdnZXJ0QGNzLnVjbGEuZWR1 PgpEYXRlOiBGcmksIDUgTWF5IDIwMjMgMTE6MDM6MjUgLTA3MDAKU3ViamVjdDogW1BBVENI XSBjcDogLXAgLS1wY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AobGNob3du YXQgKGRzdF9kaXJmZCwgc3JjX25hbWUsIHAtPnN0LnN0X3VpZCwgcC0+c3Quc3RfZ2lkKSAh PSAwKQorICAgICAgICAgIGlmIChsY2hvd25hdCAoZHN0X2RpcmZkLCByZWxuYW1lLCBwLT5z dC5zdF91aWQsIHAtPnN0LnN0X2dpZCkKKyAgICAgICAgICAgICAgIT0gMCkKICAgICAgICAg ICAgIHsKICAgICAgICAgICAgICAgaWYgKCEgY2hvd25fZmFpbHVyZV9vayAoeCkpCiAgICAg ICAgICAgICAgICAgewpAQCAtMzQ1LDE4ICszNTEsMTggQEAgcmVfcHJvdGVjdCAoY2hhciBj b25zdCAqY29uc3RfZHN0X25hbWUsIGludCBkc3RfZGlyZmQsIGNoYXIgY29uc3QgKmRzdF9m dWxsbmFtZSwKICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgIC8qIEZhaWxpbmcg dG8gcHJlc2VydmUgb3duZXJzaGlwIGlzIE9LLiBTdGlsbCwgdHJ5IHRvIHByZXNlcnZlCiAg ICAgICAgICAgICAgICAgIHRoZSBncm91cCwgYnV0IGlnbm9yZSB0aGUgcG9zc2libGUgZXJy b3IuICovCi0gICAgICAgICAgICAgIGlnbm9yZV92YWx1ZSAobGNob3duYXQgKGRzdF9kaXJm ZCwgc3JjX25hbWUsIC0xLCBwLT5zdC5zdF9naWQpKTsKKyAgICAgICAgICAgICAgaWdub3Jl X3ZhbHVlIChsY2hvd25hdCAoZHN0X2RpcmZkLCByZWxuYW1lLCAtMSwgcC0+c3Quc3RfZ2lk KSk7CiAgICAgICAgICAgICB9CiAgICAgICAgIH0KIAogICAgICAgaWYgKHgtPnByZXNlcnZl X21vZGUpCiAgICAgICAgIHsKLSAgICAgICAgICBpZiAoY29weV9hY2wgKGZ1bGxfc3JjX25h bWUsIC0xLCBkc3RfbmFtZSwgLTEsIHAtPnN0LnN0X21vZGUpICE9IDApCisgICAgICAgICAg aWYgKGNvcHlfYWNsIChzcmNfbmFtZSwgLTEsIGRzdF9uYW1lLCAtMSwgcC0+c3Quc3RfbW9k ZSkgIT0gMCkKICAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICAgfQogICAgICAg ZWxzZSBpZiAocC0+cmVzdG9yZV9tb2RlKQogICAgICAgICB7Ci0gICAgICAgICAgaWYgKGxj aG1vZGF0IChkc3RfZGlyZmQsIHNyY19uYW1lLCBwLT5zdC5zdF9tb2RlKSAhPSAwKQorICAg ICAgICAgIGlmIChsY2htb2RhdCAoZHN0X2RpcmZkLCByZWxuYW1lLCBwLT5zdC5zdF9tb2Rl KSAhPSAwKQogICAgICAgICAgICAgewogICAgICAgICAgICAgICBlcnJvciAoMCwgZXJybm8s IF8oImZhaWxlZCB0byBwcmVzZXJ2ZSBwZXJtaXNzaW9ucyBmb3IgJXMiKSwKICAgICAgICAg ICAgICAgICAgICAgIHF1b3RlYWYgKGRzdF9uYW1lKSk7CkBAIC02OTAsOCArNjk2LDcgQEAg ZG9fY29weSAoaW50IG5fZmlsZXMsIGNoYXIgKipmaWxlLCBjaGFyIGNvbnN0ICp0YXJnZXRf ZGlyZWN0b3J5LAogICAgICAgICAgIGNoYXIgKmRzdF9uYW1lOwogICAgICAgICAgIGJvb2wg cGFyZW50X2V4aXN0cyA9IHRydWU7ICAvKiBUcnVlIGlmIGRpcl9uYW1lIChkc3RfbmFtZSkg ZXhpc3RzLiAqLwogICAgICAgICAgIHN0cnVjdCBkaXJfYXR0ciAqYXR0cl9saXN0OwotICAg ICAgICAgIGNoYXIgKmFyZ19pbl9jb25jYXQgPSBOVUxMOwotICAgICAgICAgIGNoYXIgKmZ1 bGxfYXJnX2luX2NvbmNhdCA9IE5VTEw7CisgICAgICAgICAgY2hhciAqYXJnX2luX2NvbmNh dDsKICAgICAgICAgICBjaGFyICphcmcgPSBmaWxlW2ldOwogCiAgICAgICAgICAgLyogVHJh aWxpbmcgc2xhc2hlcyBhcmUgbWVhbmluZ2Z1bCAoaS5lLiwgbWF5YmUgd29ydGggcHJlc2Vy dmluZykKQEAgLTcyMywxMCArNzI4LDYgQEAgZG9fY29weSAoaW50IG5fZmlsZXMsIGNoYXIg KipmaWxlLCBjaGFyIGNvbnN0ICp0YXJnZXRfZGlyZWN0b3J5LAogICAgICAgICAgICAgICAg ICAoZHN0X25hbWUsIGFyZ19pbl9jb25jYXQgLSBkc3RfbmFtZSwgdGFyZ2V0X2RpcmZkLAog ICAgICAgICAgICAgICAgICAgKHgtPnZlcmJvc2UgPyAiJXMgLT4gJXNcbiIgOiBOVUxMKSwK ICAgICAgICAgICAgICAgICAgICZhdHRyX2xpc3QsICZuZXdfZHN0LCB4KSk7Ci0KLSAgICAg ICAgICAgICAgZnVsbF9hcmdfaW5fY29uY2F0ID0gYXJnX2luX2NvbmNhdDsKLSAgICAgICAg ICAgICAgd2hpbGUgKCphcmdfaW5fY29uY2F0ID09ICcvJykKLSAgICAgICAgICAgICAgICBh cmdfaW5fY29uY2F0Kys7CiAgICAgICAgICAgICB9CiAgICAgICAgICAgZWxzZQogICAgICAg ICAgICAgewpAQCAtNzQ4LDEzICs3NDksMTcgQEAgZG9fY29weSAoaW50IG5fZmlsZXMsIGNo YXIgKipmaWxlLCBjaGFyIGNvbnN0ICp0YXJnZXRfZGlyZWN0b3J5LAogICAgICAgICAgICAg fQogICAgICAgICAgIGVsc2UKICAgICAgICAgICAgIHsKKyAgICAgICAgICAgICAgY2hhciBj b25zdCAqZHN0X3JlbG5hbWUgPSBhcmdfaW5fY29uY2F0OworICAgICAgICAgICAgICB3aGls ZSAoKmRzdF9yZWxuYW1lID09ICcvJykKKyAgICAgICAgICAgICAgICBkc3RfcmVsbmFtZSsr OworCiAgICAgICAgICAgICAgIGJvb2wgY29weV9pbnRvX3NlbGY7Ci0gICAgICAgICAgICAg IG9rICY9IGNvcHkgKGFyZywgZHN0X25hbWUsIHRhcmdldF9kaXJmZCwgYXJnX2luX2NvbmNh dCwKKyAgICAgICAgICAgICAgb2sgJj0gY29weSAoYXJnLCBkc3RfbmFtZSwgdGFyZ2V0X2Rp cmZkLCBkc3RfcmVsbmFtZSwKICAgICAgICAgICAgICAgICAgICAgICAgICAgbmV3X2RzdCwg eCwgJmNvcHlfaW50b19zZWxmLCBOVUxMKTsKIAogICAgICAgICAgICAgICBpZiAocGFyZW50 c19vcHRpb24pCi0gICAgICAgICAgICAgICAgb2sgJj0gcmVfcHJvdGVjdCAoZHN0X25hbWUs IHRhcmdldF9kaXJmZCwgZnVsbF9hcmdfaW5fY29uY2F0LAotICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgIGF0dHJfbGlzdCwgeCk7CisgICAgICAgICAgICAgICAgb2sgJj0g cmVfcHJvdGVjdCAoZHN0X25hbWUsIGFyZ19pbl9jb25jYXQsIHRhcmdldF9kaXJmZCwKKyAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBkc3RfcmVsbmFtZSwgYXR0cl9saXN0 LCB4KTsKICAgICAgICAgICAgIH0KIAogICAgICAgICAgIGlmIChwYXJlbnRzX29wdGlvbikK LS0gCjIuMzkuMgoK --------------oxGYiTW9QV7F5GDyQtXh9F6n-- From unknown Tue Aug 19 02:59:31 2025 X-Loop: help-debbugs@gnu.org Subject: bug#63245: Potential regression: cp --preserve=mode or --preserve=all fails to copy files from subdirectory Resent-From: Sam James Original-Sender: "Debbugs-submit" Resent-CC: bug-coreutils@gnu.org Resent-Date: Wed, 10 May 2023 21:49:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63245 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: =?UTF-8?Q?P=C3=A1draig?= Brady Cc: 63245-done@debbugs.gnu.org, kdudka@redhat.com, schlomo@schapiro.org Received: via spool by 63245-done@debbugs.gnu.org id=D63245.168375529314305 (code D ref 63245); Wed, 10 May 2023 21:49:02 +0000 Received: (at 63245-done) by debbugs.gnu.org; 10 May 2023 21:48:13 +0000 Received: from localhost ([127.0.0.1]:49163 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pwrfQ-0003ic-BC for submit@debbugs.gnu.org; Wed, 10 May 2023 17:48:12 -0400 Received: from woodpecker.gentoo.org ([140.211.166.183]:49158 helo=smtp.gentoo.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pwrfN-0003hg-SQ for 63245-done@debbugs.gnu.org; Wed, 10 May 2023 17:48:10 -0400 References: <103477d8-86a2-0360-f6e6-3faa5fb266b2@draigBrady.com> <3dc14250-c013-2fc8-0d3a-442a9baf0dab@draigBrady.com> <9535bf5d-f794-13da-b53b-49d518e36b03@draigBrady.com> <87wn1na73j.fsf@gentoo.org> User-agent: mu4e 1.10.3; emacs 29.0.90 From: Sam James Date: Wed, 10 May 2023 22:47:43 +0100 In-reply-to: Message-ID: <878rdvhn8w.fsf@gentoo.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -2.3 (--) 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 (---) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable P=C3=A1draig Brady writes: > On 05/05/2023 02:39, Sam James wrote: >> P=C3=A1draig Brady writes: >>=20 >>> On 04/05/2023 12:27, P=C3=A1draig Brady wrote: >>>> On 04/05/2023 07:27, Schlomo Schapiro wrote: >>>>> Hi P=C3=A1draig, >>>>> >>>>> thank you, that will not yet fix the problem in the older distros? Wh= at >>>>> about the RPM world with Fedora/RHEL and Archlinux? As far as I can t= ell >>>>> all cp version 9.x are affected by this. >>>> I'll handle the Fedora 37/38 fixes. >>>> RHEL/Centos and current Archlinux are not affected AFAICS. >>> >>> Fedora 37 and 38 updates are now pending (cc Kamil): >>> https://bodhi.fedoraproject.org/updates/FEDORA-2023-65365355b3 >>> https://bodhi.fedoraproject.org/updates/FEDORA-2023-4beb422aac >>> >>> The Fedora patches should also apply to the debian bookworm package, >>> so I've opened bugs accordingly at: >>> >>> https://bugs.debian.org/1035530 >>> https://bugs.debian.org/1035531 >>> >>> Schlomo, the second one is the one you're particularly interested in. >> This is relevant to coreutils-9.3, right?=20 > > Right. Specifically only this bug applies to 9.3. I.e.: > https://github.com/coreutils/coreutils/commit/c6b1fe434 > >> In that case, the only way >> I found out Gentoo was affected was by reading bug-coreutils by chance. >> It's not feasible for all package maintainers to read all bug >> trackers >> regularly for all software in their distributions. >> If it's worth filing bug reports in each distro for, it's either >> worth >> a new release > Right. I didn't inform distros that generally go with the latest coreutils > (including Fedora rawhide), as I was planning to do a 9.4 release soonish > to address this (and other bugs), and so it would get picked up automatic= ally. > That works too, thank you very much! :) >> or at least an email to the distributions@lists.linux.dev mailing list. > > TIL > best, sam --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iOUEARYKAI0WIQQlpruI3Zt2TGtVQcJzhAn1IN+RkAUCZFwRD18UgAAAAAAuAChp c3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0MjVB NkJCODhERDlCNzY0QzZCNTU0MUMyNzM4NDA5RjUyMERGOTE5MA8cc2FtQGdlbnRv by5vcmcACgkQc4QJ9SDfkZCbJQD/fSzT8Ej1leMdbxt25gRvy+VXtmOqFWZLjFuZ iFTc9soBAI4F0GTiUSJm2b66tRgdq5tmjDX/qOTU3B2TSfthHiUH =acet -----END PGP SIGNATURE----- --=-=-=--