Whamcloud - gitweb
debugfs: Don't use a pager if stdout is not a tty
authorTheodore Ts'o <tytso@mit.edu>
Thu, 20 Mar 2008 14:57:55 +0000 (10:57 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 20 Mar 2008 14:57:55 +0000 (10:57 -0400)
commita7ee4e01838a2ae5e3adf2d159d2f8f824e17ed7
tree468bf8a8ec025a9cec3269a7127babf651c07187
parent1e8757dd5e108817ac28b77f209f4baa2848547c
debugfs: Don't use a pager if stdout is not a tty

If we are redirecting the output of debugfs to a file or to another
process via a pipe, there's no point sending the output to a pager.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
debugfs/util.c