[Bug 2125632] Re: cp fails with filenames ending in backslash
Julian Andres Klode
2125632 at bugs.launchpad.net
Fri Sep 26 22:02:41 UTC 2025
** Bug watch added: github.com/uutils/coreutils/issues #8739
https://github.com/uutils/coreutils/issues/8739
** Also affects: coreutils via
https://github.com/uutils/coreutils/issues/8739
Importance: Unknown
Status: Unknown
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to rust-coreutils in Ubuntu.
https://bugs.launchpad.net/bugs/2125632
Title:
cp fails with filenames ending in backslash
Status in coreutils:
Unknown
Status in rust-coreutils package in Ubuntu:
New
Bug description:
upstream bug https://github.com/uutils/coreutils/issues/8739
Although uncommon and probably unwise, linux filenames can end in slash.
uutils-coreutils appears to wrongfull intrepret those as directories and fails copying.
This currently breaks tests some lintian tests.
repro:
# cp -V
cp (uutils coreutils) 0.2.2
# mkdir a
# touch a/foo\\
# cp -r a b
cp: 'b/foo\' is not a directory
# ls -la b
total 1
drwxr-xr-x 2 root root 2 Sep 24 23:07 .
drwx------ 6 root root 9 Sep 24 23:07 ..
To manage notifications about this bug go to:
https://bugs.launchpad.net/coreutils/+bug/2125632/+subscriptions
More information about the foundations-bugs
mailing list