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.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: pk <pkoroau <at> gmail.com>
Subject: bug#55910: closed (Re: bug#55910: cp error)
Date: Sat, 11 Jun 2022 17:57:02 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#55910: cp error

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 55910 <at> debbugs.gnu.org.

-- 
55910: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=55910
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
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 3 (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)]
[Message part 5 (message/rfc822, inline)]
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.



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

Previous Next


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