From: Zac Medico Date: Fri, 23 Oct 2009 18:20:34 +0000 (-0000) Subject: Use find with -print0 for absolute safety. X-Git-Tag: v2.2_rc47~13 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=d948e3a323100e9cd1fbb8be4a9ad1cc9c0dfc53;p=portage.git Use find with -print0 for absolute safety. svn path=/main/trunk/; revision=14707 --- diff --git a/bin/ebuild-helpers/prepstrip b/bin/ebuild-helpers/prepstrip index 0f97ca05a..13cd5a6b8 100755 --- a/bin/ebuild-helpers/prepstrip +++ b/bin/ebuild-helpers/prepstrip @@ -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