commit | 0749f83a2cf4c134a2403701ab78388500e53f76 | [log] [tgz] |
---|---|---|
author | Eric Biggers <ebiggers@google.com> | Thu Mar 23 00:44:21 2023 +0000 |
committer | Eric Biggers <ebiggers@google.com> | Thu Mar 23 00:44:21 2023 +0000 |
tree | ba46d0f7450097da884dad6df03666cd2cf6fa4b | |
parent | 1e498908c6ac13b4d5ec0117f4ddcd577aac607e [diff] |
ext2simg: fix same_file() to check st_dev File identity is determined by the combination of st_dev and st_ino, not by st_ino alone. This fixes a bug where ext2simg would needlessly make a copy of all the data when the input and output files happened to have the same st_ino. Fixes: db6f320912cf ("AOSP: android: add the ext2simg tool") Change-Id: I94e4bf57d9f91b31e5438768805e9f10bec3411d Signed-off-by: Eric Biggers <ebiggers@google.com>