Skip to content

Commit

Permalink
Fix exists check issue
Browse files Browse the repository at this point in the history
Fix wrong position of parenthesis.

Signed-off-by: Yadong Qi <[email protected]>
  • Loading branch information
YadongQi authored and sysopenci committed Apr 6, 2023
1 parent 27e4b01 commit dfebdd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/guest/vm_process.cc
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ VmProcSimple::~VmProcSimple() {
void VmCoProcRpmb::Run(void) {
LOG(info) << bin_ << " " << data_dir_;
boost::system::error_code bec;
if (!boost::filesystem::exists(data_dir_ + "/" + kRpmbData), bec) {
if (!boost::filesystem::exists(data_dir_ + "/" + kRpmbData, bec)) {
std::error_code ec;
boost::process::child init_data(bin_ + " --dev " + data_dir_ + "/" + kRpmbData + " --init --size 2048");
init_data.wait(ec);
Expand Down

0 comments on commit dfebdd7

Please sign in to comment.