ssfs rev 45
ssfs-sh: Handle rsync request first
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sun Jun 12 18:16:52 2011 +0200 (2011-06-12) |
parents | db7599c1741c |
children | d1384d21313d |
files | ssfs-server ssfs-sh |
line diff
1.1 --- a/ssfs-server Sun Jun 12 16:52:31 2011 +0200 1.2 +++ b/ssfs-server Sun Jun 12 18:16:52 2011 +0200 1.3 @@ -289,9 +289,9 @@ 1.4 status 1.5 1.6 # Glib minimal libs, use host lib since package should be installed 1.7 - # from same repo. 1.8 + # from same repo. ? libnss_compat* 1.9 gettext "Installing Glibc libraries..." 1.10 - for l in ld-*.*so* libc-*.*so libc.so.* libnss_files* 1.11 + for l in ld-*.*so* libc-*.*so libc.so.* libnss_files* 1.12 do 1.13 cp -a /lib/$l* $root/lib 1.14 done && status
2.1 --- a/ssfs-sh Sun Jun 12 16:52:31 2011 +0200 2.2 +++ b/ssfs-sh Sun Jun 12 18:16:52 2011 +0200 2.3 @@ -8,6 +8,11 @@ 2.4 # Author: Christophe Lincoln <pankso@slitaz.org> 2.5 # 2.6 2.7 +# Handle rsync first, user is chrooted after. 2.8 +case "$@" in 2.9 + *rsync*) exec /bin/sh "$@" ;; 2.10 +esac 2.11 + 2.12 # Ssfs server config doesn't exist in chroot. 2.13 if [ -f /etc/ssfs/ssfs-server.conf ]; then 2.14 . /etc/ssfs/ssfs-server.conf