Home GnuPG
Diffusion GnuPG 79f31e85dbb7

* keyring.c (rename_tmp_file): Force a fsync (via iobuf_ioctl) on
79f31e85dbb7Unpublished

Unpublished Commit ยท Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

(no title)

* keyring.c (rename_tmp_file): Force a fsync (via iobuf_ioctl) on
secret keyring files to be extra safe on filesystems that may not sync
data and metadata together (ext4).  Also check return code from the
cache invalidation to make sure we're safe over NFS and similar.

Details

Provenance
dshawAuthored on Mar 20 2009, 9:55 PM
Parents
rGda66b1d69e79: * iobuf.c (fd_cache_synchronize): New. fsync() a file in cache.
Branches
Unknown
Tags
Unknown

Event Timeline

David Shaw <dshaw@jabberwocky.com> committed rG79f31e85dbb7: * keyring.c (rename_tmp_file): Force a fsync (via iobuf_ioctl) on (authored by David Shaw <dshaw@jabberwocky.com>).Mar 20 2009, 9:55 PM