This commit is contained in:
Hongze Cheng 2020-11-26 16:25:08 +08:00
parent 540d42452d
commit 6c30f1a1a7
1 changed files with 1 additions and 1 deletions

View File

@ -208,7 +208,7 @@ int tfsopen(TFILE *pf, int flags) {
tfsIncDiskFile(pf->level, pf->id, 1);
}
fd = open(pf->aname, flags);
fd = open(pf->aname, flags, 0755);
if (fd < 0) {
fError("failed to open file %s since %s", pf->aname, strerror(errno));
terrno = TAOS_SYSTEM_ERROR(errno);