]> arthur.barton.de Git - netdata.git/commitdiff
webfilename instead of filename in buffer_sprintf
authorpoofy <poofyleek@gmail.com>
Thu, 31 Mar 2016 23:15:28 +0000 (16:15 -0700)
committerpoofy <poofyleek@gmail.com>
Thu, 31 Mar 2016 23:15:28 +0000 (16:15 -0700)
src/web_client.c

index 6536e444004b49a2d39bdc568628736efdcc58c2..7ee43d5fa0f577d55ec0790e77194bb2cb1c1d69 100755 (executable)
@@ -295,7 +295,7 @@ int mysendfile(struct web_client *w, char *filename)
        // check if the file is owned by expected user
        if(stat.st_uid != web_files_uid()) {
                error("%llu: File '%s' is owned by user %d (expected user %d). Access Denied.", w->id, webfilename, stat.st_uid, web_files_uid());
-               buffer_sprintf(w->response.data, "Access to file '%s' is not permitted.", filename);
+               buffer_sprintf(w->response.data, "Access to file '%s' is not permitted.", webfilename);
                return 403;
        }