Atomically write to a file on POSIX-compliant systems while preserving permissions. On most Unix systems, mv is an atomic operation. This makes it simple to write to a file atomically just by using the mv operation. However, this will destroy the permissions on the original file. This library does the following to preserve permissions while atomically writing to a file: * If an original file exists, take those permissions and apply them to the temp file before mving the file into place. * If the original file does not exist, create a following with default permissions (based on the currently-active umask). This way, when the file is mv'ed into place, the permissions will be the ones held by the original file.
OS | Architecture | Version |
---|---|---|
NetBSD 10.0 | aarch64 | hs-atomic-write-0.2.0.7nb5.tgz |
NetBSD 10.0 | aarch64 | hs-atomic-write-0.2.0.7nb5.tgz |
NetBSD 10.0 | x86_64 | hs-atomic-write-0.2.0.7nb5.tgz |
NetBSD 10.0 | x86_64 | hs-atomic-write-0.2.0.7nb5.tgz |
NetBSD 9.0 | aarch64 | hs-atomic-write-0.2.0.7nb5.tgz |
NetBSD 9.0 | aarch64 | hs-atomic-write-0.2.0.7nb5.tgz |
NetBSD 9.0 | x86_64 | hs-atomic-write-0.2.0.7nb5.tgz |
NetBSD 9.0 | x86_64 | hs-atomic-write-0.2.0.7nb5.tgz |
NetBSD 9.3 | x86_64 | hs-atomic-write-0.2.0.7nb5.tgz |
Binary packages can be installed with the high-level tool pkgin (which can be installed with pkg_add) or pkg_add(1) (installed by default). The NetBSD packages collection is also designed to permit easy installation from source.
The pkg_admin audit command locates any installed package which has been mentioned in security advisories as having vulnerabilities.
Please note the vulnerabilities database might not be fully accurate, and not every bug is exploitable with every configuration.
Problem reports, updates or suggestions for this package should be reported with send-pr.