bug in 3.2 configure
Andrew Bartlett
abartlet at samba.org
Wed Jul 2 01:40:29 GMT 2008
On Tue, 2008-07-01 at 18:32 -0700, Herb Lewis wrote:
> The test for realpath is incorrect and causes a core dump at
> least on FreeBSD and maybe others as well.
>
> The following test program is used. The second argument
> cannot be a NULL (this is what is causing the core).
>
> #include <stdio.h>
> #include <limits.h>
> main() {
> char *newpath = realpath("/tmp", NULL);
> exit ((newpath != NULL) ? 0 : 1);
> }
>
> Both Linux and FreeBSD show the proto for realpath to be
>
> char *realpath(const char *path, char *resolved_path);
What is the required allocation size of resolved_path?
Andrew Bartlett
--
Andrew Bartlett
http://samba.org/~abartlet/
Authentication Developer, Samba Team http://samba.org
Samba Developer, Red Hat Inc.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.samba.org/archive/samba-technical/attachments/20080702/fc371b09/attachment.bin
More information about the samba-technical
mailing list