[Pkg-fedora-ds-maintainers] [libapache2-mod-nss] 03/156: The path to the cert database was hardcoded, use the value passed in by Apache.

Timo Aaltonen tjaalton-guest at moszumanska.debian.org
Wed Jul 2 13:55:22 UTC 2014


This is an automated email from the git hooks/post-receive script.

tjaalton-guest pushed a commit to branch master
in repository libapache2-mod-nss.

commit e5a4f202262ae20b5d7e7ae39ec39e59fe94f505
Author: rcritten <>
Date:   Fri May 20 21:21:04 2005 +0000

    The path to the cert database was hardcoded, use the value passed in
    by Apache.
---
 nss_pcache.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/nss_pcache.c b/nss_pcache.c
index 40ecadf..5912c02 100644
--- a/nss_pcache.c
+++ b/nss_pcache.c
@@ -297,6 +297,11 @@ int main(int argc, char ** argv)
     char * tokenName;
     char * tokenpw;
 
+    if (argc != 2) {
+        fprintf(stderr, "Usage: nss_pcache <directory>\n");
+        exit(1);
+    }
+
     /* Initialize NSPR */
     PR_Init(PR_USER_THREAD, PR_PRIORITY_NORMAL, 256);
  
@@ -304,7 +309,7 @@ int main(int argc, char ** argv)
     PK11_ConfigurePKCS11(NULL,NULL,NULL, INTERNAL_TOKEN_NAME, NULL, NULL,NULL,NULL,8,1);
  
     /* Initialize NSS and open the certificate database read-only. */
-    rv = NSS_Initialize("/home/rcrit/redhat/apache//conf/nss/", NULL, NULL, "secmod.db", NSS_INIT_READONLY);
+    rv = NSS_Initialize(argv[1], NULL, NULL, "secmod.db", NSS_INIT_READONLY);
 
     in = PR_GetSpecialFD(PR_StandardInput);
     out = PR_GetSpecialFD(PR_StandardOutput);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-fedora-ds/libapache2-mod-nss.git



More information about the Pkg-fedora-ds-maintainers mailing list