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

Commit f2a8d0a5 authored by Android (Google) Code Review's avatar Android (Google) Code Review
Browse files

Merge change 5749

* changes:
  init now returns proper error codes in dmesg for write command (init.rc)
parents 4fc5257c 008abac0
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;
    }