From 5a726240a2e3fc25d7d324ff483567ec4b1b06ee Mon Sep 17 00:00:00 2001
From: lutoff <lutoff@localhost>
Date: Mon, 23 Mar 2009 17:52:47 +0000
Subject: [PATCH] Fix for issue #3626 (Occurrences of grep, cat,... commands should be replaced with sh built-in commands) Replace occurrences of 'cat' and 'grep' by shell builtin command.

---
 opends/resource/bin/stop-ds |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/opends/resource/bin/stop-ds b/opends/resource/bin/stop-ds
index f22ffe0..09e241d 100755
--- a/opends/resource/bin/stop-ds
+++ b/opends/resource/bin/stop-ds
@@ -159,7 +159,8 @@
 then
   if test -f "${INSTANCE_ROOT}/logs/server.pid"
   then
-    kill `cat "${INSTANCE_ROOT}/logs/server.pid"`
+    read PID < "${INSTANCE_ROOT}/logs/server.pid"
+    kill ${PID}
     EXIT_CODE=${?}
     if test ${EXIT_CODE} -eq 0
     then

--
Gitblit v1.10.0