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

123456789101112131415161718
  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. Forwarded: not-needed
  6. --- a/src/softmagic.c
  7. +++ b/src/softmagic.c
  8. @@ -1580,8 +1580,7 @@
  9. ms->offset = offset;
  10. ms->eoffset = 0;
  11. } else {
  12. - if (b->fd != -1)
  13. - ms->offset = ms->eoffset + offset;
  14. + ms->offset = ms->eoffset + offset;
  15. }
  16. }
  17. if ((ms->flags & MAGIC_DEBUG) != 0) {