• Al Viro's avatar
    coredump: don't bother with do_truncate() · d0f1088b
    Al Viro authored
    have dump_skip() just remember how much needs to be skipped,
    leave actual seeks/writing zeroes to the next dump_emit()
    or the end of coredump output, whichever comes first.
    And instead of playing with do_truncate() in the end, just
    write one NUL at the end of the last gap (if any).
    Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
    d0f1088b
binfmt_elf.c 60.5 KB