lib/nfs/FileReader: convert path
to std::string
This commit is contained in:
parent
131dcce0a1
commit
9e8128ecb5
@ -156,7 +156,7 @@ NfsFileReader::OnNfsConnectionReady() noexcept
|
|||||||
assert(state == State::MOUNT);
|
assert(state == State::MOUNT);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
connection->Open(path, O_RDONLY, *this);
|
connection->Open(path.c_str(), O_RDONLY, *this);
|
||||||
} catch (...) {
|
} catch (...) {
|
||||||
OnNfsFileError(std::current_exception());
|
OnNfsFileError(std::current_exception());
|
||||||
return;
|
return;
|
||||||
|
@ -43,8 +43,7 @@ class NfsFileReader : NfsLease, NfsCallback {
|
|||||||
|
|
||||||
State state = State::INITIAL;
|
State state = State::INITIAL;
|
||||||
|
|
||||||
std::string server, export_name;
|
std::string server, export_name, path;
|
||||||
const char *path;
|
|
||||||
|
|
||||||
NfsConnection *connection;
|
NfsConnection *connection;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user