From 5063fa5af6020bf73c0edce552a7c0156f1d8860 Mon Sep 17 00:00:00 2001 From: Robert Swiecki Date: Tue, 9 Jul 2024 00:01:32 +0200 Subject: [PATCH] subproc: util::StrQuote -> QC --- subproc.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/subproc.cc b/subproc.cc index 95923c8..107cb9f 100644 --- a/subproc.cc +++ b/subproc.cc @@ -202,7 +202,7 @@ 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 argv; for (const auto& s : nsjconf->argv) { @@ -210,8 +210,7 @@ static void newProc(nsjconf_t* nsjconf, int netfd, int fd_in, int fd_out, int fd } 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)) {