On 04/12/2012 02:50 AM, Kevin Wolf wrote: >> + >> + src = realpath(current, NULL); > > My POSIX manpage says: > > "If resolved_name is a null pointer, the behavior of realpath() is > implementation-defined." > > It seems to have been standardised by now, but I'm not sure if it is a > good idea to rely on a quite new feature on some OSes.
Worse, there are known compliance bugs; realpath() on Solaris 10 will return a relative answer for relative input, for example. I don't know if glib provides a more portable alternative function, but I'd start by searching that. -- Eric Blake ebl...@redhat.com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature