Whamcloud - gitweb
e2fsck: Detect recursive loops in @-expansions
authorTheodore Ts'o <tytso@mit.edu>
Mon, 2 Jul 2007 23:04:31 +0000 (19:04 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 2 Jul 2007 23:04:31 +0000 (19:04 -0400)
commit1a191d6648c8511d389cd9bea11dedb671f64456
treebdd2a978412fe29ee22107b359d306657e41ecde
parent4b4df799f1099d50018bd5725b22062456080c05
e2fsck: Detect recursive loops in @-expansions

The Turkish translation has a bug in it where it has the translation
of "E@e '%Dn' in %p (%i)" to "E@E".  This causes @E to be expanded at
@E, recursively, forever, until the stack fills up e2fsck core dumps.

Fix it by stopping after a recursive depth of 10, which is far more
than we need.

Addresses-Sourceforge-Bug: 1646081

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
e2fsck/message.c
e2fsck/problem.c
e2fsck/problem.h