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

Commit ec0afbfa authored by Shubham Ajmera's avatar Shubham Ajmera Committed by Andreas Gampe
Browse files

Fix up error message in installd::prepare_app_cache_dir

Fix log when actual_mode and target_mode of the app_cache_dir
mismatch.

Current log - Mismatched cache GID/mode at <path>: found 10021 but \
               expected 10021
New log - Mismatched cache GID/mode at <path>: found 10021/target_mode \
               but expected 10021/actual_mode

(cherry picked from commit 347ac5df)

Test: make

Merged-In: I0f9041ed5d436ccf8265cbab3852ae8d1b17a74a
Change-Id: I0f9041ed5d436ccf8265cbab3852ae8d1b17a74a
parent dd42e278
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1074,7 +1074,7 @@ int prepare_app_cache_dir(const std::string& parent, const char* name, mode_t ta
    } else {
        // Mismatched GID/mode is recoverable; fall through to update
        LOG(DEBUG) << "Mismatched cache GID/mode at " << path << ": found " << st.st_gid
                << " but expected " << gid;
                << "/" << actual_mode << " but expected " << gid << "/" << target_mode;
    }

    // Directory is owned correctly, but GID or mode mismatch means it's