pkgsrc/devel/hs-atomic-write/distinfo
pho 0956767dd2 devel/hs-atomic-write: import hs-atomic-write-0.2.0.7
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.
2022-02-23 16:52:15 +00:00

5 lines
376 B
Text

$NetBSD: distinfo,v 1.1 2022/02/23 16:52:15 pho Exp $
BLAKE2s (atomic-write-0.2.0.7.tar.gz) = 66d3c8b459d6fbe075c03e69cbd27e67c6f6067a412aaccecf9268342e7823dc
SHA512 (atomic-write-0.2.0.7.tar.gz) = 3405437b801fbdd542c5c8a403f603ccb65ceaa63beca15062c429eaea412d7006342eb237982c9fe6751ffd160f810197b30fec3e49528e51bae1fc7f47af2e
Size (atomic-write-0.2.0.7.tar.gz) = 7199 bytes