Dominique Martinet wrote on Tue, Sep 30, 2025 at 12:11:33PM +0900:
> When using -T, we want to consider the target argument directly without
> resolving symlinks.
> (Note `cp -rLT` which would copy the source symlink as a directory after
> following the symlink still fails with `target ... is not a directory`)

Ah, I forgot to write that this only works with
CONFIG_FEATURE_NON_POSIX_CP=y

When that is unset it fails at the top of ask_and_unlink() with
`cp: can't create 'ln_dst': File exists` without also setting `-f`

(But I don't know posix and assume that's the expected behaviour even if
coreutils with POSIXLY_CORRECT doesn't fail like that?
... And anyway, alpine sets the build config, so I didn't bother digging
further at this point)

Thanks,
-- 
Dominique Martinet | Asmadeus
_______________________________________________
busybox mailing list
[email protected]
https://lists.busybox.net/mailman/listinfo/busybox

Reply via email to