Author: rmeggins
Update of /cvs/dirsec/ldapserver/ldap/admin/lib
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv9469
Modified Files:
dsalib_updown.c
Log Message:
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!)
Index: dsalib_updown.c
===================================================================
RCS file: /cvs/dirsec/ldapserver/ldap/admin/lib/dsalib_updown.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- dsalib_updown.c 26 Jan 2007 20:00:40 -0000 1.9
+++ dsalib_updown.c 30 Jan 2007 00:08:01 -0000 1.10
@@ -95,7 +95,7 @@
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 ) {
/*
Show replies by thread