svn commit: r222536 - stable/8/cddl/compat/opensolaris/misc
Will Andrews
will at FreeBSD.org
Tue May 31 17:24:18 UTC 2011
Author: will
Date: Tue May 31 17:24:18 2011
New Revision: 222536
URL: http://svn.freebsd.org/changeset/base/222536
Log:
MFC r222313: Close a race between libzfs and mountd when updating NFS exports.
Reviewed by: pjd
Approved by: ken
Modified:
stable/8/cddl/compat/opensolaris/misc/fsshare.c
Directory Properties:
stable/8/cddl/compat/opensolaris/ (props changed)
Modified: stable/8/cddl/compat/opensolaris/misc/fsshare.c
==============================================================================
--- stable/8/cddl/compat/opensolaris/misc/fsshare.c Tue May 31 17:14:06 2011 (r222535)
+++ stable/8/cddl/compat/opensolaris/misc/fsshare.c Tue May 31 17:24:18 2011 (r222536)
@@ -221,6 +221,7 @@ out:
error = errno;
unlink(tmpfile);
} else {
+ fflush(newfd);
/*
* Send SIGHUP to mountd, but unlock exports file later.
*/
More information about the svn-src-stable-8
mailing list