agent: Fix saving with FORCE=1.
authorNIIBE Yutaka <gniibe@fsij.org>
Fri, 21 Oct 2016 01:57:29 +0000 (10:57 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Fri, 21 Oct 2016 01:57:29 +0000 (10:57 +0900)
commit1ffd475f99eaff4e40950eda88702f8db9288eb5
treecc3b85d36b5638c77377302ec76679e4b3544f71
parent71158d8d5f823888abc8588caa6497860ce59c06
agent: Fix saving with FORCE=1.

* agent/findkey.c (agent_write_private_key): Recover from an error of
GPG_ERR_ENOENT when FORCE=1 and it is opened with "rb+".

--
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
agent/findkey.c