提交 6c30f1a1 编写于 作者: H Hongze Cheng

fix bug

上级 540d4245
...@@ -208,7 +208,7 @@ int tfsopen(TFILE *pf, int flags) { ...@@ -208,7 +208,7 @@ int tfsopen(TFILE *pf, int flags) {
tfsIncDiskFile(pf->level, pf->id, 1); tfsIncDiskFile(pf->level, pf->id, 1);
} }
fd = open(pf->aname, flags); fd = open(pf->aname, flags, 0755);
if (fd < 0) { if (fd < 0) {
fError("failed to open file %s since %s", pf->aname, strerror(errno)); fError("failed to open file %s since %s", pf->aname, strerror(errno));
terrno = TAOS_SYSTEM_ERROR(errno); terrno = TAOS_SYSTEM_ERROR(errno);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册