summaryrefslogtreecommitdiffstats
path: root/usr.bin/file/file.c
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>2009-08-27 16:19:27 +0000
committermillert <millert@openbsd.org>2009-08-27 16:19:27 +0000
commit5fe0ba81f0af9da36004a9f6ec81c71350730de5 (patch)
tree7aea7d1de7332ff0e2207de5125b9e53d3f83f37 /usr.bin/file/file.c
parentMore iscsi defines needed. (diff)
downloadwireguard-openbsd-5fe0ba81f0af9da36004a9f6ec81c71350730de5.tar.xz
wireguard-openbsd-5fe0ba81f0af9da36004a9f6ec81c71350730de5.zip
Don't stop traversing a directory hierarchy if we reach SHRT_MAX,
just stop updating fts_level so we don't overflow it. This allows rm, find, etc to operate on very deep hierarchies. Consumers of fts(3) do need to be aware that the actual level may be larger than fts_level. During the next libc major bump we will make fts_level an int instead of a short. OK deraadt@
Diffstat (limited to 'usr.bin/file/file.c')
0 files changed, 0 insertions, 0 deletions