use 'read' to get a line at a time to account for directories with spaces in the...
authorAndrew Gaffney <agaffney@gentoo.org>
Sat, 24 Nov 2007 05:35:07 +0000 (05:35 +0000)
committerAndrew Gaffney <agaffney@gentoo.org>
Sat, 24 Nov 2007 05:35:07 +0000 (05:35 +0000)
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@564 67a159dc-881f-0410-a524-ba9dfbe2cb84

ChangeLog
generic/linuxrc

index 78e9a70bf2f8c27421427a696ddee638e04cff1b..7fecdaf9835168eed6c1839c2cfce2ee7e642f8d 100644 (file)
--- 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
index 7d32e157cf9e091187c8708be1f4fafcf46ecaa8..bd62a720f9cef8f40e11e8c52e0d0efe0edc2298 100644 (file)
@@ -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}/}