]>
git.proxmox.com Git - libgit2.git/blob - src/unix/realpath.c
2 * Copyright (C) the libgit2 contributors. All rights reserved.
4 * This file is part of libgit2, distributed under the GNU GPL v2 with
5 * a Linking Exception. For full terms see the included COPYING file.
10 #include "git2/common.h"
19 char *p_realpath(const char *pathname
, char *resolved
)
22 if ((ret
= realpath(pathname
, resolved
)) == NULL
)
26 /* The OpenBSD realpath function behaves differently,
27 * figure out if the file exists */
28 if (access(ret
, F_OK
) < 0)