[SCM] Samba Shared Repository - branch master updated - 2e09746a4db4186c9d648370b9004971bc18e5c9

Karolin Seeger kseeger at samba.org
Mon Jan 5 15:34:38 GMT 2009


The branch, master has been updated
       via  2e09746a4db4186c9d648370b9004971bc18e5c9 (commit)
       via  997f0fdaddfa4cd433dc13de33f780c4672872de (commit)
      from  01891782fd247c57f0ecd79ed9adf618108c5fac (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit 2e09746a4db4186c9d648370b9004971bc18e5c9
Author: Karolin Seeger <kseeger at samba.org>
Date:   Mon Jan 5 16:33:00 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

commit 997f0fdaddfa4cd433dc13de33f780c4672872de
Author: Karolin Seeger <kseeger at samba.org>
Date:   Mon Jan 5 16:30:10 2009 +0100

    Revert "examples: Avoid bashism in perfcount.init."
    
    This reverts commit 73875cd344608b591fa884ab99b5f3a10550c149.

-----------------------------------------------------------------------

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 8a89fad..0beff96 100755
--- a/examples/perfcounter/perfcountd.init
+++ b/examples/perfcounter/perfcountd.init
@@ -24,14 +24,14 @@ PATH=/bin:/usr/bin:/sbin:/usr/sbin
 killproc()
 {
 	pid=`ps aux | grep $1 | egrep -v '(grep|perfcountd)' | awk '{print $2}'`
-	if [ -z "$pid" ]; then
+	if [ x"$pid" != "x" ]; then
 		kill $pid
 	fi
 }
 
 # Start/stop processes
 
-case "$1" 
+case "$1"
 in
 start)
 	/opt/samba/bin/perfcount -d -f /var/lib/samba/perfmon 2> /dev/null
@@ -47,7 +47,7 @@ stop)
 
 status)
 	pid=`ps aux | grep perfcount | egrep -v '(grep|perfcountd)' | awk '{print $2}'`
-	if [ "$pid" == "" ]; then
+	if [ x"$pid" = "x" ]; then
 		echo "Dead!"
 		exit 2;
 	fi


-- 
Samba Shared Repository


More information about the samba-cvs mailing list