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

Commit 008abac0 authored by Mike Chan's avatar Mike Chan
Browse files

init now returns proper error codes in dmesg for write command (init.rc)



Signed-off-by: default avatarMike Chan <mike@android.com>
parent a65044fa
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -49,7 +49,7 @@ static int write_file(const char *path, const char *value)
    fd = open(path, O_WRONLY|O_CREAT, 0622);

    if (fd < 0)
        return -1;
        return -errno;

    len = strlen(value);

@@ -59,7 +59,7 @@ static int write_file(const char *path, const char *value)

    close(fd);
    if (ret < 0) {
        return -1;
        return -errno;
    } else {
        return 0;
    }