]> www.infradead.org Git - users/hch/xfsprogs.git/commit
xfs_db: reset metadump output flag
authorDarrick J. Wong <darrick.wong@oracle.com>
Fri, 18 Aug 2017 17:00:00 +0000 (12:00 -0500)
committerEric Sandeen <sandeen@redhat.com>
Fri, 18 Aug 2017 17:00:00 +0000 (12:00 -0500)
commita749e257f30ea020f42912e9afd63aedfeb26dc5
tree0303aa17e2c1b427d506a755f8d184d03b634ac6
parent3540b418ba48382113bfbe5c5344e8e2a5f7fc97
xfs_db: reset metadump output flag

On the off chance that someone runs metadump more than once with the
metadump file going to stdout and then not stdout, the stdout_metadump
variable will not be reset before the second invocation.  Clear the
status variable when we undo the stdout redirection.

Fixes-coverity-id: 1416140
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
db/metadump.c