1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

r12990: BUG 3329: patch from David May <mayd@cygnus.uwa.edu.au> for Solaris shell script portability issues in 'make test'

(This used to be commit 19339a9510)
This commit is contained in:
Gerald Carter 2006-01-18 04:44:59 +00:00 committed by Gerald (Jerry) Carter
parent c42be9fd38
commit e2de656314
2 changed files with 5 additions and 5 deletions

View File

@ -34,7 +34,7 @@ stop_smbd()
## check to see if smbd is already running
check_smbd_running
if test $? == 0; then
if test $? = 0; then
echo "Unable to stop smbd!"
exit 2
fi
@ -74,7 +74,7 @@ stop_nmbd()
## check to see if smbd is already running
kill -0 $nmbd_pid 2> /dev/null
if test $? == 0; then
if test $? = 0; then
echo "Unable to stop nmbd!"
exit 2
fi

View File

@ -1,11 +1,11 @@
#!/bin/sh
if [ "x$1" == "x" ]; then
if [ "x$1" = "x" ]; then
echo "$0 <directory>"
exit 1
fi
if [ $# == 2 ]; then
if [ $# = 2 ]; then
testnum=$2
fi
@ -49,7 +49,7 @@ export USERNAME PASSWORD
## verify that we were built with --enable-socket-wrapper
##
if test "x`smbd -b | grep SOCKET_WRAPPER`" == "x"; then
if test "x`smbd -b | grep SOCKET_WRAPPER`" = "x"; then
echo "***"
echo "*** You must include --enable-socket-wrapper when compiling Samba"
echo "*** in order to execute 'make test'. Exiting...."