Skip to content

Commit

Permalink
Merge pull request taosdata#20 from amosbird/master
Browse files Browse the repository at this point in the history
Fix compilation of taosdump
  • Loading branch information
hzcheng authored Jul 16, 2019
2 parents 36021b2 + 11389fc commit a4ba49d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/kit/taosdump/taosdump.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit a4ba49d

Please sign in to comment.