bug#32455: cp gets confused by symlinks to parent directory

2019-01-18 Thread Assaf Gordon
tags 32455 notabug close 32455 stop Hello, It seems your message has not been replied to in a long while. Sorry about that. On 2018-08-16 8:47 a.m., Mike Crowe wrote: If cp is passed the -d option and told to copy a symlink to the directory containing the symlink then it ends up removing the

bug#32455: cp gets confused by symlinks to parent directory

2018-08-16 Thread Mike Crowe
If cp is passed the -d option and told to copy a symlink to the directory containing the symlink then it ends up removing the target directory so it is unable to create the symlink. Reproduction script: --8<-- #!/bin/sh set -x rm -rf temp mkdir -p temp/src temp/dest ln -s . temp/src/self #