summaryrefslogtreecommitdiffstats
path: root/modsign.cxx
diff options
context:
space:
mode:
authorFrank Ch. Eigler <fche@elastic.org>2009-08-21 16:00:27 -0400
committerFrank Ch. Eigler <fche@elastic.org>2009-08-21 16:00:27 -0400
commit36ef6d6a310d7a4a35a3c505d041e9fbd11125fa (patch)
tree46233e0e37d3407a05b9c4e5c3f60c6393171806 /modsign.cxx
parentb6921d5942950cb988318c36ee0e0792311f1ccc (diff)
downloadsystemtap-steved-36ef6d6a310d7a4a35a3c505d041e9fbd11125fa.tar.gz
systemtap-steved-36ef6d6a310d7a4a35a3c505d041e9fbd11125fa.tar.xz
systemtap-steved-36ef6d6a310d7a4a35a3c505d041e9fbd11125fa.zip
PR10544: clean up stap child process error handling
* util.cxx (stap_system): Take extra verbosity value. Standardize error handling / tracing. * util.h: Corresponding changes. * buildrun.cxx, main.cxx, modsign.cxx: Update callers.
Diffstat (limited to 'modsign.cxx')
-rw-r--r--modsign.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/modsign.cxx b/modsign.cxx
index 8f29dab1..cacd5699 100644
--- a/modsign.cxx
+++ b/modsign.cxx
@@ -284,14 +284,14 @@ init_cert_db_path (const string &cert_db_path) {
// Generate the certificate and database.
string cmd = BINDIR "/stap-gen-cert " + cert_db_path;
- rc = stap_system (cmd.c_str()) == 0;
+ rc = stap_system (0, cmd) == 0;
// If we are root, authorize the new certificate as a trusted
// signer. It is not an error if this fails.
if (geteuid () == 0)
{
cmd = BINDIR "/stap-authorize-signing-cert " + cert_db_path + "/stap.cert";
- stap_system (cmd.c_str());
+ stap_system (0, cmd);
}
return rc;