
25 Apr
2013
25 Apr
'13
7:44 p.m.
On 04/25/2013 04:06 PM, Eric Blake wrote:
Given a virPCIDevice, this function returns the path for the device that controls the vfio group the device belongs to, e.g. "/dev/vfio/15". --- + if (virAsprintf(&groupDev, "/dev/vfio/%s", basename(groupPath)) < 0) { We shouldn't be using basename() from <libgen.h> - it has horrible
On 04/25/2013 11:57 AM, Laine Stump wrote: portability problems, and is not thread-safe. Instead, use last_component() from gnulib's "dirname.h". [I really ought to add a syntax-check to cfg.mk and clean up the existing offenders].
ACK with that fixed.
Okay. I fixed that. I'm going to send one message for each of the three series when I push them.