commit | da05d1413090b6aa8f728423db3279a0d5d0ce14 | [log] [tgz] |
---|---|---|
author | Eric Sandeen <sandeen@redhat.com> | Fri Sep 16 15:49:22 2011 -0500 |
committer | Theodore Ts'o <tytso@mit.edu> | Fri Sep 16 18:43:04 2011 -0400 |
tree | dc789c34714c39a88a9d6225a1f9f4d7c345300c | |
parent | 665563b825ca697a2b4bdd340760a36f6263709e [diff] |
e2fsck: handle null fs in print_pathname() testing fs for NULL in expand_percent_expression(): e2fsck_ctx = fs ? (e2fsck_t) fs->priv_data : NULL; implies that fs could be NULL, but it's passed to print_pathname() which defererences it without further testing. So make this safe by returning "???" for a nul fs. Signed-off-by: Eric Sandeen <sandeen@redhat.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>