mirror of
https://git.kernel.org/pub/scm/fs/ext2/e2fsprogs.git
synced 2024-11-23 18:14:25 +08:00
AOSP: e2fsdroid: don't print empty files in block_list.c:end_new_file
Change-Id: I4b38841c9c36a8faaa9f65bc7b61c7abdddab094 Signed-off-by: Ben Fennema <fennema@google.com> From AOSP commit: cc933ab3bfee821dc885fe5a6bbb2a4997304ff9 Signed-off-by: Theodore Ts'o <tytso@mit.edu>
This commit is contained in:
parent
1333f2b35f
commit
1ca6a8921a
@ -63,7 +63,7 @@ static int end_new_file(void *data)
|
||||
{
|
||||
struct block_list *params = data;
|
||||
|
||||
if (!params->entry.filename)
|
||||
if (!params->entry.filename || !params->entry.head)
|
||||
return 0;
|
||||
if (fprintf(params->f, "%s%s ", params->mountpoint,
|
||||
params->entry.filename) < 0
|
||||
|
Loading…
Reference in New Issue
Block a user