no modification
This commit is contained in:
parent
4f0f97abce
commit
716b8e3145
@ -14,7 +14,7 @@ int file_write (const char *path, const char *buf, size_t msize)
|
|||||||
// printf("file_write: path to open %s\n", path);
|
// printf("file_write: path to open %s\n", path);
|
||||||
int fd = open (path, O_WRONLY);
|
int fd = open (path, O_WRONLY);
|
||||||
if (fd <= 0) {
|
if (fd <= 0) {
|
||||||
printf("file_write: fd < 0\n");
|
printf("file_write: fd < 0 path : %s\n", path);
|
||||||
perror ("file_write");
|
perror ("file_write");
|
||||||
return ER_FILE_OPEN;
|
return ER_FILE_OPEN;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user