tools: Use platform abstraction for renaming files.
authorJustus Winter <justus@g10code.com>
Mon, 23 Jan 2017 13:26:00 +0000 (14:26 +0100)
committerJustus Winter <justus@g10code.com>
Tue, 24 Jan 2017 14:44:16 +0000 (15:44 +0100)
commitbfd75e9492fc4edd86f4049a62304943a7b2a29a
treed7c65a053fae6690b75f5cf43b2ee8ed0b1103fb
parent82e309ad06884e54693f4856412984331febdda0
tools: Use platform abstraction for renaming files.

* tools/gpgconf-comp.c (gc_component_change_options): Use
'gnupg_rename_file'.  Also, block signals across all renames in an
attempt to make the whole process atomic.
--
Werner asked me to make gpgconf use the platform abstractions that
were introduced after gpgconf's inception.

Signed-off-by: Justus Winter <justus@g10code.com>
tools/gpgconf-comp.c