From: Ben Walton <[email protected]>

The linux-gate library is a virtual library injected by the kernel.
It doesn't actually exist.  The tr | cut filter was grabbing the
memory address and then creating $jail_dir. (including the .) when
trying to copy this library in.

Signed-off-by: Ben Walton <[email protected]>
---
 mkchroot.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/mkchroot.sh b/mkchroot.sh
index 9e17d5d..ee98ed8 100755
--- a/mkchroot.sh
+++ b/mkchroot.sh
@@ -128,7 +128,7 @@ cp "$chroot_helper_path" "$jail_dir$chroot_helper_path" || \
 
 for prog in $scp_path $sftp_server_path $rssh_path $chroot_helper_path; do
        echo "Copying libraries for $prog."
-       libs=`ldd $prog | tr -s ' ' | cut -d' ' -f3`
+       libs=`ldd $prog | grep -v linux-gate | tr -s ' ' | cut -d' ' -f3`
        for lib in $libs; do
                mkdir -p "$jail_dir$(dirname $lib)"
                echo -e "\t$lib"
-- 
1.7.4.1


------------------------------------------------------------------------------
AppSumo Presents a FREE Video for the SourceForge Community by Eric 
Ries, the creator of the Lean Startup Methodology on "Lean Startup 
Secrets Revealed." This video shows you how to validate your ideas, 
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
_______________________________________________
rssh-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/rssh-discuss

Reply via email to