Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9f7bcda1 authored by Christopher Tate's avatar Christopher Tate
Browse files

Fix embedded spaces in tar stream EVEN HARDER

Change-Id: I97ac586ff3541a05d73e1e53f680517c15e6c662
parent 5212f30b
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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;
            }