forked from enlightenment/efl
efreet: Print error on write error
Better solution to stop ignoring return value. SVN revision: 62502
This commit is contained in:
parent
51e1eca0a9
commit
34d2a47e50
|
@ -1090,10 +1090,8 @@ main(int argc, char **argv)
|
|||
tmpfd = open(file, O_CREAT | O_WRONLY, S_IRUSR | S_IWUSR);
|
||||
if (tmpfd >= 0)
|
||||
{
|
||||
int written;
|
||||
|
||||
efreet_fsetowner(tmpfd);
|
||||
written = write(tmpfd, "a", 1);
|
||||
if (write(tmpfd, "a", 1) != 1) perror("write");
|
||||
close(tmpfd);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue