Whamcloud - gitweb
e2fsck: always make sure e2fsck_global_ctx is set
authorTheodore Ts'o <tytso@mit.edu>
Wed, 5 Mar 2014 00:05:00 +0000 (19:05 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 5 Mar 2014 00:05:00 +0000 (19:05 -0500)
commitdde6333b9658afa0dcd30fe9628857dd694509c6
tree1d0e17f267286967864529a00eef85aa541f99ad
parentb6902b3d6291977399f48fbb4dee0b13f23e07f4
e2fsck: always make sure e2fsck_global_ctx is set

The e2fsck_global_ctx varible was only being set if HAVE_SIGNAL_H is
defined.  There are systems, such as Android, where this is not true.

This was causing e2fsck_set_bitmap_type() to seg fault since
e2fsck_global_ctx was not NULL.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Reported-by: JP Abgrall <jpa@google.com>
e2fsck/unix.c