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:
@@ -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",
|
||||
|
Reference in New Issue
Block a user