summaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2024-01-03 17:17:35 -0500
committerTavian Barnes <tavianator@tavianator.com>2024-01-04 14:42:36 -0500
commit45fb1d952c3b262278a3b22e9c7d60cca19a5407 (patch)
tree500f3e4d2288c427669c9fe62dafac64d6e53533 /src/main.c
parentd874481987c381fd572a6f3c43840c50111a9554 (diff)
downloadbfs-45fb1d952c3b262278a3b22e9c7d60cca19a5407.tar.xz
Work around DragonFly BSD kernel bug
DragonFly's x86_64 assembly implementation of copyinstr() checks the wrong pointer when deciding whether to return EFAULT or ENAMETOOLONG, causing it to always return EFAULT for overlong paths. Work around it by treating EFAULT the same as ENAMETOOLONG on DragonFly. Link: https://twitter.com/tavianator/status/1742991411203485713
Diffstat (limited to 'src/main.c')
0 files changed, 0 insertions, 0 deletions