From 8a8b311484fd4464e156f5d9a5fcbf8991c05325 Mon Sep 17 00:00:00 2001 From: David Bremner Date: Mon, 27 Jan 2014 12:49:55 +2000 Subject: [PATCH] Re: [RFC PATCH] configure: check for POSIX.1-2008 realpath(3) implementation. --- e6/c841adac7aaecdcd00e215324f7050fecea11f | 76 +++++++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 e6/c841adac7aaecdcd00e215324f7050fecea11f diff --git a/e6/c841adac7aaecdcd00e215324f7050fecea11f b/e6/c841adac7aaecdcd00e215324f7050fecea11f new file mode 100644 index 000000000..271ee461b --- /dev/null +++ b/e6/c841adac7aaecdcd00e215324f7050fecea11f @@ -0,0 +1,76 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by olra.theworths.org (Postfix) with ESMTP id 8601B431FBD + for ; Sun, 26 Jan 2014 08:50:07 -0800 (PST) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: 0 +X-Spam-Level: +X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none] + autolearn=disabled +Received: from olra.theworths.org ([127.0.0.1]) + by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id UiwtziTpv2JD for ; + Sun, 26 Jan 2014 08:49:59 -0800 (PST) +Received: from yantan.tethera.net (yantan.tethera.net [199.188.72.155]) + (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) + (No client certificate requested) + by olra.theworths.org (Postfix) with ESMTPS id A98B7431FBC + for ; Sun, 26 Jan 2014 08:49:59 -0800 (PST) +Received: from remotemail by yantan.tethera.net with local (Exim 4.80) + (envelope-from ) + id 1W7SuF-0001KH-3O; Sun, 26 Jan 2014 12:49:59 -0400 +Received: (nullmailer pid 2259 invoked by uid 1000); Sun, 26 Jan 2014 + 16:49:55 -0000 +From: David Bremner +To: Tomi Ollila , notmuch@notmuchmail.org +Subject: Re: [RFC PATCH] configure: check for POSIX.1-2008 realpath(3) + implementation. +In-Reply-To: +References: <1390687142-16401-1-git-send-email-tomi.ollila@iki.fi> + <871tzvo92w.fsf@zancas.localnet> +User-Agent: Notmuch/0.17+49~gaa57e9d (http://notmuchmail.org) Emacs/24.3.1 + (x86_64-pc-linux-gnu) +Date: Sun, 26 Jan 2014 12:49:55 -0400 +Message-ID: <8761p6n0wc.fsf@zancas.localnet> +MIME-Version: 1.0 +Content-Type: text/plain +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.13 +Precedence: list +List-Id: "Use and development of the notmuch mail system." + +List-Unsubscribe: , + +List-Archive: +List-Post: +List-Help: +List-Subscribe: , + +X-List-Received-Date: Sun, 26 Jan 2014 16:50:07 -0000 + +Tomi Ollila 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 -- 2.26.2