From: Theodore Ts'o Date: Sun, 3 Jun 2001 23:27:56 +0000 (+0000) Subject: ChangeLog, debugfs.c: X-Git-Tag: E2FSPROGS-1_21~32 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b7846402ca8f58dc6e7ed967ba8eba8fae26b8db;p=thirdparty%2Fe2fsprogs.git ChangeLog, debugfs.c: debugfs.c (copy_file): Fixed signed vs unsigned bug which causes read errors to not be noticed. --- diff --git a/debugfs/ChangeLog b/debugfs/ChangeLog index 893c1fe66..bac49a3b1 100644 --- a/debugfs/ChangeLog +++ b/debugfs/ChangeLog @@ -1,3 +1,8 @@ +2001-06-03 Theodore Tso + + * debugfs.c (copy_file): Fixed signed vs unsigned bug which causes + read errors to not be noticed. + 2001-06-01 Theodore Tso * Makefile.in: Move include/asm/types.h.in to diff --git a/debugfs/debugfs.c b/debugfs/debugfs.c index d37599e05..dadf29fb6 100644 --- a/debugfs/debugfs.c +++ b/debugfs/debugfs.c @@ -1098,7 +1098,8 @@ static errcode_t copy_file(int fd, ext2_ino_t newfile) { ext2_file_t e2_file; errcode_t retval; - unsigned int got, written; + int got; + unsigned int written; char buf[8192]; char *ptr;