diff options
author | Xin LI <delphij@FreeBSD.org> | 2014-11-11 16:49:33 +0000 |
---|---|---|
committer | Xin LI <delphij@FreeBSD.org> | 2014-11-11 16:49:33 +0000 |
commit | 2582ba5ec35af8a8437fde376ddb775aed4379fd (patch) | |
tree | 4288b1c2a4df2b72619d1fb41550444c7d28c676 /contrib/hyperv | |
parent | 96699e86a37f459f2ebb0992769220895c0872be (diff) | |
download | src-test-2582ba5ec35af8a8437fde376ddb775aed4379fd.tar.gz src-test-2582ba5ec35af8a8437fde376ddb775aed4379fd.zip |
Test errno against EEXIST as well.
MFC after: 3 days
Notes
Notes:
svn path=/head/; revision=274383
Diffstat (limited to 'contrib/hyperv')
-rw-r--r-- | contrib/hyperv/tools/hv_kvp_daemon.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/hyperv/tools/hv_kvp_daemon.c b/contrib/hyperv/tools/hv_kvp_daemon.c index 3da0e70ac5da1..1c31d3f9b626e 100644 --- a/contrib/hyperv/tools/hv_kvp_daemon.c +++ b/contrib/hyperv/tools/hv_kvp_daemon.c @@ -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); } |