DCC version 1.2.51

Vernon Schryver vjs@calcite.rhyolite.com
Sun Sep 5 02:50:57 UTC 2004


> From: Gary Mills 

> I just installed this version on my test server.  So far, it seems
> to work normally.  However, I got these errors when starting it:
>
> 	# sh /etc/init.d/rcDCC start
> 	/usr/local/dcc/libexec/start-dccm: test: argument expected
> 	/usr/local/dcc/libexec/start-dccifd: test: argument expected
>
> The culprit seems to be this code:
>
> 	if test ! -z "$GREY_CLIENT_ARGS"; then
> 	    if test -z `expr "X$GREY_CLIENT_ARGS" : '.*\(-G\)'`; then
> 	        GREY_CLIENT_ARGS="-G$GREY_CLIENT_ARGS"
> 	    fi

That looks a difference between Sun's version of /bin/sh and other
flavors.  This seems to work on both Solaris and FreeBSD:

    if test ! -z "$GREY_CLIENT_ARGS"; then
	if test X`expr "X$GREY_CLIENT_ARGS" : '.*\(-G\)'` = X; then
	    GREY_CLIENT_ARGS="-G$GREY_CLIENT_ARGS"
	fi
    fi


thanks,
Vernon Schryver    vjs@rhyolite.com



More information about the DCC mailing list

Contact vjs@rhyolite.com by mail or use the form.