commit | b3b923a7387c6baa12fc24ac1775617604a3e316 | [log] [tgz] |
---|---|---|
author | b.liu <b.liu@mobiletek.cn> | Thu Jun 06 15:15:49 2024 +0800 |
committer | b.liu <b.liu@mobiletek.cn> | Thu Jun 06 15:15:49 2024 +0800 |
tree | 97daf702c80dcd70722fc2425ea5e781ee65529b | |
parent | a066e066370dcad0fc59522c3170bf16663de402 [diff] [blame] |
兼容glibc Change-Id: I7b1361d8f1e3c31c2d94b31b6addc32869dee457
diff --git a/mbtk/test/others/partition_write_demo.c b/mbtk/test/others/partition_write_demo.c index 762e49c..1256d75 100755 --- a/mbtk/test/others/partition_write_demo.c +++ b/mbtk/test/others/partition_write_demo.c
@@ -12,7 +12,7 @@ char buffer[102400]; long len = -1; long count = 0; - int fd = open("/etc/file.temp", O_CREAT | O_WRONLY | O_TRUNC); + int fd = open("/etc/file.temp", O_CREAT | O_WRONLY | O_TRUNC, 0666); if(fd < 0) { printf("Open file error:%d\n", errno); return -1;