]> git.apps.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
xfs_scrub: don't close stdout when closing the progress bar
authorDarrick J. Wong <djwong@kernel.org>
Mon, 29 Jul 2024 23:23:13 +0000 (16:23 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 30 Jul 2024 00:01:09 +0000 (17:01 -0700)
commitce619e69ffa47fb8c8caeb952d826a13450df130
tree90c8e0b61b8505452fd2b284acace2c7491c9492
parent4032f287989e9bfce791378b7ead7d28ef9a8ad5
xfs_scrub: don't close stdout when closing the progress bar

When we're tearing down the progress bar file stream, check that it's
not an alias of stdout before closing it.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
scrub/xfs_scrub.c