commit | b887f08f959fa3ef4ead9b6e2fd71becf4877a40 | [log] [tgz] |
---|---|---|
author | Mike Frysinger <vapier@gentoo.org> | Mon Jan 04 23:15:32 2010 -0500 |
committer | Theodore Ts'o <tytso@mit.edu> | Mon Jul 05 14:53:58 2010 -0400 |
tree | d941568123102dad85b1ffb32127eaf5b4d4ba8b | |
parent | f96cb89e7aa1ff0d2c4f90b2cf499151f96f10c4 [diff] |
e2freefrag: Fix getopt bug on machines with unsigned chars The getopt() function returns an int, not a char. On systems where the default char is unsigned (like ppc), we get weird behavior where -1 is truncated to 0xff but compared to (int)-1. Also fix this same bug for two test programs, test_rel and iscan, which aren't currently used at the moment. Addresses-Gentoo-Bug: #299386 Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Theodore Ts'o <tytso@mit.edu>