Suppose such case:
/mnt/readonly_fs/some_symlink -> /var/real_file.
So, atomic_write('/mnt/readonly_fs/some_symlink') will try to create temporary file in /mnt/readonly_fs/. This is BUG. It should create temporary file in /var and replace /var/real_file accordingly.
The library have to resolve path recursively to get final path without any symlinks. It must do it before any operations.
Suppose such case:
/mnt/readonly_fs/some_symlink->/var/real_file.So,
atomic_write('/mnt/readonly_fs/some_symlink')will try to create temporary file in/mnt/readonly_fs/. This is BUG. It should create temporary file in/varand replace/var/real_fileaccordingly.The library have to resolve path recursively to get final path without any symlinks. It must do it before any operations.