Learn more about cloning repositories
You have read-only access
Use lstat() instead of stat so /init being a symlink doesn't screw people up. (And use it consistently, for size reasons.)