Home GnuPG
Diffusion GnuPG 4aceebf36f10

common: Make sure dotlock functions set a proper ERRNO.
4aceebf36f10Unpublished

Unpublished Commit · Learn More

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

Description

common: Make sure dotlock functions set a proper ERRNO.

* common/dotlock.c (map_w32_to_errno): New.
(read_lockfile): Return a proper ERRNO.
(dotlock_create_unix): Do not let log functions clobber ERRNO.
(dotlock_take_unix): Ditto.
(dotlock_release_unix): Ditto.
(dotlock_create_w32): Set proper ERRNO.
(dotlock_take_w32): Ditto.
(dotlock_release_w32): Ditto.
  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
wernerAuthored on Jan 13 2016, 2:42 PM
Parents
rG160862978628: kbx: Implement keybox_lock for use by gpg.
Branches
Unknown
Tags
Unknown

Event Timeline

Werner Koch <wk@gnupg.org> committed rG4aceebf36f10: common: Make sure dotlock functions set a proper ERRNO. (authored by Werner Koch <wk@gnupg.org>).Jan 13 2016, 2:42 PM