From: Francesco Chemolli Date: Tue, 23 Mar 2010 11:09:45 +0000 (+0100) Subject: Added more detection locations for smbclient in basic_auth/SMB helper configlet. X-Git-Tag: SQUID_3_2_0_1~332 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b4ef220ff5fe9f48a354031d5b162a502a33a3a0;p=thirdparty%2Fsquid.git Added more detection locations for smbclient in basic_auth/SMB helper configlet. --- diff --git a/helpers/basic_auth/SMB/config.test b/helpers/basic_auth/SMB/config.test index 5b11788d17..f41b21fd12 100755 --- a/helpers/basic_auth/SMB/config.test +++ b/helpers/basic_auth/SMB/config.test @@ -1,5 +1,8 @@ #!/bin/sh -if [ -x ${SAMBAPREFIX:-/usr/local/samba}/bin/smbclient ]; then - exit 0 -fi +for prefix in ${SAMBAPREFIX} /usr/local /opt /opt/samba /usr/local/samba /usr +do + if [ -x ${prefix}/bin/smbclient ]; then + exit 0 + fi +done exit 1