bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#55910: cp error


From: pk
Subject: bug#55910: 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 via email to

[Prev in Thread] Current Thread [Next in Thread]