Whamcloud - gitweb
misc: fix broken libmagic interaction with plausibility check
authorDarrick J. Wong <darrick.wong@oracle.com>
Tue, 4 Nov 2014 16:49:39 +0000 (11:49 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 4 Nov 2014 16:49:39 +0000 (11:49 -0500)
commite49b03e341a06a53a5103c467fd5825ec27b752a
treeda3566399aa97e826857495e64ed32d751e5db88
parentbab25cb7a7e2b042926748a96cadc386e3de6c6a
misc: fix broken libmagic interaction with plausibility check

If we get as far as calling libmagic, return the correct error code so
that mkfs asks for confirmation if libmagic finds something and
doesn't ask if nothing is found.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
misc/plausible.c
tests/f_detect_junk/expect
tests/f_detect_junk/expect.nodebugfs
tests/f_detect_junk/script