Do not follow symlinks from michealcadilhac
This is implemented by:
- Never following symlinks with stat, open, ...
- When seaf_util_open is called on a symlink, a temporary file in memory is created with contents the target of the link.
- When uploading a symlink, it is modified to look like a regular file, BUT 'modifier' is changed to '@modifier'.
- When downloading a file that has a modifier of the form '@...', change its mode to symlink. Next, when the file is created, this mode will be picked up, and a proper symlink will be created.
From the point of view of an unpatched daemon, links will look like regular files in 0644 that contain a path.