Merge change 5749

* changes:
  init now returns proper error codes in dmesg for write command (init.rc)
This commit is contained in:
Android (Google) Code Review 2009-06-30 14:26:03 -07:00
commit f2a8d0a522
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}