Package: coreutils Version: 8.5-1 Severity: normal File: /bin/cp If I try to copy a symlink which points to a directory, cp refuses to do so without -r despite it copies the symlink itself and not the contents with "cp -r", even if the symlink was given on the commandline without trailing slash:
/tmp/cp-bugreport → mkdir foo /tmp/cp-bugreport → ln -vis foo bar `bar' -> `foo' /tmp/cp-bugreport → cp -v bar baz cp: omitting directory `bar' /tmp/cp-bugreport → cp -rv bar baz `bar' -> `baz' /tmp/cp-bugreport → ls -l total 0 lrwxrwxrwx 1 abe isg 3 Aug 25 15:39 bar -> foo/ lrwxrwxrwx 1 abe isg 3 Aug 25 15:39 baz -> foo/ drwxr-xr-x 2 abe isg 40 Aug 25 15:39 foo/ /tmp/cp-bugreport → This issue is present on Debian Sid, too. -- System Information: Debian Release: 6.0.2 APT prefers stable APT policy: (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 2.6.32-5-amd64 (SMP w/4 CPU cores) Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) Shell: /bin/sh linked to /bin/dash Versions of packages coreutils depends on: ii libacl1 2.2.49-4 Access control list shared library ii libattr1 1:2.4.44-2 Extended attribute shared library ii libc6 2.11.2-10 Embedded GNU C Library: Shared lib ii libselinux1 2.0.96-1 SELinux runtime shared libraries coreutils recommends no packages. coreutils suggests no packages. -- no debconf information -- debsums errors found: debsums: missing file /usr/bin/arch (from coreutils package) -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org