summaryrefslogtreecommitdiff
path: root/include/sys
diff options
context:
space:
mode:
authorinfo@mobile-stream.com2019-03-06 16:28:48 +0300
committersin2019-03-07 00:05:30 +0000
commitff82ffbc74d82091527449e31fe351d15830f716 (patch)
tree0ccbcea941cf0febdc42fd043a0ced50082b2eae /include/sys
parent1435d8186b1954de640ec79717c5e564243bd350 (diff)
realpath: guard slow/trap path with PATH_MAX
This allows the compiler to optimize out the slow/trap path at all for the typical correct code: char buf[PATH_MAX]; r = realpath(path, buf); The change keeps the "unknown object size" case handling intact.
Diffstat (limited to 'include/sys')
0 files changed, 0 insertions, 0 deletions