提交 8f58e1cf 编写于 作者: L ljc

fix bug

Signed-off-by: Nljc <chengjinsong2@huawei.com>
上级 73b064c9
......@@ -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.
先完成此消息的编辑!
想要评论请 注册