Introduction
Introduction Statistics Contact Development Disclaimer Help
Changed method of touching logfile before using - fiche - A pastebin adjusted f…
git clone git://vernunftzentrum.de/fiche.git
Log
Files
Refs
LICENSE
---
commit 99b45b93f24f678986556f1e5cffa09563c564c3
parent c1725790bb471fe5c7ab1161804e5b8b900abdeb
Author: solusipse <[email protected]>
Date: Sat, 2 Sep 2017 22:20:08 +0200
Changed method of touching logfile before using
Diffstat:
fiche.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/fiche.c b/fiche.c
@@ -252,7 +252,8 @@ int fiche_run(Fiche_Settings settings) {
if ( settings.log_file_path ) {
// Create log file if it doesn't exist
- creat(settings.log_file_path, S_IRWXU);
+ FILE *f = fopen(settings.log_file_path, "a+");
+ fclose(f);
// Then check if it's accessible
if ( access(settings.log_file_path, W_OK) != 0 ) {
You are viewing proxied material from vernunftzentrum.de. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.