[SCM] Samba Shared Repository - branch master updated -
73875cd344608b591fa884ab99b5f3a10550c149
Karolin Seeger
kseeger at samba.org
Mon Jan 5 13:56:36 GMT 2009
The branch, master has been updated
via 73875cd344608b591fa884ab99b5f3a10550c149 (commit)
from 6752d78e946b2c4278e2deba325c76fb7ffbc06a (commit)
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master
- Log -----------------------------------------------------------------
commit 73875cd344608b591fa884ab99b5f3a10550c149
Author: Karolin Seeger <kseeger at samba.org>
Date: Mon Jan 5 14:54:28 2009 +0100
examples: Avoid bashism in perfcount.init.
This fixes bug #6000.
Thanks to the Debian Samba package maintainers for providing the patch!
Remove trailing whitespaces.
Karolin
-----------------------------------------------------------------------
Summary of changes:
examples/perfcounter/perfcountd.init | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
Changeset truncated at 500 lines:
diff --git a/examples/perfcounter/perfcountd.init b/examples/perfcounter/perfcountd.init
index 683e913..8a89fad 100755
--- a/examples/perfcounter/perfcountd.init
+++ b/examples/perfcounter/perfcountd.init
@@ -21,15 +21,15 @@
PATH=/bin:/usr/bin:/sbin:/usr/sbin
-killproc()
+killproc()
{
pid=`ps aux | grep $1 | egrep -v '(grep|perfcountd)' | awk '{print $2}'`
- if [ "$pid" != "" ]; then
+ if [ -z "$pid" ]; then
kill $pid
fi
}
-# Start/stop processes
+# Start/stop processes
case "$1"
in
--
Samba Shared Repository
More information about the samba-cvs
mailing list