Merge change 5749
* changes: init now returns proper error codes in dmesg for write command (init.rc)
This commit is contained in:
commit
f2a8d0a522
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue