]> Savannah Git Hosting - gnulib.git/commit
clean-temp: Add support for temporary files with given mode.
authorBruno Haible <bruno@clisp.org>
Sat, 4 Jul 2020 16:06:52 +0000 (18:06 +0200)
committerBruno Haible <bruno@clisp.org>
Sat, 4 Jul 2020 16:06:52 +0000 (18:06 +0200)
commit36d4b7ed93c3c29505f939de6725b7f68b860fa5
tree39b4536f94f35f5fc1961b03d7fa6310a0620ce3
parent564370e171d3e503d10463288bee2ff5273b2a33
clean-temp: Add support for temporary files with given mode.

* lib/clean-temp.h (gen_register_open_temp): Add mode argument.
* lib/clean-temp.c (struct try_create_file_params): New type.
(try_create_file): New function.
(gen_register_open_temp): Add mode argument. Use try_tempname instead of
gen_tempname.
ChangeLog
lib/clean-temp.c
lib/clean-temp.h