提交 d365f56a 编写于 作者: R Roberto Sassu

Obtain file size from disk in compact and unknown generators

上级 5496a0db
......@@ -416,8 +416,10 @@ int generator(int dirfd, int pos, struct list_head *head_in,
case FTS_F:
include_file = 0;
statp = ftsent->fts_statp;
if (path_list_ext)
if (path_list_ext) {
st.st_size = statp->st_size;
statp = &st;
}
if (include_path && only_executables) {
list_for_each_entry(cur_i, head_in,
......
......@@ -419,8 +419,10 @@ int generator(int dirfd, int pos, struct list_head *head_in,
case FTS_F:
include_file = 0;
statp = ftsent->fts_statp;
if (path_list_ext)
if (path_list_ext) {
st.st_size = statp->st_size;
statp = &st;
}
if (include_path && only_executables) {
list_for_each_entry(cur_i, head_in,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册