Whamcloud - gitweb
ChangeLog, debugfs.c:
authorTheodore Ts'o <tytso@mit.edu>
Sun, 3 Jun 2001 23:27:56 +0000 (23:27 +0000)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 3 Jun 2001 23:27:56 +0000 (23:27 +0000)
  debugfs.c (copy_file): Fixed signed vs unsigned bug which causes read
   errors to not be noticed.

debugfs/ChangeLog
debugfs/debugfs.c

index 893c1fe..bac49a3 100644 (file)
@@ -1,3 +1,8 @@
+2001-06-03  Theodore Tso  <tytso@valinux.com>
+
+       * debugfs.c (copy_file): Fixed signed vs unsigned bug which causes
+               read errors to not be noticed.
+
 2001-06-01  Theodore Tso  <tytso@valinux.com>
 
        * Makefile.in: Move include/asm/types.h.in to 
index d37599e..dadf29f 100644 (file)
@@ -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;