Use find with -print0 for absolute safety. (trunk r14707)
authorZac Medico <zmedico@gentoo.org>
Sat, 24 Oct 2009 07:05:51 +0000 (07:05 -0000)
committerZac Medico <zmedico@gentoo.org>
Sat, 24 Oct 2009 07:05:51 +0000 (07:05 -0000)
svn path=/main/branches/2.1.7/; revision=14716

bin/ebuild-helpers/prepstrip

index 0f97ca05a64e02063cb1112c2e26b41b5f3532f6..13cd5a6b826b3e107d22dc6cf42659bbf7fd329d 100755 (executable)
@@ -187,8 +187,8 @@ then
        # Preserve directory structure.
        # Needed after running save_elf_sources.
        # https://bugzilla.redhat.com/show_bug.cgi?id=444310
-       while read -r emptydir
+       while read -r -d $'\0' emptydir
        do
                touch "$emptydir"/.keepdir
-       done < <(find "${D}${prepstrip_sources_dir}/" -type d -empty)
+       done < <(find "${D}${prepstrip_sources_dir}/" -type d -empty -print0)
 fi