SHA256
1
0
forked from pool/hyper-v

- Check VSS daemon is listening before a hot backup (bnc#1029693)

- fix a compile warning in snprintf
- kvp: ensure kvp device fd is closed on exec
- lsvmbus: add pci pass-through UUID

OBS-URL: https://build.opensuse.org/package/show/Virtualization/hyper-v?expand=0&rev=121
This commit is contained in:
2017-06-28 12:15:23 +00:00
committed by Git OBS Bridge
parent 578837b91c
commit 475f72a18a
5 changed files with 15 additions and 3 deletions

View File

@@ -702,7 +702,7 @@ static char *kvp_mac_to_if_name(char *mac)
if (dir == NULL)
return NULL;
snprintf(dev_id, sizeof(dev_id), kvp_net_dir);
snprintf(dev_id, sizeof(dev_id), "%s", kvp_net_dir);
q = dev_id + strlen(kvp_net_dir);
while ((entry = readdir(dir)) != NULL) {
@@ -1434,7 +1434,7 @@ int main(int argc, char *argv[])
openlog("KVP", 0, LOG_USER);
syslog(LOG_INFO, "KVP starting; pid is:%d", getpid());
kvp_fd = open("/dev/vmbus/hv_kvp", O_RDWR);
kvp_fd = open("/dev/vmbus/hv_kvp", O_RDWR | O_CLOEXEC);
if (kvp_fd < 0) {
syslog(LOG_ERR, "open /dev/vmbus/hv_kvp failed; error: %d %s",