1. 11 10月, 2016 5 次提交
    • J
      vsh: Fix some issues in auto completion code · f6a4ccdc
      John Ferlan 提交于
      1. Move the declaration of const vshCmdDef *help - it should be at the
         top of the "if" rather than in the middle.
      
      2. Change a comparison from && to || - without doing so we could crash
         on commands like 'virsh list' which would allow completion of some
         non -- option based on whatever was found in the current working
         directory and then as soon as that was completed, the next <tab>
         would crash since "opt" would be returned as NULL, but the check
         was dereferencing "&& opt->type"
      
      3. Before dereferencing opt->completer, be sure opt isn't NULL.
      f6a4ccdc
    • J
      util: Resolve memory leaks in virLogParse{Output|Filter} · 6de78c63
      John Ferlan 提交于
      In both virLogParseOutput and virLogParseFilter, rather than returning
      NULL, goto cleanup since it's possible that for each the first condition
      passes, but the || condition doesn't and thus we leak memory.
      6de78c63
    • J
      tests: Prefer virGetLastErrorMessage in testSELinuxLabeling · 95e66fce
      John Ferlan 提交于
      Yet another case of not needing virGetLastError processing
      95e66fce
    • J
      conf: Remove incorrect check when encoding shmem audit message · c951cdbf
      John Ferlan 提交于
      Remove the !size check since size is initialized to NULL and thus
      causing the condition to always be true
      c951cdbf
    • M
      network: add dnsmasq option 'dhcp-authoritative' · 4ac20b3a
      Martin Wilck 提交于
      The dnsmasq man page recommends that dhcp-authoritative "should be
      set when dnsmasq is definitely the only DHCP server on a network".
      This is the case for libvirt-managed virtual networks.
      
      The effect of this is that VMs that fail to renew their DHCP lease
      in time (e.g. if the VM or host is suspended) will be able to
      re-acquire the lease even if it's expired, unless the IP address has
      been taken by some other host. This avoids various annoyances caused
      by changing VM IP addresses.
      4ac20b3a
  2. 10 10月, 2016 25 次提交
  3. 08 10月, 2016 3 次提交
  4. 07 10月, 2016 3 次提交
  5. 06 10月, 2016 4 次提交