Merge "Fix embedded spaces in tar stream EVEN HARDER"

This commit is contained in:
Christopher Tate 2011-06-07 15:20:34 -07:00 committed by Android (Google) Code Review
commit 41bcc1e343

View File

@ -503,10 +503,10 @@ int write_tarfile(const String8& packageName, const String8& domain,
needExtended = true; needExtended = true;
} }
// Non-7bit-clean path or embedded spaces also mean needing pax extended format // Non-7bit-clean path also means needing pax extended format
if (!needExtended) { if (!needExtended) {
for (size_t i = 0; i < filepath.length(); i++) { for (size_t i = 0; i < filepath.length(); i++) {
if ((filepath[i] & 0x80) != 0 || filepath[i] == ' ') { if ((filepath[i] & 0x80) != 0) {
needExtended = true; needExtended = true;
break; break;
} }