summaryrefslogtreecommitdiffstats
path: root/libs
diff options
context:
space:
mode:
authorChristopher Tate <ctate@google.com>2011-06-07 13:17:17 -0700
committerChristopher Tate <ctate@google.com>2011-06-07 13:17:17 -0700
commit3f6c77b7caa02193205cb6ce180e0eb5a7579aa6 (patch)
treef811ac1b87ff6368b62db25eca407badb37f0a81 /libs
parent65abc4531f1222ffa04350a3afc6d61fcc77b2a3 (diff)
downloadframeworks_base-3f6c77b7caa02193205cb6ce180e0eb5a7579aa6.zip
frameworks_base-3f6c77b7caa02193205cb6ce180e0eb5a7579aa6.tar.gz
frameworks_base-3f6c77b7caa02193205cb6ce180e0eb5a7579aa6.tar.bz2
Fix embedded spaces in tar stream EVEN HARDER
Change-Id: I97ac586ff3541a05d73e1e53f680517c15e6c662
Diffstat (limited to 'libs')
-rw-r--r--libs/utils/BackupHelpers.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/utils/BackupHelpers.cpp b/libs/utils/BackupHelpers.cpp
index b433fd3..f933199 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;
}