e2fsprogs/tests/progs
Mike Frysinger b887f08f95 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>
2010-07-05 14:53:58 -04:00
..
test_data Fix up usage and decrement error messages in the test_icount program 2007-04-07 09:06:46 -04:00
Makefile.in Add support for configure --enable-verbose-makecmds 2009-07-02 00:11:17 -04:00
hold_inode.c ChangeLog, hold_inode.c, random_exercise.c: 2000-08-20 21:48:45 +00:00
random_exercise.c Remove trailing whitespace for the entire source tree 2008-08-27 23:07:54 -04:00
test_icount.c Use format strings directly to prevent -Werror=format-security failures 2009-01-20 13:05:25 -05:00
test_icount.h ChangeLog, test_icount.c, test_icount.h: 1998-03-30 01:08:41 +00:00
test_icount_cmds.ct Many files: 1997-04-29 17:48:10 +00:00
test_rel.c e2freefrag: Fix getopt bug on machines with unsigned chars 2010-07-05 14:53:58 -04:00
test_rel.h Remove trailing whitespace for the entire source tree 2008-08-27 23:07:54 -04:00
test_rel_cmds.ct Many files: 1997-04-29 16:17:09 +00:00