access_log_open(): always open access log in append mode
Mode "a" will also create the file if non-existent, no need to fallback to mode "w".
@@ -101,10 +101,8 @@ access_log_open (const char *path) {
if (path == NULL)
return 0;
- if (access (path, F_OK) != -1)
access_log = fopen (path, "a");
- else
- access_log = fopen (path, "w");
+
if (access_log == NULL)
return 1;
