]> git.ipfire.org Git - thirdparty/libvirt.git/commit
portability to non-glibc: don't use realpath(..., NULL)
authorJim Meyering <meyering@redhat.com>
Tue, 26 Jan 2010 16:13:45 +0000 (17:13 +0100)
committerJim Meyering <meyering@redhat.com>
Wed, 27 Jan 2010 12:39:46 +0000 (13:39 +0100)
commitb74aadb3e5f845452afb764c79bfddd94d00a8d8
tree9b706b3e0a2c053e12d18f557f9d79d455055363
parent950176ec652775ecd2628b9f322aa3ea20815970
portability to non-glibc: don't use realpath(..., NULL)

it causes a NULL-dereference on some systems like Solaris 10.
* src/node_device/node_device_linux_sysfs.c. Include <stdlib.h>.
(get_sriov_function): Use canonicalize_file_name, not realpath.
* bootstrap (modules): Add canonicalize-lgpl.
bootstrap
src/node_device/node_device_linux_sysfs.c