Package: rssh
Version: 2.3.4-3
Severity: normal
Tags: patch

Similarly to #335384, libnsl is needed or scp on the other end of the
chroot says "unknown user XXX" and dies.

A patch against mkchroot.sh to fix this is attached.


-- System Information:
Debian Release: jessie/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.11-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages rssh depends on:
ii  debconf [debconf-2.0]  1.5.52
ii  libc6                  2.17-97
ii  openssh-server         1:6.4p1-1

rssh recommends no packages.

Versions of packages rssh suggests:
pn  cvs         <none>
ii  makejail    0.0.5-10
pn  rdist       <none>
ii  rsync       3.1.0-2
pn  subversion  <none>

-- Configuration Files:
/etc/rssh.conf changed [not included]

-- debconf information excluded
commit f787cac91c52c0d0fa4690a5e0a111d70ce1a78c
Author: James Nylen <jny...@gmail.com>
Date:   Mon Aug 25 13:00:22 2014 -0500

    Fix mkchroot.sh

diff --git a/mkchroot.sh b/mkchroot.sh
index 25f3a7d..c3bd9f7 100755
--- a/mkchroot.sh
+++ b/mkchroot.sh
@@ -175,6 +175,13 @@ else
     tar -cf - /lib/*/libnss_compat* /lib/*/libnss*_files* \
         | tar -C "$jail_dir" -xvf - | sed 's/^/\t/'
 fi
+if [ -n "$(find /lib -maxdepth 1 -name 'libnsl*' -print -quit)" ] ; then
+    tar -cf - /lib/libnsl* \
+        | tar -C "$jail_dir" -xvf - | sed 's/^/\t/'
+else
+    tar -cf - /lib/*/libnsl* \
+        | tar -C "$jail_dir" -xvf - | sed 's/^/\t/'
+fi
 
 #####################################################################
 #

Reply via email to