Package: coreutils
Version: 5.97-5
Severity: normal

When using 
> cp -lar srcdir/* targetdir

on a srcdir containing files (no matter how deep in srcdir) with spaces in 
their filenames, cp complains:
> cp: cannot create hard link `targetdir/(...)/filename' to 
> `targetdir/(...)/filename': No such file or directory

This cryptical message (which implies trying to create a hardlink from a file 
to itself?) is caused by a filename
containing a space. Note that I took the quotes in the above messages exactly 
as they were: not even a small hint
about a whitespace at the end of a filename, it took me ages to find the cause 
of this problem! Also note that
this problem isn't related to some kind of shell variable expansion, since I'm 
using recursive cp. The file
responsible for my problems was about 5 levels deep in the directory structure 
under srcdir.

In my opinion cp should be able to handle filenames containing all kinds of 
permitted characters, this includes
filenames with a white space at the end.


-- System Information:
Debian Release: 4.0
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-3-686
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)

Versions of packages coreutils depends on:
ii  libacl1                     2.2.41-1     Access control list shared library
ii  libc6                       2.3.6.ds1-11 GNU C Library: Shared libraries
ii  libselinux1                 1.32-3       SELinux shared libraries

coreutils recommends no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to