setup_chroot.sh does not copy file /lib/libnss_files.so.2
Bug #620019 reported by
Chad Armstrong
This bug affects 6 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
scponly (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: scponly
I was getting the "connection closed" problem from SFTP clients until i copied libnss_files.so.2 to the chroot lib directory.
Ubuntu 10.04 LTS
scponly 4.8-4
To post a comment you must log in.
Bug reproduced. I made a quick fix. chroot. patch" file and apply with "patch -p0 < setup_chroot.patch"
copy/paste the snip below to "setup_
Tested on Ubuntu 10.04 LTS
<snip> doc/scponly/ setup_chroot/ setup_chroot. sh 2010-08-20 10:35:17.952660599 +0200
LIB_LIST= "$LIB_LIST /lib/libnss_ compat* "
--- /usr/share/
+++ setup_chroot.sh 2010-08-20 10:40:35.892684331 +0200
@@ -95,6 +95,11 @@
fi
+/bin/ls /lib/libnss_files* > /dev/null 2>&1
+if [ $? -eq 0 ]; then
+ LIB_LIST="$LIB_LIST /lib/libnss_files*"
+fi
+
# check that the configure options are correct for chrooted operation:
if [ xscponlyc = x ] || [ ! -f ./config.h ]; then
</snip>