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

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

Merge "getevent: O_RDWR -> O_RDONLY | O_CLOEXEC"

parents 993ae1f2 38e9f232
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -321,7 +321,7 @@ static int open_device(const char *device, int print_flags)
    char idstr[80];
    struct input_id id;

    fd = open(device, O_RDWR);
    fd = open(device, O_RDONLY | O_CLOEXEC);
    if(fd < 0) {
        if(print_flags & PRINT_DEVICE_ERRORS)
            fprintf(stderr, "could not open %s, %s\n", device, strerror(errno));