summaryrefslogtreecommitdiffstats
path: root/util.h
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2017-10-22 13:08:56 -0400
committerTavian Barnes <tavianator@tavianator.com>2017-10-22 13:08:56 -0400
commita3ed3e8dda52d39d3307a87b848b54606a6f0fed (patch)
tree2c777d93e434689068f6ce78ddcabc13cbc6fd19 /util.h
parent627ffbe2aafe05371dee9ca872b3da4f16424ad9 (diff)
downloadbfs-a3ed3e8dda52d39d3307a87b848b54606a6f0fed.tar.xz
exec: Apply more headroom to avoid E2BIG
I ran into "argument list too long" errors with a bfs -type f -exec grep pattern '{}' + command, despite the current accounting being pretty careful. Some experimentation showed that an additional 2048 bytes of headroom is always safe. While we're at it, explicitly account for the terminating NULL pointers in argv and environ.
Diffstat (limited to 'util.h')
0 files changed, 0 insertions, 0 deletions