Summary: | sys-fs/e2fsprogs-1.41.9: e2freefrag processes getopt() oddly on unsigned char hosts | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Sebastian Koehler <acex5> |
Component: | [OLD] Core system | Assignee: | Gentoo's Team for Core System packages <base-system> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | tytso |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | PPC | ||
OS: | Linux | ||
URL: | https://sourceforge.net/tracker/?func=detail&aid=3025188&group_id=2406&atid=302406 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | posted this patch upstream |
Description
Sebastian Koehler
2010-01-02 20:00:57 UTC
ppc defaults to unsigned chars which causes the getopt test to be (255 != -1) and then it outputs that. getopt returns an "int", not a "char" or "unsigned char". Created attachment 215225 [details, diff]
posted this patch upstream
seems like there's three files that have this problem
Anything new from upstream? I've applied the patch against the latest stable version of e2fsprogs-1.41.12 and it's working. plex e2fsprogs # e2freefrag /dev/mapper/system-rootvol Device: /dev/mapper/system-rootvol Blocksize: 4096 bytes Total blocks: 37728256 Free blocks: 2063475 (5.5%) Min. free extent: 4 KB Max. free extent: 129016 KB Avg. free extent: 196 KB HISTOGRAM OF FREE EXTENT SIZES: Extent Size Range : Free extents Free Blocks Percent 4K... 8K- : 4915 4915 0.24% 8K... 16K- : 7353 18523 0.90% 16K... 32K- : 15198 78509 3.80% 32K... 64K- : 3791 40911 1.98% 64K... 128K- : 2885 64508 3.13% 128K... 256K- : 2797 127032 6.16% 256K... 512K- : 2299 207534 10.06% 512K... 1024K- : 1680 299746 14.53% 1M... 2M- : 831 289049 14.01% 2M... 4M- : 249 173369 8.40% 4M... 8M- : 61 75669 3.67% 8M... 16M- : 15 49981 2.42% 16M... 32M- : 9 59501 2.88% 32M... 64M- : 10 123252 5.97% 64M... 128M- : 16 450976 21.86% Regards, Sebastian Sorry for the delay, I've applied it into e2fsprogs's git tree in the maint branch. fix is part of upstream 1.41.14 release |