Implement secure rc file saving.
authorLaurent Monin <geeqie@norz.org>
Tue, 8 Apr 2008 21:55:58 +0000 (21:55 +0000)
committerLaurent Monin <geeqie@norz.org>
Tue, 8 Apr 2008 21:55:58 +0000 (21:55 +0000)
commitccc538651bada138f49aec344cc69398359c1fce
tree895b26e413f3a385017b069b5368af643c796528
parent0e8b4aabb88cf20b361334edbdd817303de4a768
Implement secure rc file saving.
First data is written to a temporary file, then if nothing
was wrong, this file is renamed to the final name.
This way the risk of corrupted rc file is greatly reduced.
The code is borrowed from ELinks (http://elinks.cz).
configure.in
src/filelist.c
src/filelist.h
src/rcfile.c
src/rcfile.h
src/typedefs.h