]> git.cworth.org Git - notmuch/commit
compat: add canonicalize_file_name
authorDavid Bremner <david@tethera.net>
Mon, 27 Jan 2014 14:12:12 +0000 (10:12 -0400)
committerDavid Bremner <david@tethera.net>
Tue, 8 Apr 2014 10:27:14 +0000 (07:27 -0300)
commitaf5c3afa91cc29268c6754ea70f15cae30f22403
treecc1fe830310c9debb7de0a19f707c06858479697
parent134dbadaf517c6962c2588f36f1f8782277e2f95
compat: add canonicalize_file_name

the POSIX 2008 behaviour of realpath is not available everywhere so we
provide a simple wrapper function.  We use (and provide) the gnu
extension canonicalize_file_name to make it cleaner to test for the
feature we need; otherwise we have to rely on realpath segfaulting if
the second argument is null.
compat/Makefile.local
compat/canonicalize_file_name.c [new file with mode: 0644]
compat/compat.h
compat/have_canonicalize_file_name.c [new file with mode: 0644]
configure
notmuch-config.c