Skip to content

Commit

Permalink
8430 dir_is_empty_readdir() doesn't properly handle error from fdopen…
Browse files Browse the repository at this point in the history
…dir()

Reviewed by: Serapheim Dimitropoulos <serapheim@delphix.com>
Reviewed by: Matthew Ahrens <mahrens@delphix.com>
Reviewed by: Dan Kimmel <dan.kimmel@delphix.com>
Reviewed by: Yuri Pankov <yuri.pankov@nexenta.com>
Reviewed by: Igor Kozhukhov <igor@dilos.org>
Approved by: Robert Mustacchi <rm@joyent.com>
  • Loading branch information
sohg authored and Prakash Surya committed Jun 29, 2017
1 parent 77b1713 commit ba6e7e6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions usr/src/lib/libzfs/common/libzfs_mount.c
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,7 @@ dir_is_empty_readdir(const char *dirname)
}

if ((dirp = fdopendir(dirfd)) == NULL) {
(void) close(dirfd);
return (B_TRUE);
}

Expand Down

0 comments on commit ba6e7e6

Please sign in to comment.