1776032114.FILE5_47-18-gc5460571.pr-725-inliniac-revert-previous-and-always-set-offset.patch 530 B

1234567891011121314151617
  1. Subject: PR/725: inliniac: Revert previous and always set offset.
  2. Origin: upstream, commit FILE5_47-18-gc5460571 <https://github.com/file/file/commit/FILE5_47-18-gc5460571>
  3. Author: Christos Zoulas <christos@zoulas.com>
  4. Date: Sun Apr 12 22:15:14 2026 +0000
  5. --- a/src/softmagic.c
  6. +++ b/src/softmagic.c
  7. @@ -1580,8 +1580,7 @@
  8. ms->offset = offset;
  9. ms->eoffset = 0;
  10. } else {
  11. - if (b->fd != -1)
  12. - ms->offset = ms->eoffset + offset;
  13. + ms->offset = ms->eoffset + offset;
  14. }
  15. }
  16. if ((ms->flags & MAGIC_DEBUG) != 0) {