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

Commit c0bd6dd8 authored by Eric Biggers's avatar Eric Biggers Committed by Automerger Merge Worker
Browse files

Merge "Avoid odd behavior when clearing nonexistent SID" am: 9089ec6b am: cc4ebd84

parents 9f5ec088 cc4ebd84
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -151,7 +151,7 @@ class GateKeeperProxy : public BnGateKeeperService {
    void clear_sid(uint32_t userId) {
        char filename[21];
        snprintf(filename, sizeof(filename), "%u", userId);
        if (remove(filename) < 0) {
        if (remove(filename) < 0 && errno != ENOENT) {
            ALOGE("%s: could not remove file [%s], attempting 0 write", __func__, strerror(errno));
            store_sid(userId, 0);
        }