From 86a63e92eb4a957d8e24795cefd2f7058e4aec30 Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Tue, 23 Nov 1999 13:52:48 +0000 Subject: [PATCH] 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. --- e2fsck/ChangeLog | 4 ++++ e2fsck/pass1.c | 2 ++ 2 files changed, 6 insertions(+) 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 + * 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 @@ static void process_inodes(e2fsck_t ctx, char *block_buf) #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; -- 1.8.3.1