未验证 提交 a4ba49d8 编写于 作者: H hzcheng 提交者: GitHub

Merge pull request #20 from amosbird/master

Fix compilation of taosdump
......@@ -614,7 +614,7 @@ int taosDumpDb(SDbInfo *dbInfo, struct arguments *arguments, FILE *fp) {
TAOS_FIELD *fields = taos_fetch_fields(result);
fd = open(".table.tmp", O_RDWR | O_CREAT);
fd = open(".table.tmp", O_RDWR | O_CREAT, 0755);
if (fd == -1) {
fprintf(stderr, "failed to open temp file\n");
taos_free_result(result);
......@@ -819,7 +819,7 @@ int32_t taosDumpMetric(char *metric, struct arguments *arguments, FILE *fp) {
return -1;
}
fd = open(".table.tmp", O_RDWR | O_CREAT);
fd = open(".table.tmp", O_RDWR | O_CREAT, 0755);
if (fd < 0) {
fprintf(stderr, "failed to open temp file");
return -1;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册