ChangeLog, debugfs.c:
  debugfs.c (copy_file): Fixed signed vs unsigned bug which causes read
  	errors to not be noticed.

diff --git a/debugfs/debugfs.c b/debugfs/debugfs.c
index d37599e..dadf29f 100644
--- a/debugfs/debugfs.c
+++ b/debugfs/debugfs.c
@@ -1098,7 +1098,8 @@
 {
 	ext2_file_t	e2_file;
 	errcode_t	retval;
-	unsigned int	got, written;
+	int		got;
+	unsigned int	written;
 	char		buf[8192];
 	char		*ptr;