1. 12 12月, 2007 1 次提交
    • J
      Use a variable name as sizeof argument, not a type name. · 49230350
      Jim Meyering 提交于
      Given code like: T *var = calloc (n, sizeof (T));
      Convert to this: T *var = calloc (n, sizeof (*var));
      This first-cut change adjusts all malloc, calloc, and
      realloc statements.
      
      The only binary differences are in remote_internal.c
      (due to the bug fix) and in xmlrpc.c (due to factorization).
      
      * python/libvir.c: As above.
      * qemud/event.c: Likewise.
      * qemud/mdns.c: Likewise.
      * qemud/qemud.c: Likewise.
      * qemud/remote.c: Likewise.
      * src/bridge.c: Likewise.
      * src/buf.c: Likewise.
      * src/conf.c: Likewise.
      * src/hash.c: Likewise.
      * src/iptables.c: Likewise.
      * src/openvz_conf.c: Likewise.
      * src/qemu_conf.c: Likewise.
      * src/qemu_driver.c: Likewise.
      * src/test.c: Likewise.
      * src/xen_internal.c: Likewise.
      * src/xen_unified.c: Likewise.
      * src/xm_internal.c: Likewise.
      * src/xml.c: Likewise.
      * tests/qemuxml2argvtest.c: Likewise.
      * src/xmlrpc.c (xmlRpcValuePtr): Likewise, and minor factorization.
      * src/remote_internal.c (remoteAuthMakeCredentials): Use the right
      type when allocating space for an array of cred _pointers_.
      49230350
  2. 07 12月, 2007 6 次提交
  3. 06 12月, 2007 10 次提交
    • R
      Thu Dec 6 12:00:00 UTC 2007 Richard W.M. Jones <rjones@redhat.com> · ec38eb93
      Richard W.M. Jones 提交于
              * src/remote_internal.c: Clean up a warning if neither SASL
                nor PolKit are enabled.
      ec38eb93
    • D
      * configure.in src/Makefile.am src/virsh.c: fix compilation problems · 7633453c
      Daniel Veillard 提交于
        when readline headers were found but not the library
      Daniel
      7633453c
    • J
      Include "config.h". · 87396257
      Jim Meyering 提交于
      * qemud/event.c: Likewise.
      * src/buf.c: Likewise.
      * src/hash.c: Likewise.
      * src/nodeinfo.c: Likewise.
      * src/openvz_conf.c: Likewise.
      * src/proxy_internal.c: Likewise.
      * src/virterror.c: Likewise.
      * src/xmlrpc.c: Likewise.
      * src/xs_internal.c: Likewise.
      * tests/conftest.c: Likewise.
      * tests/xmlrpctest.c: Likewise.
      This fixes a mingw build failure reported by Rich Jones.
      
      Author: Jim Meyering <meyering@redhat.com>
      87396257
    • J
      Use gnulib, starting with its physmem and getaddrinfo modules. · 261e7581
      Jim Meyering 提交于
      New files go into these directories:
        gnulib/lib
        gnulib/m4
        gnulib/tests
      
      * bootstrap: A wrapper around gnulib-tool.
      * configure.in: Invoke gl_EARLY and gl_INIT, being careful to put gl_EARLY
      before any macro that uses AC_COMPILE_IFELSE.
      (AC_OUTPUT): Add lib/Makefile and gl-tests/Makefile.  Remove m4/Makefile.
      * Makefile.am (SUBDIRS): Add gnulib/lib and remove m4.  Add gnulib/tests
      early enough that those tests run before any libvirt unit tests.
      * m4/Makefile.am: Remove file.  Not needed.
      * src/Makefile.am (INCLUDES): Add -I$(top_srcdir)/gnulib/lib -I../gnulib/lib.
      (LDADDS, libvirt_la_LIBADD): Add ../gnulib/lib/libgnu.la.
      * src/nodeinfo.c: Include "physmem.h".
      * qemud/qemud.c, src/remote_internal.c: Include "getaddrinfo.h".
      (MEMINFO_PATH, linuxNodeInfoMemPopulate): Remove definitions.
      (virNodeInfoPopulate): Use physmem_total, not linuxNodeInfoMemPopulate.
      * tests/Makefile.am (INCLUDES): Add -I$(top_srcdir)/gnulib/lib -I../gnulib/lib.
      (LDADDS): Add ../gnulib/lib/libgnu.la.
      * qemud/Makefile.am (libvirtd_LDADD): Add ../gnulib/lib/libgnu.la.
      * tests/nodeinfotest.c (linuxTestCompareFiles): No longer read total
      memory from a file.
      Update expected output not to include "Memory: NNNN"
      * tests/nodeinfodata/linux-nodeinfo-1.txt:
      * tests/nodeinfodata/linux-nodeinfo-2.txt:
      * tests/nodeinfodata/linux-nodeinfo-3.txt:
      * tests/nodeinfodata/linux-nodeinfo-4.txt:
      * tests/nodeinfodata/linux-nodeinfo-5.txt:
      * tests/nodeinfodata/linux-nodeinfo-6.txt:
      * src/test.c [WITH_TEST]: Remove definition of _GNU_SOURCE that
      would conflict with the one now in "config.h".
      * autogen.sh: Add -I gnulib/m4.
      * src/conf.c, src/sexpr.c: Don't define _GNU_SOURCE.
      Instead, include "config.h".
      * qemud/qemud.c: Remove definition of _GNU_SOURCE.
      * src/openvz_driver.c: Likewise.
      * src/qemu_driver.c: Likewise.
      * src/remote_internal.c: Likewise.
      
      * configure.in: Use AC_CONFIG_AUX_DIR(build-aux), so that a bunch
      of gettextize-generated files go into build-aux/, rather than in
      the top-level directory.
      * .cvsignore: Adjust.
      * build-aux/.cvsignore: New file.
      
      
      Author: Jim Meyering <meyering@redhat.com>
      261e7581
    • D
      Fix compile issues when SASL is disabled · 2add6b30
      Daniel P. Berrange 提交于
      2add6b30
    • D
    • D
    • D
      Added PolicyKit authentication support · 282342c1
      Daniel P. Berrange 提交于
      282342c1
    • R
      Wed Dec 5 18:00:00 UTC 2007 Richard W.M. Jones <rjones@redhat.com> · ffdbb903
      Richard W.M. Jones 提交于
              * src/Makefile.am, tests/Makefile.am: Remove LIBOBJS/LTLIBOBJS
                which were incorrectly committed earlier.
      ffdbb903
    • D
      Quit virsh immediately if connection open fails, rather than giving a... · ca71b87c
      Daniel P. Berrange 提交于
      Quit virsh immediately if connection open fails, rather than giving a non-functional interactive shell
      ca71b87c
  4. 05 12月, 2007 5 次提交
  5. 04 12月, 2007 1 次提交
  6. 03 12月, 2007 2 次提交
  7. 01 12月, 2007 3 次提交
  8. 30 11月, 2007 2 次提交
    • J
      Detect heap allocation failure; factor out some duplication. · c3c80a18
      Jim Meyering 提交于
      * qemud/qemud.c (tls_port, tcp_port, mdns_name, tls_allowed_ip_list):
        (tls_allowed_dn_list): Remove "const", now that we free these.
        (unix_sock_rw_mask): Rename from unix_sock_rw_perms, so that
        the latter name can be used as a local string variable, so that the
        variable name matches the config attribute name.
        (unix_sock_ro_mask): Rename from unix_sock_ro_perms, likewise.
        (remoteCheckDN, remoteCheckAccess): Adapt to const removal.
        (qemudDispatchServer): Check for heap allocation failure.
        (remoteConfigGetStringList): New function, based on code from Dan Berrangé.
        (CHECK_TYPE): Remove macro.
        (checkType): New function.
        (GET_CONF_INT, GET_CONF_STR): New macros.
        (remoteReadConfigFile): Use new macros to avoid duplication and to
        check for allocation failure.
      * src/conf.h (virConfTypeName): New static inline function.
      c3c80a18
    • R
      Thu Nov 29 17:40:00 GMT 2007 Richard W.M. Jones <rjones@redhat.com> · d63034c0
      Richard W.M. Jones 提交于
      	* configure.in: Added CYGWIN_EXTRA_LDFLAGS, CYGWIN_EXTRA_LIBADD,
      	  CYGWIN_EXTRA_PYTHON_LIBADD, CYGWIN automake conditional.
      	* src/Makefile.am: Extra flags required to build DLL of libvirt
      	  for Cygwin.
      	* python/Makefile.am: Extra flags and rule required to build
      	  Python module for Cygwin.
      d63034c0
  9. 29 11月, 2007 1 次提交
  10. 28 11月, 2007 4 次提交
  11. 27 11月, 2007 1 次提交
    • D
      * configure.in: when configuring with --prefix=/usr i.e. the same · 1338ed4f
      Daniel Veillard 提交于
        prefix as the installed libvirt, use the same localstatedir /var
        (instead of /usr/var) and sysconfdir /etc (instead of /usr/etc) to
        be able to connect to the system daemon, and use the system local
        options
      * src/xs_internal.c: avoid error message when non-root cannot open
        xenstore
      * src/xend_internal.c: avoid error message when non-root cannot
        directly access xend, in those 2 cases the proxy (or remote code)
        should implement the access so there is no need to raise the error
        there.
      Daniel
      1338ed4f
  12. 26 11月, 2007 4 次提交