mirror of
https://github.com/kdave/btrfs-progs
synced 2025-02-18 02:36:56 +00:00
btrfs-progs: don't close(<0) in subvol create
Don't try to close an fd immediately after discovering that opening it failed. Signed-off-by: Zach Brown <zab@redhat.com>
This commit is contained in:
parent
31802d9e75
commit
201238df26
@ -244,7 +244,6 @@ again:
|
||||
|
||||
fd = open_file_or_dir(dname);
|
||||
if (fd < 0) {
|
||||
close(fd);
|
||||
fprintf(stderr, "ERROR: can't access to '%s'\n", dname);
|
||||
ret = 12;
|
||||
goto out;
|
||||
|
Loading…
Reference in New Issue
Block a user