mirror_zfs/cmd/zdb
Richard Yao 7195c04d98
Fix file descriptor handling in zdb_copy_object()
Coverity found a file descriptor leak. Eyeballing it showed that we had
no handling for the `open()` call failing either. We can address both of
these at once.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Neal Gompa <ngompa@datto.com>
Signed-off-by: Richard Yao <richard.yao@alumni.stonybrook.edu>
Closes #13862
2022-09-12 12:34:10 -07:00
..
Makefile.am autoconf: use include directives instead of recursing down cmd 2022-05-10 10:18:38 -07:00
zdb_il.c Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
zdb.c Fix file descriptor handling in zdb_copy_object() 2022-09-12 12:34:10 -07:00
zdb.h Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00