Add a mode (in chmod(2) context) argument to util_get_filepath()
authorLeonardo Taccari <iamleot@gmail.com>
Wed, 10 Oct 2018 11:03:10 +0000 (13:03 +0200)
committerDaniel Carl <danielcarl@gmx.de>
Wed, 10 Oct 2018 20:31:54 +0000 (22:31 +0200)
commit43a8d1763aec964a8734aad7d688e1a84d02a36a
treea06d5cdfb0a3ba91f585d08c700df37ae199c6dd
parent79e0a8cabae152d78ee7179d850269a86daa77f0
Add a mode (in chmod(2) context) argument to util_get_filepath()

Add a mode argument to util_get_filepath() in order to adjust file
permissions when creating file.  Adjust all util_get_filepath()
call and file permissions making them readable and writable only
by the user.
src/main.c
src/util.c
src/util.h