From 9312871cce9d82d217bc6edc3a943f6e034a99f2 Mon Sep 17 00:00:00 2001 From: Bobi Jam Date: Thu, 17 Jan 2013 11:41:15 +0800 Subject: [PATCH] LU-2627 e2fsck: check_symlink() SIGSEGV Since e2fsck_pass1_check_symlink()-> check_symlink(ctx, NULL, ino, inode, buf), we should use 'ino' instead of 'pctx->ino' in check_symlink(). Signed-off-by: Bobi Jam Change-Id: If9c16f96d0655d5a886ef607f1f47ced6176f8d8 --- e2fsck/pass1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/e2fsck/pass1.c b/e2fsck/pass1.c index 2689bc0..724b0ae 100644 --- a/e2fsck/pass1.c +++ b/e2fsck/pass1.c @@ -187,7 +187,7 @@ static int check_symlink(e2fsck_t ctx, struct problem_context *pctx, if (inode->i_size > ctx->fs->blocksize) return 0; - if (ext2fs_extent_open2(ctx->fs, pctx->ino, inode, &handle)) + if (ext2fs_extent_open2(ctx->fs, ino, inode, &handle)) return 0; if (ext2fs_extent_get_info(handle, &info) || (info.num_entries != 1) || -- 1.8.3.1