installsources: fix file permissions, bug #430962
authorNico Roeser <n-roeser@gmx.net>
Sat, 11 Aug 2012 19:11:06 +0000 (12:11 -0700)
committerZac Medico <zmedico@gentoo.org>
Sat, 11 Aug 2012 19:11:06 +0000 (12:11 -0700)
bin/ebuild-helpers/prepstrip

index fe5c1bc3213fd67e6dda84b6be07be5797e270c3..bbcfac2a46435a71e968845f2ab23caffee33e06 100755 (executable)
@@ -307,7 +307,7 @@ then
        [[ -d ${D}${prepstrip_sources_dir} ]] || mkdir -p "${D}${prepstrip_sources_dir}"
        grep -zv '/<[^/>]*>$' "${tmpdir}"/debug.sources | \
                (cd "${WORKDIR}"; LANG=C sort -z -u | \
-               rsync -tL0 --files-from=- "${WORKDIR}/" "${D}${prepstrip_sources_dir}/" )
+               rsync -tL0 --chmod=ugo-st,a+r,go-w,Da+x,Fa-x --files-from=- "${WORKDIR}/" "${D}${prepstrip_sources_dir}/" )
 
        # Preserve directory structure.
        # Needed after running save_elf_sources.