Re: [RFC PATCH] configure: check for POSIX.1-2008 realpath(3) implementation.

Subject: Re: [RFC PATCH] configure: check for POSIX.1-2008 realpath(3) implementation.

Date: Sun, 26 Jan 2014 12:49:55 -0400

To: Tomi Ollila, notmuch@notmuchmail.org

Cc:

From: David Bremner


Tomi Ollila <tomi.ollila@iki.fi> writes:
>
> We could also create
>
> char * realpath2008 (const char * path, char * resolved_path)
> {
>         if (resolved_path == NULL) {
> 		resolved_path = malloc (MAX_PATH);
>                 if (resolved_path == NULL)
> 			return NULL;
>         }
>         return realpath (path, resolved_path);
> }
>         

I sent several private replies to Tomi this morning while being
sleepy. But they were not so great replies anyway.

What about implimenting a compat version of canonicalize_file_name ?
that function is a gnu extension, but since we only call realpath with a
NULL second argument, it might be slighltly simpler to test/google for.

d

Thread: