﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
818	missing quoting in chroot command	lizardo@…	lfs-book@…	"Reported by Seth W. Klein: 
 
In the chroot command in 
http://www.linuxfromscratch.org/lfs/view/cvs/chapter06/chroot.html 
several environment variable references are unquoted.  This leads to 
misleading error messages such as: 
 
chroot: cannot change root directory to /tools/bin/env: Not a directory 
 
when $LFS is not set.  It is also broken if $LFS contains spaces.  The 
correct form is: 
 
chroot ""$LFS"" /tools/bin/env -i \ 
    HOME=/root  TERM=""$TERM""  PS1='\u:\w\$ ' \ 
    PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin \ 
    /tools/bin/bash +h 
 
Other chroot commands probably have similar bugs."	defect	closed	lowest		Book	CVS	normal	fixed		
