svn commit: r322231 - vendor/illumos/dist/lib/libzfs/common
Andriy Gapon
avg at FreeBSD.org
Tue Aug 8 10:55:44 UTC 2017
Author: avg
Date: Tue Aug 8 10:55:42 2017
New Revision: 322231
URL: https://svnweb.freebsd.org/changeset/base/322231
Log:
8430 dir_is_empty_readdir() doesn't properly handle error from fdopendir()
illumos/illumos-gate at ba6e7e6505150388de6dc6a88741164118a421bf
https://github.com/illumos/illumos-gate/commit/ba6e7e6505150388de6dc6a88741164118a421bf
https://www.illumos.org/issues/8430
we should close dirfd if fdopendir() fails.
Reviewed by: Serapheim Dimitropoulos <serapheim at delphix.com>
Reviewed by: Matthew Ahrens <mahrens at delphix.com>
Reviewed by: Dan Kimmel <dan.kimmel at delphix.com>
Reviewed by: Yuri Pankov <yuri.pankov at nexenta.com>
Reviewed by: Igor Kozhukhov <igor at dilos.org>
Approved by: Robert Mustacchi <rm at joyent.com>
Author: Sowrabha Gopal <sowrabha.gopal at delphix.com>
Modified:
vendor/illumos/dist/lib/libzfs/common/libzfs_mount.c
Modified: vendor/illumos/dist/lib/libzfs/common/libzfs_mount.c
==============================================================================
--- vendor/illumos/dist/lib/libzfs/common/libzfs_mount.c Tue Aug 8 10:52:01 2017 (r322230)
+++ vendor/illumos/dist/lib/libzfs/common/libzfs_mount.c Tue Aug 8 10:55:42 2017 (r322231)
@@ -209,6 +209,7 @@ dir_is_empty_readdir(const char *dirname)
}
if ((dirp = fdopendir(dirfd)) == NULL) {
+ (void) close(dirfd);
return (B_TRUE);
}
More information about the svn-src-vendor
mailing list