diff options
author | Andrew Gaffney <agaffney@gentoo.org> | 2007-11-24 05:35:07 +0000 |
---|---|---|
committer | Andrew Gaffney <agaffney@gentoo.org> | 2007-11-24 05:35:07 +0000 |
commit | f59adb569ba17a96db4c8ec7878a073bc69f201b (patch) | |
tree | 7510b00bcf1dd268ea3791dec7085fd658fced8b /generic | |
parent | look for cryptsetup in /bin and /sbin (diff) | |
download | genkernel-f59adb569ba17a96db4c8ec7878a073bc69f201b.tar.gz genkernel-f59adb569ba17a96db4c8ec7878a073bc69f201b.tar.bz2 genkernel-f59adb569ba17a96db4c8ec7878a073bc69f201b.zip |
use 'read' to get a line at a time to account for directories with spaces in the name. this fixes bug 199701
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@564 67a159dc-881f-0410-a524-ba9dfbe2cb84
Diffstat (limited to 'generic')
-rw-r--r-- | generic/linuxrc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/linuxrc b/generic/linuxrc index 7d32e15..bd62a72 100644 --- a/generic/linuxrc +++ b/generic/linuxrc @@ -641,7 +641,7 @@ then ln -s "`readlink ${NEW_ROOT}/${FS_LOCATION}/${x}`" "${x}" 2>/dev/null else # List all subdirectories of x - for directory in `find "${NEW_ROOT}/${FS_LOCATION}/${x}" -type d 2>/dev/null` + find "${NEW_ROOT}/${FS_LOCATION}/${x}" -type d 2>/dev/null | while read directory do ## Strip the prefix of the FS_LOCATION directory=${directory#${NEW_ROOT}/${FS_LOCATION}/} |