mirror of
https://github.com/valitydev/osquery-1.git
synced 2024-11-07 09:58:54 +00:00
Addressed @marpia s changes
This commit is contained in:
parent
b9c477080f
commit
34e6bd45c3
@ -50,19 +50,16 @@ namespace osquery {
|
||||
Row r;
|
||||
r["share"] = *iter;
|
||||
if(readonly){
|
||||
r["readonly"] = "yes";
|
||||
r["readonly"] = "true";
|
||||
}else{
|
||||
r["readonly"] = "no";
|
||||
r["readonly"] = "false";
|
||||
}
|
||||
std::ostringstream oss;
|
||||
std::copy(line.begin()+indexOfOptions, line.end(), std::ostream_iterator<std::string>(oss, " "));
|
||||
r["options"] = oss.str();
|
||||
results.push_back(r);
|
||||
}
|
||||
//r["hosts"] = boost::algorithm::join(line, " ");
|
||||
//results.push_back(r);
|
||||
}
|
||||
|
||||
return results;
|
||||
}
|
||||
|
||||
@ -72,9 +69,9 @@ namespace osquery {
|
||||
if (s.ok()) {
|
||||
return parseNfsSharesContent(content);
|
||||
} else {
|
||||
LOG(ERROR) << "Error reading /etc/exports: " << s.toString();
|
||||
VLOG(1) << "Error reading /etc/exports: " << s.toString();
|
||||
return {};
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user