Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Symlinks bug #65

Open
socketpair opened this issue Jul 9, 2020 · 1 comment
Open

Symlinks bug #65

socketpair opened this issue Jul 9, 2020 · 1 comment

Comments

@socketpair
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@socketpair and others