]> git.ipfire.org Git - thirdparty/pciutils.git/commit
Sysfs: fixed sysfs_deref_link()
authorMartin Mares <mj@ucw.cz>
Thu, 12 Jul 2018 11:59:52 +0000 (13:59 +0200)
committerMartin Mares <mj@ucw.cz>
Thu, 12 Jul 2018 11:59:52 +0000 (13:59 +0200)
commitf15db375b857d3a2663dd7e13da0500c4daec762
treebbeab980bd71d2b89eaf8546f3a8ffed93c7659a
parentffdb5c2802f728a6ff8aea5140d081553522c45c
Sysfs: fixed sysfs_deref_link()

The function canonicalize_file_name() is GLIBC-specific, use realpath()
instead, which is available also on MUSL libc.

Also, it leaked memory.
lib/sysfs.c