From 9f7bcda136283db5bed5f6c66475d11bcda2de5a Mon Sep 17 00:00:00 2001 From: Christopher Tate Date: Tue, 7 Jun 2011 13:17:17 -0700 Subject: [PATCH] Fix embedded spaces in tar stream EVEN HARDER Change-Id: I97ac586ff3541a05d73e1e53f680517c15e6c662 --- libs/utils/BackupHelpers.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/utils/BackupHelpers.cpp b/libs/utils/BackupHelpers.cpp index b433fd3cf..f933199fe 100644 --- a/libs/utils/BackupHelpers.cpp +++ b/libs/utils/BackupHelpers.cpp @@ -503,10 +503,10 @@ int write_tarfile(const String8& packageName, const String8& domain, 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) { for (size_t i = 0; i < filepath.length(); i++) { - if ((filepath[i] & 0x80) != 0 || filepath[i] == ' ') { + if ((filepath[i] & 0x80) != 0) { needExtended = true; break; }