Jim Meyering wrote:
> I needed this patch in libvirt to avoid a link error.
> FYI, there, lstat is pulled in solely via the dependency from tempname.
> Anyone see a problem with it?

I don't think it works if gnulib's sys/stat.h happens to redefine lstat
to rpl_lstat.  What about instead doing

#ifdef HAVE_LSTAT
  return lstat (filename, buf);
#else
  return stat (filename, buf);
#endif

?

Paolo


Reply via email to