svn commit: r274522 - stable/10/contrib/hyperv/tools

Xin LI delphij at FreeBSD.org
Fri Nov 14 18:30:21 UTC 2014


Author: delphij
Date: Fri Nov 14 18:30:20 2014
New Revision: 274522
URL: https://svnweb.freebsd.org/changeset/base/274522

Log:
  MFC r274383:
  
  Test errno against EEXIST as well.

Modified:
  stable/10/contrib/hyperv/tools/hv_kvp_daemon.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/contrib/hyperv/tools/hv_kvp_daemon.c
==============================================================================
--- stable/10/contrib/hyperv/tools/hv_kvp_daemon.c	Fri Nov 14 18:29:18 2014	(r274521)
+++ stable/10/contrib/hyperv/tools/hv_kvp_daemon.c	Fri Nov 14 18:30:20 2014	(r274522)
@@ -285,7 +285,7 @@ kvp_file_init(void)
 	int alloc_unit = sizeof(struct kvp_record) * ENTRIES_PER_BLOCK;
 
 	if (mkdir("/var/db/hyperv/pool", S_IRUSR | S_IWUSR | S_IROTH) < 0 &&
-	    errno != EISDIR) {
+	    (errno != EEXIST && errno != EISDIR)) {
 		KVP_LOG(LOG_ERR, " Failed to create /var/db/hyperv/pool\n");
 		exit(EXIT_FAILURE);
 	}


More information about the svn-src-stable-10 mailing list