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

Commit 62833808 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Add O_CLOEXEC"

parents 18a936b3 29919490
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -746,7 +746,7 @@ void load_recovery_id_prop() {
        return;
        return;
    }
    }


    int fd = open(rec->blk_device, O_RDONLY);
    int fd = open(rec->blk_device, O_RDONLY | O_CLOEXEC);
    if (fd == -1) {
    if (fd == -1) {
        PLOG(ERROR) << "error opening block device " << rec->blk_device;
        PLOG(ERROR) << "error opening block device " << rec->blk_device;
        return;
        return;