forked from lix-project/lix
Add FIXME
This commit is contained in:
parent
259100332f
commit
b7bfc7ee52
|
@ -61,6 +61,8 @@ std::optional<LinesOfCode> getCodeLines(const ErrPos & errPos)
|
||||||
if (errPos.origin == foFile) {
|
if (errPos.origin == foFile) {
|
||||||
LinesOfCode loc;
|
LinesOfCode loc;
|
||||||
try {
|
try {
|
||||||
|
// FIXME: when running as the daemon, make sure we don't
|
||||||
|
// open a file to which the client doesn't have access.
|
||||||
AutoCloseFD fd = open(errPos.file.c_str(), O_RDONLY | O_CLOEXEC);
|
AutoCloseFD fd = open(errPos.file.c_str(), O_RDONLY | O_CLOEXEC);
|
||||||
if (!fd) return {};
|
if (!fd) return {};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue