diff options
author | delphij <delphij@FreeBSD.org> | 2014-11-11 16:49:33 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2014-11-11 16:49:33 +0000 |
commit | 4ef269f1b957ab4b38e45afb7ffcbe54f7f587a8 (patch) | |
tree | 4288b1c2a4df2b72619d1fb41550444c7d28c676 /contrib/hyperv | |
parent | 1fcabed49c2524367969734b1ae100ef05ec5026 (diff) | |
download | FreeBSD-src-4ef269f1b957ab4b38e45afb7ffcbe54f7f587a8.zip FreeBSD-src-4ef269f1b957ab4b38e45afb7ffcbe54f7f587a8.tar.gz |
Test errno against EEXIST as well.
MFC after: 3 days
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 3da0e70..1c31d3f 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); } |