未验证 提交 4caf0038 编写于 作者: O openharmony_ci 提交者: Gitee

!1304 fix FreeOldRoot bug

Merge pull request !1304 from cheng_jinsong/fix_freelink
......@@ -38,7 +38,7 @@ static void FreeOldRoot(DIR *dir, dev_t dev)
if (strcmp(de->d_name, ".") == 0 || strcmp(de->d_name, "..") == 0) {
continue;
}
isDir = false;
if (de->d_type == DT_DIR || de->d_type == DT_UNKNOWN) {
struct stat st = {};
if (fstatat(dfd, de->d_name, &st, AT_SYMLINK_NOFOLLOW) < 0) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册