Public bug reported:
$ mkdir ja.utf-8
$ ln -s ja.utf-8/ ja
$ cp --reflink -dp --parents ja x
$ ls x
x@
$ ls -lh x
lrwxrwxrwx 1 jak jak 9 Jul 11 07:04 x@ -> ja.utf-8/
$ rm -r x
$ mkdir x
$ cp --reflink -dp --parents ja x
cp: cannot create symlink 'x' to 'ja.utf-8': File exists (os error 17)
$ gnucp --reflink -dp --parents ja x
$ ls x
ja@
In particular if we do
$ rm -r x
$ gnucp --reflink -dp --parents ja x
gnucp: with --parents, the destination must be a directory
Try 'gnucp --help' for more information.
** Affects: coreutils
Importance: Unknown
Status: Unknown
** Affects: rust-coreutils (Ubuntu)
Importance: Undecided
Status: New
** Description changed:
+ $ mkdir ja.utf-8
+ $ ln -s ja.utf-8/ ja
+ $ cp --reflink -dp --parents ja x
+ $ ls x
+ x@
+ $ ls -lh x
+ lrwxrwxrwx 1 jak jak 9 Jul 11 07:04 x@ -> ja.utf-8/
+ $ rm -r x
+ $ mkdir x
+ $ cp --reflink -dp --parents ja x
+ cp: cannot create symlink 'x' to 'ja.utf-8': File exists (os error 17)
+ $ gnucp --reflink -dp --parents ja x
+ $ ls x
+ ja@
- jak@jak-t14-g3 ~/P/U/ubuntu-archive-tools (sru-report-dependencies)> mkdir
ja.utf-8
- jak@jak-t14-g3 ~/P/U/ubuntu-archive-tools (sru-report-dependencies)> ln -s
ja.utf-8/ ja
- jak@jak-t14-g3 ~/P/U/ubuntu-archive-tools (sru-report-dependencies)> cp
--reflink -dp --parents ja x
- jak@jak-t14-g3 ~/P/U/ubuntu-archive-tools (sru-report-dependencies)> ls x
- x@
- jak@jak-t14-g3 ~/P/U/ubuntu-archive-tools (sru-report-dependencies)> ls -lh x
- lrwxrwxrwx 1 jak jak 9 Jul 11 07:04 x@ -> ja.utf-8/
- jak@jak-t14-g3 ~/P/U/ubuntu-archive-tools (sru-report-dependencies)> rm -r x
- jak@jak-t14-g3 ~/P/U/ubuntu-archive-tools (sru-report-dependencies)> mkdir x
- jak@jak-t14-g3 ~/P/U/ubuntu-archive-tools (sru-report-dependencies)> cp
--reflink -dp --parents ja x
- cp: cannot create symlink 'x' to 'ja.utf-8': File exists (os error 17)
- jak@jak-t14-g3 ~/P/U/ubuntu-archive-tools (sru-report-dependencies) [1]>
gnucp --reflink -dp --parents ja x
- jak@jak-t14-g3 ~/P/U/ubuntu-archive-tools (sru-report-dependencies)> ls x
- ja@
+ In particular if we do
+ $ rm -r x
+ $ gnucp --reflink -dp --parents ja x
+ gnucp: with --parents, the destination must be a directory
+ Try 'gnucp --help' for more information.
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2116572
Title:
cp --parents is broken
To manage notifications about this bug go to:
https://bugs.launchpad.net/coreutils/+bug/2116572/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs