[scponly] Minor bug in setup_chroot.sh

Hideyuki KURASHINA rushani at bl.mmtr.or.jp
Tue Dec 27 10:17:50 EST 2005


>>> On Tue, 27 Dec 2005 16:05:41 +0100, "Helmut Schneider" <jumper99 at gmx.de> said:

> Please change the following near line 74:
> 
> -elif 
> +else

I encountered same problem, plus test(1) does not understand "=="
(at least FreeBSD).

Joe, could you please include attached patch for future scponly release?

-- rushani

--- setup_chroot.sh.in.orig	Tue Dec 20 15:52:10 2005
+++ setup_chroot.sh.in	Wed Dec 28 00:14:23 2005
@@ -67,12 +67,12 @@ if [ x at PROG_LDD@ = x ]; then
 	fail "shared libraries to copy into your chrooted dir..."
 fi
 
-if [ `uname -s` == "OpenBSD" ]; then
+if [ `uname -s` = "OpenBSD" ]; then
 	for bin in $BINARIES; do
 		GREP_LIST="$GREP_LIST -e $bin"
 	done
 	LIB_LIST=`/usr/bin/ldd $BINARIES 2> /dev/null | /usr/bin/tr -s " " | /usr/bin/cut -f5 -d" " | /usr/bin/grep -v "^Name" | /usr/bin/grep -v $GREP_LIST | /usr/bin/sort -u`
-elif
+else
 	LIB_LIST=`@PROG_LDD@ $BINARIES 2> /dev/null | @PROG_CUT@ -f2 -d\> | @PROG_CUT@ -f1 -d\( | @PROG_GREP@ "^ " | @PROG_SORT@ -u`
 fi



More information about the scponly mailing list