@cryptotaxi247 / netdata-1 / commits / 5b4fc0ff6

webfilename instead of filename in buffer_sprintf

poofy committed Mar 31, 2016 at 16:15 UTC 5b4fc0ff65025339656dcc37e4e5ed4b1ccbe563
1 file changed +1 -1
src/web_client.c
+1 -1
@@ -295,7 +295,7 @@ int mysendfile(struct web_client *w, char *filename)
295 // check if the file is owned by expected user
296 if(stat.st_uid != web_files_uid()) {
297 error("%llu: File '%s' is owned by user %d (expected user %d). Access Denied.", w->id, webfilename, stat.st_uid, web_files_uid());
298 - buffer_sprintf(w->response.data, "Access to file '%s' is not permitted.", filename);
298 + buffer_sprintf(w->response.data, "Access to file '%s' is not permitted.", webfilename);
299 return 403;
300 }
301