ChangeLog, pass1.c:
pass1.c (process_inodes): Add shortcut handling; if
process_inodes_count is zero, return right away, to avoid calling
qsort with a non-positive count.
diff --git a/e2fsck/ChangeLog b/e2fsck/ChangeLog
index f55e275..4e0d3ea 100644
--- a/e2fsck/ChangeLog
+++ b/e2fsck/ChangeLog
@@ -1,5 +1,9 @@
1999-11-19 <tytso@valinux.com>
+ * pass1.c (process_inodes): Add shortcut handling; if
+ process_inodes_count is zero, return right away, to avoid
+ calling qsort with a non-positive count.
+
* message.c (safe_print): Fix to properly display ^A, ^B, etc. and
to print Delete as ^?
diff --git a/e2fsck/pass1.c b/e2fsck/pass1.c
index cf821ee..e80fb56 100644
--- a/e2fsck/pass1.c
+++ b/e2fsck/pass1.c
@@ -626,6 +626,8 @@
#if 0
printf("begin process_inodes: ");
#endif
+ if (process_inode_count == 0)
+ return;
old_operation = ehandler_operation(0);
old_stashed_inode = ctx->stashed_inode;
old_stashed_ino = ctx->stashed_ino;