BUG: Wide Links - does not work as documented

Jeremy Allison jeremy at valinux.com
Tue Apr 11 18:18:46 GMT 2000


Jani Jaakkola wrote:
> 
> It seems that at least Linux, True64 (alias OSF alias Digital Unix),
> Solaris and HP-UX have realpath()-function which does just the thing which
> "wide symlinks" needs. If (and when) I get the patch ready, do you think I
> should
> 
> - Just use realpath()

Autoconf test for it. Call sys_realpath() - add in lib/system.c as 
either a call to realpath() or an implementation for systems that
don't have it.

> - Implement a version of realpath for Samba for those systems which have
>   symlinks but no realpath()
> - do both.

Doing both is the autoconf/Samba way.

> Hmm. glibc should have a realpath() implementation and since it is LGPL, I
> could just use that. Does anyone have any objections to that?

So long as it itself is portable (no other glibc dependencies),
that would be ok.

Jeremy.

-- 
--------------------------------------------------------
Buying an operating system without source is like buying
a self-assembly Space Shuttle with no instructions.
--------------------------------------------------------


More information about the samba-technical mailing list