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

Commit 27c791b8 authored by Christopher Tate's avatar Christopher Tate Committed by Android (Google) Code Review
Browse files

Merge "Restore from a previous full backup's tarfile"

parents 0ac00a6a 15e11303
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -503,6 +503,16 @@ int write_tarfile(const String8& packageName, const String8& domain,
        needExtended = true;
    }

    // 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) {
                needExtended = true;
                break;
            }
        }
    }

    int err = 0;
    struct stat64 s;
    if (lstat64(filepath.string(), &s) != 0) {