Skip to content

Commit

Permalink
subproc: util::StrQuote -> QC
Browse files Browse the repository at this point in the history
  • Loading branch information
robertswiecki committed Jul 8, 2024
1 parent b07e069 commit 5063fa5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions subproc.cc
Original file line number Diff line number Diff line change
Expand Up @@ -202,16 +202,15 @@ static void newProc(nsjconf_t* nsjconf, int netfd, int fd_in, int fd_out, int fd
}

auto connstr = net::connToText(netfd, /* remote= */ true, NULL);
LOG_I("Executing %s for '%s'", util::StrQuote(nsjconf->exec_file).c_str(), connstr.c_str());
LOG_I("Executing %s for '%s'", QC(nsjconf->exec_file), connstr.c_str());

std::vector<const char*> argv;
for (const auto& s : nsjconf->argv) {
argv.push_back(s.c_str());
}
argv.push_back(nullptr);

LOG_D("Exec: %s, Args: [%s]", util::StrQuote(nsjconf->exec_file).c_str(),
concatArgs(argv).c_str());
LOG_D("Exec: %s, Args: [%s]", QC(nsjconf->exec_file), concatArgs(argv).c_str());

/* Should be the last one in the sequence */
if (!sandbox::applyPolicy(nsjconf)) {
Expand Down

0 comments on commit 5063fa5

Please sign in to comment.