copy: put a depth limit on copying file system trees recursively
authorLennart Poettering <lennart@poettering.net>
Thu, 7 Jun 2018 11:24:03 +0000 (13:24 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 7 Jun 2018 11:32:57 +0000 (13:32 +0200)
commit575a07d2dc1d1f4bc36ec0358819da92e2aef32f
tree1a676377584a2d2f65b79631759043b3e42ef99b
parentf6a77804c9d743e8d01051d2cb0511b53a49c56e
copy: put a depth limit on copying file system trees recursively

This is a safety net against bind mount cycles, as such pick it
relatively high at 2048 for now.

As suggested by @filbranden on #9213
src/basic/copy.c