GNU bug report logs - #55910
cp error

Previous Next

Package: coreutils;

Reported by: pk <pkoroau <at> gmail.com>

Date: Sat, 11 Jun 2022 16:07:01 UTC

Severity: normal

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 55910 in the body.
You can then email your comments to 55910 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-coreutils <at> gnu.org:
bug#55910; Package coreutils. (Sat, 11 Jun 2022 16:07:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to pk <pkoroau <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-coreutils <at> gnu.org. (Sat, 11 Jun 2022 16:07:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: pk <pkoroau <at> gmail.com>
To: submit <at> debbugs.gnu.org
Subject: cp error
Date: Sat, 11 Jun 2022 11:07:15 +0200
Package: coreutils

- Boot arch linux live cd 2022.06. It has coreutils 9.1-1.
- mkfs.btrfs /dev/vda
- mount /dev/vda /mnt
- cp -ax / /mnt
cp: cannot create directory '/mnt/': No such file or directory

If relevant: strace says that newfstatat and mkdirat have been given
"" as pathname and return ENOENT.

Instead, the exact same steps work on arch linux 2022.03, which has
coreutils 9.0-2. Note that -x should prevent trying to copy /mnt under
itself; on 2022.03, there is a proper error message for cp -a / /mnt
without -x.




Reply sent to Paul Eggert <eggert <at> cs.ucla.edu>:
You have taken responsibility. (Sat, 11 Jun 2022 17:57:02 GMT) Full text and rfc822 format available.

Notification sent to pk <pkoroau <at> gmail.com>:
bug acknowledged by developer. (Sat, 11 Jun 2022 17:57:02 GMT) Full text and rfc822 format available.

Message #10 received at 55910-done <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: pk <pkoroau <at> gmail.com>
Cc: 55910-done <at> debbugs.gnu.org
Subject: Re: bug#55910: cp error
Date: Sat, 11 Jun 2022 10:56:11 -0700
[Message part 1 (text/plain, inline)]
Thanks for the bug report. I installed the attached patch, which should 
fix it. Please give it a try.
[0001-cp-fix-cp-rx-mnt.patch (text/x-patch, attachment)]

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 10 Jul 2022 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 340 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.