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

Commit 7baecbe6 authored by Elliott Hughes's avatar Elliott Hughes
Browse files

Fix the fs_config call.

fs_config ORs in bits to the existing mode value.

Change-Id: I23f0655f9c4c8c8dc43ed979f3b519d7c03a11f8
parent 61ab1618
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -305,7 +305,7 @@ static bool do_send(int s, const std::string& spec, std::vector<char>& buffer) {
    gid_t gid = -1;
    uint64_t cap = 0;
    if (should_use_fs_config(path)) {
        unsigned int broken_api_hack;
        unsigned int broken_api_hack = mode;
        fs_config(path.c_str(), 0, &uid, &gid, &broken_api_hack, &cap);
        mode = broken_api_hack;
    }