btrfs-progs: cleanup after errors in open_file_or_dir3
authorDavid Sterba <dsterba@suse.cz>
Tue, 9 Jun 2015 13:24:51 +0000 (15:24 +0200)
committerDavid Sterba <dsterba@suse.cz>
Tue, 9 Jun 2015 13:24:51 +0000 (15:24 +0200)
commitff36fbae4d4e6a18c43c0693fb16f0abfc411e32
tree8f83ca1cfb734b640aca78347a5464cd1e904036
parentf51b76109f6be2bfee3e4eec61ae3f9bc3d7f8e2
btrfs-progs: cleanup after errors in open_file_or_dir3

We should zero the dirstream in case we close it ourselves, so the
caller does not do it again. Most current callers do not do that and
exit immediatelly.

Signed-off-by: David Sterba <dsterba@suse.cz>
utils.c