Stefano Bonicatti
01/31/2020, 5:06 PM/__w/1/s/usr/src/debug/osquery/osquery/filesystem/filesystem.cpp:581:19: error: use of undeclared identifier 'path'; did you mean 'catch'?
if (!readFile(path, json_data).ok()) {
^~~~
catch
/__w/1/s/usr/src/debug/osquery/osquery/filesystem/filesystem.cpp:581:19: error: expected expression
/__w/1/s/usr/src/debug/osquery/osquery/filesystem/filesystem.cpp:581:25: error: use of undeclared identifier 'json_data'
if (!readFile(path, json_data).ok()) {
^
/__w/1/s/usr/src/debug/osquery/osquery/filesystem/filesystem.cpp:582:21: error: use of undeclared identifier 'path'; did you mean 'catch'?
pt::read_json(path.string(), tree);
^~~~
catch
/__w/1/s/usr/src/debug/osquery/osquery/filesystem/filesystem.cpp:582:21: error: expected expression
5 errors generated.
osquery/filesystem/CMakeFiles/osquery_filesystem.dir/build.make:75: recipe for target 'osquery/filesystem/CMakeFiles/osquery_filesystem.dir/filesystem.cpp.o' failed
make[2]: *** [osquery/filesystem/CMakeFiles/osquery_filesystem.dir/filesystem.cpp.o] Error 1
CMakeFiles/Makefile2:23618: recipe for target 'osquery/filesystem/CMakeFiles/osquery_filesystem.dir/all' failed
make[1]: *** [osquery/filesystem/CMakeFiles/osquery_filesystem.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....