cp to infinity.

Andrew Pantyukhin infofarmer at FreeBSD.org
Wed Jan 24 11:45:10 UTC 2007


On 1/24/07, Peter Ankerstål <peter at pean.org> wrote:
>  > cd test/
>  > mkdir foo
>  > touch bar
>  > cp -r * foo/
> cp:
>
> name too long (not copied)
> cp:
>
> name too long (not copied)
>
>
> It seems FreeBSD cp tries to copy the directory to infinity. Is there an
> option to avoid this?

Sure, just don't copy directories into themselves
recursively.


More information about the freebsd-questions mailing list