This sadly won't work for macOS 10.8 or 10.9. fstatat(2) was introduced to macOS in 10.10. is_mount_point() already has this problem, but that's not your fault. Chip