mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-27 13:17:56 +01:00
af5c3afa91
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.
10 lines
137 B
C
10 lines
137 B
C
#define _GNU_SOURCE
|
|
#include <stdlib.h>
|
|
|
|
int main()
|
|
{
|
|
char *found;
|
|
char *string;
|
|
|
|
found = canonicalize_file_name (string);
|
|
}
|