diff options
author | Guilhem Moulin <guilhem@fripost.org> | 2024-06-02 05:05:36 +0200 |
---|---|---|
committer | Guilhem Moulin <guilhem@fripost.org> | 2024-06-02 13:54:46 +0200 |
commit | adb5e2a6e766eecedd2aead41387f50ffc7b26ed (patch) | |
tree | 5796599c59c2e8bbeb6ca41a200dc92107b618ba /COPYING | |
parent | d25c8b8b60fbfabf7544a3a5a44c105f0bc5b4da (diff) |
webmap-download: Ensure we always call linkat() not link().
This costs an extra file descriptor when --cachedir is unsed, but
os.link(f'/proc/self/fd/{fp.fileno()}', newpath,
dst_dir_fd=None, follow_symlinks=True)
calls link("/proc/self/fd/…", newpath) rather than
linkat(AT_FDCWD, "/proc/self/fd/…", AT_FDCWD, newpath, AT_SYMLINK_FOLLOW)
and the former fails with EXDEV (Invalid cross-device link).
Diffstat (limited to 'COPYING')
0 files changed, 0 insertions, 0 deletions