diff options
author | Dave Brolley <brolley@redhat.com> | 2009-06-10 11:36:50 -0400 |
---|---|---|
committer | Dave Brolley <brolley@redhat.com> | 2009-06-10 11:36:50 -0400 |
commit | 36b66efaae572dddcfb04e9a995ca69063d0e1ff (patch) | |
tree | eb8dde475a86c5e9fdd3df112a770ee13071660d /main.cxx | |
parent | 3309d82e7987310cddd26342b16abfdbf292b29d (diff) | |
download | systemtap-steved-36b66efaae572dddcfb04e9a995ca69063d0e1ff.tar.gz systemtap-steved-36b66efaae572dddcfb04e9a995ca69063d0e1ff.tar.xz systemtap-steved-36b66efaae572dddcfb04e9a995ca69063d0e1ff.zip |
Respect SYSTEMTAP_DIR when looking for nss certificate databases.
Diffstat (limited to 'main.cxx')
-rw-r--r-- | main.cxx | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -415,14 +415,6 @@ main (int argc, char * const argv []) else s.cert_db_path = getenv("HOME") + string ("/.systemtap/ssl/server"); - // Location of our signing certificate. - // If we're root, use the database in SYSCONFDIR, otherwise - // use the one in our $HOME directory. */ - if (geteuid() == 0) - s.cert_db_path = SYSCONFDIR "/systemtap/ssl/server"; - else - s.cert_db_path = getenv("HOME") + string ("/.systemtap/ssl/server"); - const char* s_p = getenv ("SYSTEMTAP_TAPSET"); if (s_p != NULL) { @@ -468,6 +460,14 @@ main (int argc, char * const argv []) } } + // Location of our signing certificate. + // If we're root, use the database in SYSCONFDIR, otherwise + // use the one in s.data_path. */ + if (geteuid() == 0) + s.cert_db_path = SYSCONFDIR "/systemtap/ssl/server"; + else + s.cert_db_path = s.data_path + "/ssl/server"; + const char* s_tc = getenv ("SYSTEMTAP_COVERAGE"); if (s_tc != NULL) s.tapset_compile_coverage = true; |