ldap/admin/src/scripts/DSUtil.pm.in | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 8f517d5cc769f5c1b728f48d073139f17af8226d
Author: Rich Megginson <rmeggins(a)redhat.com>
Date: Mon Apr 5 09:06:12 2010 -0600
Bug 577384 - Remove-ds.pl script throws "sh: STARTPIDFILE.*=: not found"
error on Solaris 9
https://bugzilla.redhat.com/show_bug.cgi?id=577384
Resolves: bug 577384
Bug Description: Remove-ds.pl script throws "sh: STARTPIDFILE.*=: not found"
error on Solaris 9
Reviewed by: nkinder (Thanks!)
Branch: HEAD
Fix Description: Have to escape the ^ caret and * asterisk for the shell
command.
Platforms tested: Solaris 9
Flag Day: no
Doc impact: no
diff --git a/ldap/admin/src/scripts/DSUtil.pm.in b/ldap/admin/src/scripts/DSUtil.pm.in
index b867c98..4b4f6da 100644
--- a/ldap/admin/src/scripts/DSUtil.pm.in
+++ b/ldap/admin/src/scripts/DSUtil.pm.in
@@ -995,7 +995,7 @@ sub remove_pidfile
$pidfile = $run_dir . "/" . $product_name . "-" . $serv_id .
".startpid";
}
- my $pattern = "^" . $type . ".*=";
+ my $pattern = "\\^" . $type . ".\\*=";
my $pidline = `grep $pattern $instdir/start-slapd`;
chomp($pidline);
my ($key, $pidfile) = split(/=/, $pidline);