aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Gaffney <agaffney@gentoo.org>2007-11-24 05:35:07 +0000
committerAndrew Gaffney <agaffney@gentoo.org>2007-11-24 05:35:07 +0000
commitf59adb569ba17a96db4c8ec7878a073bc69f201b (patch)
tree7510b00bcf1dd268ea3791dec7085fd658fced8b
parentlook for cryptsetup in /bin and /sbin (diff)
downloadgenkernel-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
-rw-r--r--ChangeLog4
-rw-r--r--generic/linuxrc2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 78e9a70b..7fecdaf9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,10 @@
# Copyright 2006-2007 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
+ 24 Nov 2007; Andrew Gaffney <agaffney@gentoo.org> generic/linuxrc:
+ use 'read' to get a line at a time to account for directories with spaces in
+ the name. this fixes bug 199701
+
23 Nov 2007; Andrew Gaffney <agaffney@gentoo.org> gen_initramfs.sh,
gen_initrd.sh:
look for cryptsetup in /bin and /sbin
diff --git a/generic/linuxrc b/generic/linuxrc
index 7d32e157..bd62a720 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}/}