From: Reuben Thomas Date: Mon, 11 Feb 2008 00:31:22 +0000 (+0000) Subject: Print contents of unsigned fields with %lu, not %d, to fix Debian bug X-Git-Tag: FILE5_05~518 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d3d8e3555063a950344ad57ecaf034ca25d83c4d;p=file Print contents of unsigned fields with %lu, not %d, to fix Debian bug #342334; however, for this bug to have shown up in the first place, the numbers involved must have been enormous (with MS bit set), so another bug is likely somewhere in the magic, the softmagic code, or the file being checked may have been corrupt. --- diff --git a/magic/Magdir/filesystems b/magic/Magdir/filesystems index d78b52d5..da7d481f 100644 --- a/magic/Magdir/filesystems +++ b/magic/Magdir/filesystems @@ -1133,24 +1133,24 @@ # cramfs filesystem - russell@coker.com.au 0 lelong 0x28cd3d45 Linux Compressed ROM File System data, little endian ->4 lelong x size %d +>4 lelong x size %lu >8 lelong &1 version #2 >8 lelong &2 sorted_dirs >8 lelong &4 hole_support >32 lelong x CRC 0x%x, ->36 lelong x edition %d, ->40 lelong x %d blocks, ->44 lelong x %d files +>36 lelong x edition %lu, +>40 lelong x %lu blocks, +>44 lelong x %lu files 0 belong 0x28cd3d45 Linux Compressed ROM File System data, big endian ->4 belong x size %d +>4 belong x size %lu >8 belong &1 version #2 >8 belong &2 sorted_dirs >8 belong &4 hole_support >32 belong x CRC 0x%x, ->36 belong x edition %d, ->40 belong x %d blocks, ->44 belong x %d files +>36 belong x edition %lu, +>40 belong x %lu blocks, +>44 belong x %lu files # reiserfs - russell@coker.com.au 0x10034 string ReIsErFs ReiserFS V3.5