unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
blob b220caf20e6537bd99616f11022a024c50832260 475 bytes (raw)
name: compat/canonicalize_file_name.c 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
 
#include "compat.h"
#include <limits.h>
#undef _GNU_SOURCE
#include <stdlib.h>

#ifdef notmuch_canonicalize_file_name
#undef notmuch_canonicalize_file_name
#endif

char *
notmuch_canonicalize_file_name (const char *path)
{
#ifdef PATH_MAX
    char *resolved_path =  malloc (PATH_MAX + 1);
    if (resolved_path == NULL)
	return NULL;

    return realpath (path, resolved_path);
#else
#error undefined PATH_MAX _and_ missing canonicalize_file_name not supported
#endif
}

debug log:

solving ba003268 ...
found ba003268 in https://yhetil.org/notmuch/YHux8vY+2+cexMyL@danh.dev/
found 000f9e78 in https://yhetil.org/notmuch.git/
preparing index
index prepared:
100644 000f9e781573e92b50bef8708962bffa0e08f2d6	compat/canonicalize_file_name.c

applying [1/1] https://yhetil.org/notmuch/YHux8vY+2+cexMyL@danh.dev/
diff --git a/compat/canonicalize_file_name.c b/compat/canonicalize_file_name.c\r
index 000f9e78..ba003268 100644\r

Checking patch compat/canonicalize_file_name.c...
Applied patch compat/canonicalize_file_name.c cleanly.

index at:
100644 b220caf20e6537bd99616f11022a024c50832260	compat/canonicalize_file_name.c

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).