Re: [PATCH] xfs_db: reset metadump output flag

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, Aug 05, 2017 at 09:10:13AM -0700, Darrick J. Wong wrote:
> 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@xxxxxxxxxx>

Looks good.  Seems like something we could even write a test case for :)
--
To unsubscribe from this list: send the line "unsubscribe linux-xfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [XFS Filesystem Development (older mail)]     [Linux Filesystem Development]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux RAID]     [Linux SCSI]


  Powered by Linux