diff options
| author | 2011-06-07 12:25:06 -0700 | |
|---|---|---|
| committer | 2011-06-07 12:25:06 -0700 | |
| commit | ffccff0864a39f59b7ec378c4cf69737a01b8599 (patch) | |
| tree | 2600da83343e3e89fe31769109751467ab400677 /libs/utils/BackupHelpers.cpp | |
| parent | 55f18e18322359442bc58886b27f8b72eed07041 (diff) | |
| parent | b0628bfd5aac480a0d412ac96b8af1d97ac01c30 (diff) | |
Merge "Implement shared-storage full backup/restore"
Diffstat (limited to 'libs/utils/BackupHelpers.cpp')
| -rw-r--r-- | libs/utils/BackupHelpers.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/utils/BackupHelpers.cpp b/libs/utils/BackupHelpers.cpp index f933199fe8d1..b433fd3cf318 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 also means needing pax extended format + // Non-7bit-clean path or embedded spaces also mean needing pax extended format if (!needExtended) { for (size_t i = 0; i < filepath.length(); i++) { - if ((filepath[i] & 0x80) != 0) { + if ((filepath[i] & 0x80) != 0 || filepath[i] == ' ') { needExtended = true; break; } |