• J
    avoid malfunction when virFileResolveLink is applied to non-POSIX FS · 5baa4635
    Jim Meyering 提交于
    The virFileResolveLink utility function relied on the POSIX guarantee
    that stat.st_size of a symlink is the length of the value.  However,
    on some types of file systems, it is invalid, so do not rely on it.
    Use gnulib's areadlink module instead.
    * bootstrap (modules): Add areadlink.
    * src/util/util.c: Include "areadlink.h".
    Let areadlink perform the readlink and malloc.
    * configure.in (AC_CHECK_FUNCS): Remove readlink.  No need,
    since it's presence is guaranteed by gnulib.
    5baa4635
util.c 52.2 KB