瀏覽代碼

Resolves: bug 224606
Description: Instance specific dirs should be in instance directory
Fix Description: Needed to reverse rundir and ds_get_server_name() when constructing the pidfile name.
Reviewed by: nhosoi (Thanks!)

Rich Megginson 19 年之前
父節點
當前提交
e724dc43c8
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      ldap/admin/lib/dsalib_updown.c

+ 1 - 1
ldap/admin/lib/dsalib_updown.c

@@ -95,7 +95,7 @@ ds_get_updown_status()
       fprintf(stderr, "ds_get_updown_status: could not get install root\n");
         return(DS_SERVER_UNKNOWN);
     }
-    PR_snprintf(pid_file_name, BIG_LINE, "%s/%s.pid", ds_get_server_name(), rundir);
+    PR_snprintf(pid_file_name, BIG_LINE, "%s/%s.pid", rundir, ds_get_server_name());
     pidfile = fopen(pid_file_name, "r");
     if ( pidfile == NULL ) {
 /*